D
D
Dmitry Khristoev2015-01-16 18:54:43
HTML
Dmitry Khristoev, 2015-01-16 18:54:43

How to make the right menu?

Hi all! There is a page dartc.info/pn/compare.html
I can not find the answer to the question, the tab menu is a drop-down menu, a checkbox, a link on the right, if you compress the browser, then what does not fit into the screen is transferred to another line.
How to make it so that this line is rubber, like a table, and at the same time all the words that do not fit are cut off with an ellipsis ..., but at the same time everything worked, both the drop-down menu and the checkboxes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
htmleater, 2015-01-17
@htmleater

The easiest and most reliable way to do this is with flexbox + play around with the text-overflow properties.
Although I'm not at all sure that the solution with cropping texts will be correct. Well, for example, what is the use of the menu if the user sees on the screen: {icon} List... + {checkbox} impressions... + First...?
In addition, if you follow the logic, then the sort select also needs an icon, otherwise it is not perceived as an independent menu item.
As a healthy criticism, let me make a remark: one of the basic rules for building an interface is violated in your layout - the lack of grouping in the menu according to the weight and purpose of the items.
Those. you have three items that are really needed for comparison (List, Filter, Sort). It is absolutely incomprehensible how the division of links joined this group, and the presence of a link to the article in the menu bar is also not indisputable, and even the alignment to the right does not save things.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question