You are here: CSS question - can I make CSS Cascade sideways? « HTML « IT news, forums, messages
CSS question - can I make CSS Cascade sideways?

Posted by Bill_W_Stephens on 03/18/06 18:24

Is there a way to simplify similar CSS class definitions. Here
td.data_Dark and td.data_Light share common atributes that are
different from td. See below.

Is there a way to say td.data_Light is like td.data_Dark, except for
background-color.

Also is there a way to define a color code as a variable (eg:
myBannerColor = "C8D7E3"), so when the client wants to change the
colour scheme, I only have to make one CSS change instead of dozens.

td {
background-color:red;
border-bottom:5px solid blue;
padding-left:1px;
}


td.data_Dark{
background-color:C8D7E3;
border-bottom:1px solid white;
padding-left:4px;
}


td.data_Light{
background-color: DBE8F9;
border-bottom:1px solid white;
padding-left:4px;
}

 

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

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