Last Good Quote: Son's are the seasoning on our lives. - Someone on Facebook

Thursday, January 28

CSS Tip - Center a Div

For those that may not know...

To center a div with the following:

#content {
width: 700px ;
margin-left: auto ;
margin-right: auto ;

Width must be specified.

Now if only I could center a div that has an absolute positioning


Anonymous said...

you can use a container for this purpose...

d3ck4 said...

good, i drop by here through keyword "sql injection" via a service call "blogger auto follow" im following u.. hope to see u in my followers list soon and would love to share anything from internet, network and information security stuff.

Hacking Expose! Team

Post a Comment