Forum Moderators: not2easy

Message Too Old, No Replies

Is this possible with css ?

         

norad73

5:27 pm on Oct 20, 2009 (gmt 0)

10+ Year Member



Is the following scenario possible with css floats? One catch: The divs must not have absolute width :)

<snip>

Thanx!

[edited by: swa66 at 6:13 pm (utc) on Oct. 20, 2009]
[edit reason] No links, please see ToS and Forum Charter [/edit]

D_Blackwell

6:01 pm on Oct 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld. The personal link is going to get chopped, so I cannot use it as a reference.

However, sure you can. It is not required, but best practice is to declare width: to floated elements. You can use percentages to avoid absolute widths and the containers will be fluid.

My recommendation is to markup the skeleton or framework and then finish off the design. If you run into trouble, post the test ready code that replicates the problem and we will look at the options.

Be sure to declare a DTD and validate the markup. That will avoid, eliminate, or rule out many problems.