Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can you explain this 3

Status
Not open for further replies.

jimmyshoes

Programmer
Jun 1, 2008
132
GB
Hello

I came across the following css
Code:
.stat-title{clear:both;font-size:14px}.opened .stat-title{border-bottom:0;}

Is it correct to interpret this as follows

If a div of class 'opened' is contained in a div of class 'stat-title' then apply {clear:both;font-size:14px} to the former div
The div of class stat-title has {border-bottom:0;}
 
Hi
[ul]
[li]To all elements with stat-title class applies clear:both;font-size:14px[/li]
[li]Additionally to those elements with stat-title class which are descendants of an element with class opened applies border-bottom:0;[/li]
[/ul]


Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top