|
Posted by Jonathan N. Little on 01/09/07 18:54
Victor wrote:
> Dear all,
> I'm having a hard time trying to work with two <div> tags and the float
> functionality. I want two div blocks to be one after the other (one
> menu on the left, and the content on the right).
> Problem is that I want these blocks to have a % width (30% - 70%),
> which leads the float parameter not to work anymore (blocks are one
> below the other). Any idea ?
>
> div#menu
> {
> float:left;
> width: 30%;
> border-right: lightgrey 1px solid;
> }
> div#contenu
> {
> width: 70%;
> background-color: green;
> }
>
30% + 70% + 1 pixel > 100%
http://www.w3.org/TR/CSS21/box.html
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|