From: "Brian Ogden" <[EMAIL PROTECTED]>
> Ok I am learning xhtml and CSS. I am not at all new to web
> development but relying heavily on CSS is new to me. Is
> align="center" deprecated for XHTML?
Yes.
Also how do I align content center with div tags. I am trying not to
use any tables. All I want is my "navBar" to align center on the page.
> It doesn't work with text-align or
> margin-left:auto;margin-right:auto; or align="center" in the div
> tag. I can center using a table but I don't wnat to use any tables
To center an element with auto margins, the element must be a block
and must also be assigned a width. To center your navbar, this rule
would work:
#navBar {
width: number and measure here;
margin: 0 auto;
}
Of course, the width you set must be narrower than the width of the
parent element or centering might not be readily apparent. If you can
get this to work, post back and I'm sure someone will help you with
the next step, which is how to center that element in IE5.x Windows
:-)
--
Al Sparber
PVII
http://www.projectseven.com
"Designing with CSS is sometimes like barreling down a crumbling
mountain road at 90 miles per hour secure in the knowledge that
repairs are scheduled for next Tuesday".
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/