By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,396 Members | 1,882 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,396 IT Pros & Developers. It's quick & easy.

IE centering

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.