Topic: Trying to center an image but it won't validate

I am trying to center an image where my nav links are but it won't validate if I use the following:

<div id="container" align="center">

If I remove the align="center" then it validates but then the image goes to the left.

Any idea how I can fix this?

Thanks
Bingiman

2 (edited by yemgi 2007-08-08 09:13)

Re: Trying to center an image but it won't validate

try

#container {     text-align: center }

in you css

****edit:typo****

Re: Trying to center an image but it won't validate

That does not do anything.

Re: Trying to center an image but it won't validate

div#container{margin: 0 auto}

Re: Trying to center an image but it won't validate

I figured it out eventually. It had something to do with another class in my stylesheet. Thanks for your help.

Bingiman