468,505 Members | 1,569 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

IE centering

I'm having trouble with centering in IE...

http://www.ryanwsims.com/koh/

The image should center over the text. It does in Firebird, but not in
IE for some reason. If you look at

http://www.ryanwsims.com/sd.php

everything's fine (i.e. centered)

Any thoughts? (sorry if I'm opening an old thread)

-=-
Ryan W Sims
Jul 20 '05 #1
2 2045
Ryan W Sims wrote:
I'm having trouble with centering in IE...
http://www.ryanwsims.com/koh/
The image should center over the text. It does in Firebird, but not in
IE for some reason. If you look at
http://www.ryanwsims.com/sd.php
everything's fine (i.e. centered)
Any thoughts?


Some new information: since the page is PHP generated, I'm now using
php to get the size of the image, do some math, and use relative
positioning. However, I'm still curious about this...IE still isn't
centering, it's just placing the image according to coordinates. It
seems that my solution is somewhat inelegant.

-=-
Ryan W Sims

Jul 20 '05 #2
On Thu, 22 Jan 2004 16:45:16 -0500, Ryan W Sims <ry**@ryanwsims.com>
wrote:
Ryan W Sims wrote:
I'm having trouble with centering in IE...
http://www.ryanwsims.com/koh/
The image should center over the text. It does in Firebird, but not in
IE for some reason. If you look at
http://www.ryanwsims.com/sd.php
everything's fine (i.e. centered)
Any thoughts?


Some new information: since the page is PHP generated, I'm now using
php to get the size of the image, do some math, and use relative
positioning. However, I'm still curious about this...IE still isn't
centering, it's just placing the image according to coordinates. It
seems that my solution is somewhat inelegant.


It seems over-complicated. Just put the image in its own container,
and apply a style of text-align: center to it.

Nick

--
Nick Theodorakis
ni**************@hotmail.com
nicholas_theodorakis [at] urmc [dot] rochester [dot] edu
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Jeff Thies | last post: by
6 posts views Thread by Fran¨ois de Dardel | last post: by
3 posts views Thread by Jonah Bishop | last post: by
9 posts views Thread by Pierre Jelenc | last post: by
15 posts views Thread by red | last post: by
6 posts views Thread by Axel Siebenwirth | last post: by
3 posts views Thread by John Pote | last post: by
5 posts views Thread by Markus Ernst | last post: by
1 post views Thread by =?Utf-8?B?ZnJhbmt5?= | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.