You are here: Nesting (?) CSS « HTML « IT news, forums, messages
Nesting (?) CSS

Posted by rsimpson505 on 11/02/05 18:44

Probably I have missed something, but how do you use one style
definition inside another?
For example:
I want to define two styles of <td> tags, td1 td2, which share some
properties from style tdg and have some individual properties:

td.tdg {
width: 30;
height: 50;
border-left: solid 1px gray;
border-top: solid 1px gray
}
td.td1 {
<!-- want to use td.tdg definition here -->
border-right: solid 1px gray;
border-bottom: solid 1px gray
}
td.td2 {
<!-- want to use td.tdg definition here -->
border-right: solid 1px gray;
border-bottom: solid 2px navy
}

How do I do this?

PS Do you call this cascading, nesting, including - or something else?

 

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

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