PDA

View Full Version : floating divs/layers


solidsponge
01-12-2006, 11:03 AM
Im putting a float into a main content:

<div id="content"><div id="bottomshadow"></div></div>

But Im unsure how to refer to this in my external css file?

Ive tried this, but its not right, so how do I refer to it?

div#content div#bottomshadow{
float:bottom;
width:100%;
height:7px;
background-image: url(images/backgroundshadowbottom.jpg);
}

Pegasus
01-12-2006, 02:45 PM
Float is either left or right. You want the vertical-align: bottom; I think. I'm not sure if that works on images or not. It should.

Peg