Page is a not externally linkable
swa66 - 6:11 pm on Dec 4, 2008 (gmt 0)
Basically it first move e.g. the left side to the middle ( If you want to center it relative to a parent, make sure the parent has position. Position can be given by e.g. "
Using absolute positioning to center:
#image-overlay {
top: 50%;
margin-top: -29px; /* half of the height */
left: 50%
margin-left: -274px; /* half of the width */
}left: 50%;) and then moves it back for half of the width of the element (negative margin). position: relative;" without needing to "nudge" it itself using left/top/right/bottom.