On Thu, 3 Nov 2011, Stevio wrote:
If I have two floats side by side, both are floated left as follow:
.myfloat{
float:left;
}
and both contain text as follows:
<div class="myfloat">Longer amount of text. Longer amount of text. Longer
amount of text. Longer amount of text.</div>
<div class="myfloat">Small amount of text.</div>
Is there any way to prevent the second div from dropping below the first div
when the viewport is narrowed, without specifying widths for either of the
floats?
What I would like is for the text in the first div to wrap before the second
float drops below the first. Is this possible without using widths?
Use a table.
If the realtionship between them is such that they must be side by
side, then a table is the correct element to use.
--
Chris F.A. Johnson, <http://cfajohnson.com/>
Author:
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************