CSS Text Centering Problem

B

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_EaglePin
http://bizshop.com/testbed/nwart/description.php/Pins/DD_SalmonPin

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.
 
C

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_EaglePin
http://bizshop.com/testbed/nwart/description.php/Pins/DD_SalmonPin

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
 
B

Beauregard T. Shagnasty

bizshop said:
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_EaglePin
http://bizshop.com/testbed/nwart/description.php/Pins/DD_SalmonPin

You should start by fixing the numerous errors:
<http://validator.w3.org/check?verbo...estbed/nwart/description.php/Pins/JM_EaglePin>
<http://jigsaw.w3.org/css-validator/...estbed/nwart/description.php/Pins/JM_EaglePin>

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

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"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.
 
B

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?
 
B

Beauregard T. Shagnasty

bizshop said:
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!!! ;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top