KBD

Keith Devens .com

Saturday, March 20, 2010 Flag waving
"Yes, it's terribly simple. The good guys are always stalwart and true, the bad guys are easily distinguished by... – Giles (BtVS: Lie to Me)
← Opera XForms AlternativeExplanation of the O(1) scheduler in Linux 2.6 →

Daily link icon Friday, December 26, 2003

CSS: multiple class selectors

You can gain a lot of flexibility in your CSS by being able to mix and match classes in your HTML. To include multiple classes in one html class= attribute, just include all the classes you want separated by spaces.

Then, to refer to an element that has multiple classes set, the CSS selector syntax is element.class1.class2 (class1 and class2 can be in any order), and of course, element can be omitted and the first part of the selector be left as just "*." or "."

← Opera XForms AlternativeExplanation of the O(1) scheduler in Linux 2.6 →

Comments XML gif


Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

March 2010
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 2 posts

Recent comments XML

I hate ASP.NET

I hate ASP... I was doing wonders​with PHP, then suddenly one of my​clients...

Johnies: Mar 17, 6:14am

Quantum physics and free will

I knew you were going to say that....

Tom Massey: Mar 15, 9:26pm

Generated in about 0.114s.

(Used 8 db queries)