Posts: 11,185
Name: Steven Bradley
Location: Boulder, Colorado
|
Typically the way to center a block level element like a div is to set a width and then set the left and right margins to auto. That will center the element horizontally inside whatever it's container is.
You also wouldn't add any kind of positioning or float to the element.
__________________
l Search Engine Friendly Web Design | Please login or register to view this content. Registration is FREE
l Design, Development, Marketing, and SEO Tutorials | Please login or register to view this content. Registration is FREE
l Please login or register to view this content. Registration is FREE
|