How do you overlap divs?
-
Hi All,
I want to create an overlapped effect for my footer so that the content of another div sits on top of it. My code and css so far are as follows:
<!-- Begin Twitter Feed --> <div id="twitter"> <div class="wrap"> </div> </div> <!-- End Twitter Feed --> <!-- Begin Footer --> <div id="footer"> <div class="wrap"> </div> </div> <!-- End Footer -->
* { margin: 0px; padding: 0px; } div { display: block; } body { font-size: 81.3%; font-family: Arial, Helvetica, sans-serif; color: #333; line-height: 1.2em; background: #f5f5f5; } #twitter { width: 100%; height: 100px; } #twitter .wrap { background: red; } #footer { width: 100%; height: 400px; background: #708090; } .wrap { margin: 0px auto; width: 960px; height: 100%; }
What I want to do is to visually get the red #twitter .wrap div to overlap the #footer div by 20px so that if I assign a twitter bird icon to that .wrap it appears to be stood half in #footer and half in #twitter.
Any help is greatly appreciated.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How do you overlap divs?’ is closed to new replies.