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

Posted by Jonathan N. Little on 03/18/06 18:47

Bill_W_Stephens@yahoo.com wrote:

> 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;
> }
>

td.data_Dark,
td.data_Light {
padding-left: 4px;
border-bottom: 1px solid white;
}

td.data_Light {
/* should also spec color */
background-color: DBE8F9;
}

td.data_Dark {
/* should also spec color */
background-color: :C8D7E3;
}

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

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

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