View Full Version : Centering...


Xarcell
02-10-2004, 11:32 PM
<IMG SRC="background_bottom.gif" STYLE="position:absolute; bottom: 25px;"

What else could I do to make that image "centered"?

I've tried several things, but cannot seem to find a way.

-Xarcell

stargrl329
02-10-2004, 11:54 PM
Instead of the absolute positioning, perhaps try this:
style="text-align:center"
I'm not sure if that will work on an image itself; if not, perhaps you could put in a <span> tag around the image. Hope that helps :)

weird girl
02-10-2004, 11:57 PM
You could try <center><IMG SRC="background_bottom.gif"></center>.

Xarcell
02-11-2004, 02:34 AM
If I use <center> it throws it way off to the right.

Span Tag doesn't work either.

Any other ideas?

-Xarcell

stargrl329
02-11-2004, 02:38 AM
Maybe you could try putting in a bunch of & n s b p ; tags (un-spaced) after the image... and that would put it more towards the left? :-/

Mentos
02-11-2004, 12:04 PM
The span doesn't work because it is an inline element. You need to use a block element like a DIV:

<div style="text-align: center;"><img src="myimage.jpg"></div>