Differences
This shows you the differences between two versions of the page.
docs:programming:css:css_notes [2008/08/03 00:25] – external edit 127.0.0.1 | docs:programming:css:css_notes [2009/06/26 00:07] (current) – billh | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== CSS (Cascading Style Sheets) ====== | ====== CSS (Cascading Style Sheets) ====== | ||
This page is for things that I commonly forget regarding CSS. | This page is for things that I commonly forget regarding CSS. | ||
+ | |||
+ | ===== multiple classes ===== | ||
+ | An HTML entity can have more than one class if the class names are separated by a space. | ||
+ | < | ||
+ | <p class=" | ||
+ | </ | ||
+ | |||
+ | If you want to define a specific css style that only pertains to items having both class names, you can do this: | ||
+ | < | ||
+ | .warning.urgent{background: | ||
+ | </ | ||
===== adjacent sibling selector ===== | ===== adjacent sibling selector ===== |