CSS Text Centering Problem

CSS Text Centering Problem

am 17.09.2007 14:21:09 von bizshop

I've been struggling with aligning text from a database pull. If you
have time,I've tried everything I can think of. It is an alignment
isue where sometimes product name below the picture is right aligned
and sometimes centered (desired).

Examples:
http://bizshop.com/testbed/nwart/description.php/Pins/JM_Eag lePin
http://bizshop.com/testbed/nwart/description.php/Pins/DD_Sal monPin

Funny thing is if I switch to another program and switch back to the
browser the name usually centers. Problem seems to happen in IE and
MicroB, but not on my Firefox.

Any help appreciated.

Re: CSS Text Centering Problem

am 17.09.2007 14:48:21 von CMC

>I've been struggling with aligning text from a database pull. If you
>have time,I've tried everything I can think of. It is an alignment
>isue where sometimes product name below the picture is right aligned
>and sometimes centered (desired).
>
>Examples:
>http://bizshop.com/testbed/nwart/description.php/Pins/JM_Ea glePin
>http://bizshop.com/testbed/nwart/description.php/Pins/DD_Sa lmonPin
>
>Funny thing is if I switch to another program and switch back to the
>browser the name usually centers. Problem seems to happen in IE and
>MicroB, but not on my Firefox.
>
>Any help appreciated.

I have just viewed both of you examples using Firefox. The only real
problem that I can see is that there is side scrolling. There seems
to be nothing that I can find which causes it. I am using a 19" CRT
monitor with a resolution of 1024 x 768.

Cheers,
Colin

Re: CSS Text Centering Problem

am 17.09.2007 14:49:59 von a.nony.mous

bizshop wrote:

> I've been struggling with aligning text from a database pull. If you
> have time,I've tried everything I can think of. It is an alignment
> isue where sometimes product name below the picture is right aligned
> and sometimes centered (desired).
>
> Examples:
> http://bizshop.com/testbed/nwart/description.php/Pins/JM_Eag lePin
> http://bizshop.com/testbed/nwart/description.php/Pins/DD_Sal monPin

You should start by fixing the numerous errors:



Use a Strict doctype, and remove that line above it.

"http://www.w3.org/TR/html4/strict.dtd">

Further, your choice of font is nearly unreadable.

"Monotype Corsiva", "Apple Chancery", "URW Chancery L", cursive...
are terrible fonts for screen reading, especially at the tiny sizes.

Inches and points are for printing, not screen. Use percentages instead
for font sizing, and em units for sizing, except for borders.
http://k75s.home.att.net/fontsize.html

Your CSS seems overly complicated.

--
-bts
-Motorcycles defy gravity; cars just suck

Re: CSS Text Centering Problem

am 17.09.2007 15:37:49 von bizshop

Of course I should have validated before
posting -sorry, I'll get those errors fixed
and repost.

As for font readability - I agree.Tried to
convince client, who insisted..
What's a poor developer to do?

Re: CSS Text Centering Problem

am 17.09.2007 16:14:00 von a.nony.mous

bizshop wrote:

> Of course I should have validated before posting -sorry, I'll get
> those errors fixed and repost.
>
> As for font readability - I agree.Tried to convince client, who
> insisted..

Is your client experienced in web development? Expects visitors all to
have perfect eyesight, and those fonts installed? On hir PDA or mobile
phone?

> What's a poor developer to do?

FIGHT BACK!!! ;-)

--
-bts
-Motorcycles defy gravity; cars just suck