Coda Clips

Centre div (using negative margins)

div { 
   position: absolute;
   left: 50%;
   width: 500px;
   margin-left: -250px; /*half the width of the div*/
}

Added to by Matthew Hunt

Install Clip


Sponsored Links: