Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 10:24 PM
Ryan W Sims
Guest
 
Posts: n/a
Default 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
  #2  
Old July 20th, 2005, 10:25 PM
Ryan W Sims
Guest
 
Posts: n/a
Default Re: IE centering

Ryan W Sims wrote:
[color=blue]
> 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?[/color]

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

  #3  
Old July 20th, 2005, 10:26 PM
Nick Theodorakis
Guest
 
Posts: n/a
Default Re: IE centering

On Thu, 22 Jan 2004 16:45:16 -0500, Ryan W Sims <ryan@ryanwsims.com>
wrote:
[color=blue]
>Ryan W Sims wrote:
>[color=green]
>> 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?[/color]
>
>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.
>[/color]

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
nick_theodorakis@hotmail.com
nicholas_theodorakis [at] urmc [dot] rochester [dot] edu
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles