Forum Moderators: not2easy

Message Too Old, No Replies

overlaping <div>s

         

Sarah Atkinson

3:43 pm on Jul 12, 2006 (gmt 0)

10+ Year Member



I have 2 divs that are both floating. One is at the top of the page and the other is under it. I want the second div to overlap the first div by aproximently 100px. How do I do this? I sent them to relitive and added top:-100px; but that didn't work.

iamlost

7:53 pm on Jul 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Leave both as floats.
Add a negative top margin, i.e. margin-top: -100px;, to the lower floated div.