how to read the following css class

ottawamom

New Member
I have the following \[code\]CSS\[/code\] class :\[code\] #menuAccordion h2 a,.dir-rtl #menuAccordion .viewList{ padding-right:2.5%; padding-left:0 }\[/code\]WOuld it be correct to interpret this as for all HTML elements that use css class \[code\]menuAccordian\[/code\], if there is an \[code\]<H2>\[/code\] or \[code\]<A>\[/code\] tag inside this element, it will apply the padding that's defined inside the \[code\]{}\[/code\]?what do the \[code\].dir-rtl\[/code\] and \[code\].viewList\[/code\] refer to? Also, if I had the following code all on one line in my css:\[code\] #secNav #showHideMenu a.fixed{ position:fixed; top:0 } .HomePage #content{ min-height:300px } #content{ background-color:#FFF; min-height:600px; position:relative; z-index:0 }\[/code\]Can I assume that each time I see a \[code\]#\[/code\], that it's the start of a new class, and can I also assume that these classes are NOT related to each other?I'm just trying to understand why the author would have put all this on one line. It's not readable. But maybe it's because they're related.Thanks.
 
Back
Top