Note that there are some explanatory texts on larger screens.

plurals
  1. POA question about overflow: hidden
    primarykey
    data
    text
    <p>I have two divs with float: right:</p> <pre><code>&lt;div id="container" style="width:760px"&gt; &lt;div id="d1" style="float:right;"&gt;&lt;/div&gt; &lt;div id="d2" style="float:right;"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>I want to hide any overflow in d2 if the contents of both divs get too wide to fit in their container (it all should be one line that must not wrap on a second line). As you may have guessed, the width of the contents is not fixed, and as you know overflow: hidden doesn't work if the width is not specified.</p> <p>Thanks in advance for any suggestions ...</p> <p>Edit: After reading the comment of tharkun, I thought I probably should clarify more what I'm trying to achieve so I created this draft:</p> <p><a href="http://www.waleedeissa.com/temp/css-problem.gif" rel="nofollow noreferrer">http://www.waleedeissa.com/temp/css-problem.gif</a></p> <p>As you can see in the image above, I have a member menu (the links in the member menu differ slightly from time to time - to notify the member of some events), also as you see in the image, the member name is displayed next to the menu, as the member name is chosen by the member it varies in width from one member to another and I'm worried it could become too wide for some members which will cause the member name to be displayed below the menu not to the left of it, so, in case the member name is too long I want to hide a part of it (using overflow: hidden) so that it fits on stays on the same line.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload