Reply to Re: CSS Text Centering Problem

Your name:

Reply:


Posted by Beauregard T. Shagnasty on 09/17/07 12:49

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

You should start by fixing the numerous errors:
<http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fbizshop.com%2Ftestbed%2Fnwart%2Fdescription.php%2FPins%2FJM_EaglePin>
<http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A%2F%2Fbizshop.com%2Ftestbed%2Fnwart%2Fdescription.php%2FPins%2FJM_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.

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация