View Single Post
Old 02-22-2011, 01:29 AM   #80
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by DMSmillie View Post
"Selectors" are simply the "identifiers" in a CSS definition that determine which elements in the HTML should have the specified CSS style applied. "Classes" are user defined labels which can be applied to HTML elements to make it possible to define selectors that involve just a subset of one or more elements.

Take the following example CSS code:
Code:
h1 {font-weight:bold}
p {text-indent:2em}
p.noindent {text-indent:0}
In the CSS example above:
  • "h1" is a selector which determines which elements in the HTML will have the CSS formatting "font-weight:bold" applied;
  • "p" is a selector which determines which elements in the HTML will have the CSS formatting "text-indent:2em" applied;
  • "p.noindent" is a selector which determines which elements in the HTML will have the CSS formatting "text-indent:0" applied.
This last selector involves the use of a class "noindent", which makes it possible to specify different formatting for a subset of "p" elements.
that is clearer,thanks

but a typical css has entires like
.calibre1
.calibre2...

not like
p.calibre1
p.calibre2....

yet the calibreN things are classes ?
cybmole is offline   Reply With Quote