Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.27 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Make a div to be over multiple div
  2. element.style {
  3.     margin-left: auto;
  4.     margin-right: auto;
  5.     width: 800px;
  6. }
  7.        
  8. position: absolute;
  9.        
  10. left: 50%;
  11. margin-left: -400px;  //this is because your div's width is 800px
  12.        
  13. #yourdiv{
  14. margin: 0px auto;
  15. width:800px;
  16. }