css float and a main div.
- Started
- Last post
- 5 Responses
- toul
please...can someone tell me what i am doing wrong. i want to put 2 float-divs in one maincontainer-div.
everthing looks ok. until i draw a border and it seems that the 2 float-div are not "in" there...shit. thank you for your help!
the file is here:
http://www.savefile.com/files/21…
- weestu0
put this after your right div:
The problem is that left and right are both floated so the maincontainer doesn't recognise them as having any physical weight, so you need to clear both the floats inside the maincontainer.
- weestu0
soz, code didn't display:
{div style="clear:both;height:0"} {/div}
replace curly brackets with angled ones
- toul0
thank you...weestu...i cant see what i have to put after the right div....sorry there is a blank line.
- toul0
yes i see. thank you...css can make a lot of pain...
- kelpie0
cheers guys, this actually sorts a wee problem of mine too :)