Click to See Complete Forum and Search --> : Need help centering an image.


Rabidus_lupus
06-18-2005, 12:23 PM
I'm having a little trouble. Here's my website, http://www.lupusnt.com . Basically I made it using divisions. Top and left. Then everything else is just positioned. Now, I was trying to center an image, on my main page, in the main section of the page only. The part with the background. I've tried making that whole section a division and using the center command, but it doesn't come out properly. Please help.

acorbelli
06-18-2005, 02:09 PM
Like the image that's on there now? Or another one? And where exactly is it supposed to go?

kendokendokendo
06-18-2005, 05:02 PM
sadly, <center> isn't a valid tag anymore according to current XHTML standards. this really sucks because this tag is awesome and does the job so much easier.
there are, however, solutions. <a href="http://www.bluerobot.com/web/layouts/" target="_blank">http://www.bluerobot.com/web/layouts/</a> lists 2 methods for auto-centering content. see if these help you out

acorbelli
06-18-2005, 05:40 PM
You could use justification in your styles, or not use XHTML. Just use the latest HTML standards.

ray326
06-18-2005, 07:22 PM
You can put the image in a div with the style text-align:center.

Rabidus_lupus
06-19-2005, 03:18 AM
Thanks for tips. I'll try it out.

Rabidus_lupus
06-19-2005, 07:08 AM
Comment deleted.