<?xml version="1.0" encoding="UTF-8"?>

<rss version='2.0'
     xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">
    <channel>
        <!-- This XML Feed shows details for the page Grouping CSS -->
        <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/
          </creativeCommons:license>
        <title>Grouping CSS</title>
        <description>&lt;p&gt;You will notice that after a while you are writing the same styles for different elements or want to use different styles for one element (or a group of elements for that part). Hence the practice of &amp;#8220;grouping&amp;#8221;.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;You can group selectors, declarations or everything.&lt;/strong&gt; Let&amp;#8217;s say you want all your heading levels to have the same color. Instead of making a rule for each heading separate, you can group them like this:&lt;/p&gt;


	&lt;p&gt;H1, H2, H3, H4, H5, H6 {color: blue;}&lt;/p&gt;


	&lt;p&gt;Or maybe you want your paragraphs and just your heading level 4 to be blue? No problem:
3
H4, P {color: red;}&lt;/p&gt;


	&lt;p&gt;Okay, but i want my H1 to have blue text, Arial font, font-size of 18 pixels and with a red background. Now what? Do i have to write three times those rules with H1? Of course not. You&amp;#8217;ll group your declarations like this:&lt;/p&gt;


	&lt;p&gt;H1 { font : 18px Arial; color: blu; background: red;}&lt;/p&gt;


	&lt;p&gt;Okay, now you know how to group selectors and declarations. Let&amp;#8217;s mix all this into one single method of grouping. Let&amp;#8217;s just group everything.&lt;/p&gt;


	&lt;p&gt;I want all of my headings to have a blue color with a red background and Arial font with a font-size of 18 points. Well, no problem:&lt;/p&gt;


	&lt;p&gt;H1, H2, H3, H4, H5, H6 {font : 18pt Arial; color: blue; background: red;}&lt;/p&gt;


	&lt;p&gt;Or maybe your paragraphs and just your headings with level 4 and 6 need these styles? Here you go:&lt;/p&gt;


	&lt;p&gt;H4, H6, P {font : 18pt Arial; color: blue; background: red;}&lt;/p&gt;


	&lt;p&gt;-&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.dzinelabs.com/Pages/tutorials_grouping.htm&quot;&gt;&lt;span class=&quot;caps&quot;&gt;DZINE&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
</description>
                <category>css</category>
        <category>CSS-Grouping</category>

        <pubDate>Tue, 27 Sep 2005 18:04:39 -0700</pubDate>
        <lastBuildDate>Mon, 29 Oct 2007 23:57:04 -0700</lastBuildDate>
            
    </channel>
</rss>
