1st September 10, 07:09 AM
Join Date: Sep 2010
float left/right div but with not fixed width
I am new at CSS, but have programmed user interfaces in other languages.
I am try to do the typical left -right <div> is a header. But I do not want to have fixed width divs. I some code that "works" But WHY?
If i set the #headleft width to less than 80% I see the left and right <div> on the side on the main div, not in the header where it should be.
WHY does css not follow child parent structure? to me common sense states <div id="maindiv"> should always be after <header>. It should matter what a child does inside a parent element, the siblings always follow.
"CSS is like Latin, it does not matter the order, just to words need to be correct" and Latin killed the romans.
<span id="welcomeuser"> </span>
<span id="techinfo"> </span>
<span style="clear:both"> </span>
<!-- middle section -->
and the css
Last edited by chrishirst; 1st September 10 at 12:58 PM.