You are here: Re: [PHP] CSS and Tables « PHP « IT news, forums, messages
Re: [PHP] CSS and Tables

Posted by Curt Zirzow on 12/10/05 05:20

On Fri, Dec 09, 2005 at 08:42:14PM -0600, Afan Pasalic wrote:
> table, tr, th, td, p, { (note there is no dot in front of the class name!)
> font-size: small;
> border-bottom: 1px lightgrey solid;
> border-right: 1px lightgrey solid;
> }
>
> and yo don't ned to add class=t any more

Now anytime I do a <p> i'm going to have some weird border around
it. Not to mention a wierd border around all table, th, td and tr's.

And if you happened to miss the border definition, globaling all
these items like this is a bad thing. At least, you simply need to
global the 'html' or 'html body' declartion with the default
settings with explicit definitions like font size, font face,
color, etc.. then redefine what ever is needed based on the id or
class of the elements.

There are cases when you may want to define things <p>, <td>, <th>
globally though, for example i commonly redine my p and th as:

p {
margin: 0.8em 0; /* to much space by default */
}

th {
text-align: left; /* center alignment never looks good */
}

Curt.
--
cat .signature: No such file or directory

 

Navigation:

[Reply to this 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

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