Forum Moderators: not2easy

Message Too Old, No Replies

How to center an element after offsetting it X pixels to the right?

Due to faux columns

         

Clark

8:03 pm on Dec 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm using Dan Cederholm's faux column for a left nav column. And I've got a footer that needs to be centered. But since there is a faux column, it looks off center. So I need it centered with an offset to handle the 180px of that faux column. Is there a way to handle this in CSS?

Clark

1:11 am on Dec 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Would
{
margin-left: 180px;
margin-right: auto;
text-align: center;
}
do the trick w/o choking on major browsers? (seems to work where I tested it)

[edited by: Clark at 1:12 am (utc) on Dec. 30, 2007]