<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>CSS Tutorial</title>
    <link>https://www.diigo.com/list/skhorramshahgol/css-tutorial</link>
    <description></description>
    <pubDate>Sat May 25 21:49:20 UTC 2013</pubDate>
    <lastBuildDate>Sat May 25 21:49:20 UTC 2013</lastBuildDate>
	
    <item>
      <title>CSS Introduction</title>
      <link>http://www.w3schools.com/css/css_intro.asp</link>
      <description>
      	&lt;p&gt;&lt;/p&gt;
		
		
		
		&lt;strong&gt;Annotations:&lt;/strong&gt;
		
		


  
    &lt;ul class=&quot;diigo-annotations&quot; &gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;&lt;ul&gt;&lt;h3&gt;Cascading Order&lt;/h3&gt;&amp;nbsp;&amp;nbsp;&lt;p&gt; &lt;b&gt;What style will be used when there is more than one style specified for&amp;nbsp;an HTML element?&lt;br&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;    &lt;br&gt;&amp;nbsp;Generally speaking we can say that all the styles will &quot;cascade&quot; into&amp;nbsp;a new &quot;virtual&quot; style sheet by the following rules, where number four&amp;nbsp;has the highest priority:&amp;nbsp;&lt;/p&gt;&amp;nbsp;&lt;ol&gt;&amp;nbsp;  &lt;li&gt;Browser default&lt;/li&gt;&lt;li&gt;External style sheet&lt;/li&gt;&lt;li&gt;Internal style sheet (inside the &amp;lt;head&amp;gt; tag)&lt;/li&gt;&lt;li&gt;Inline style (inside an HTML element)&lt;/li&gt;&amp;nbsp;&lt;/ol&gt;&amp;nbsp;&lt;p&gt;So, an inline style (inside an HTML element) has the highest priority, which&amp;nbsp;means that it will override a style declared inside the &amp;lt;head&amp;gt; tag, in&amp;nbsp;an external style sheet, or in a browser (a default value).&lt;/p&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;Styles can&amp;nbsp;be specified inside a single HTML element, inside the &amp;lt;head&amp;gt; element of an&amp;nbsp;HTML page, or in an external CSS file. Even multiple external style sheets can be referenced&amp;nbsp;inside a single HTML document.&amp;nbsp;&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
    &lt;/ul&gt;
  

		
		
      </description>	  
      <pubDate>Wed Dec 03 22:25:33 +0000 2008</pubDate>
	  <lastBuildDate>Wed Dec 03 22:25:33 +0000 2008</lastBuildDate>
    </item>
    
    <item>
      <title>CSS How to</title>
      <link>http://www.w3schools.com/css/css_howto.asp</link>
      <description>
      	&lt;p&gt;&lt;/p&gt;
		
		
		
		&lt;strong&gt;Annotations:&lt;/strong&gt;
		
		


  
    &lt;ul class=&quot;diigo-annotations&quot; &gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;&lt;p&gt;There are three ways of inserting a style sheet:&amp;nbsp;&lt;/p&gt;&amp;nbsp;&amp;nbsp;&lt;h3&gt;External Style Sheet&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;&lt;p&gt;Each page must link to the style sheet using the &amp;lt;link&amp;gt; tag. The&amp;nbsp;&amp;lt;link&amp;gt; tag goes inside the head section:&amp;nbsp;&lt;/p&gt;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;&amp;lt;head&amp;gt;&amp;nbsp;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&amp;nbsp;href=&quot;mystyle.css&quot; /&amp;gt;&amp;nbsp;&amp;lt;/head&amp;gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;Internal Style Sheet&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;&lt;p&gt;You define internal styles in the head section by using the &amp;lt;style&amp;gt; tag, like this:&amp;nbsp;&lt;/p&gt;&amp;nbsp;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;&amp;lt;head&amp;gt;&amp;nbsp;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&amp;nbsp;hr {color: sienna}&amp;nbsp;p {margin-left: 20px}&amp;nbsp;body {background-image: url(&quot;images/back40.gif&quot;)}&amp;nbsp;&amp;lt;/style&amp;gt;&amp;nbsp;&amp;lt;/head&amp;gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;The browser will now read the style definitions, and format&amp;nbsp;the&amp;nbsp;document according to it.&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;&lt;h3&gt;Inline Styles&lt;/h3&gt;&amp;nbsp;&lt;p&gt;An inline style loses many of the advantages of style sheets by mixing&amp;nbsp;content with presentation. Use this method sparingly, such as when a style is to&amp;nbsp;be applied to a single occurrence of an element.&amp;nbsp;&lt;/p&gt;&amp;nbsp;&amp;nbsp;&lt;p&gt;To use inline styles you use the style attribute in the relevant tag. The&amp;nbsp;style attribute can contain any CSS property. The example shows how to change&amp;nbsp;the color and the left margin of a paragraph:&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;&lt;h2&gt;Multiple Style Sheets&lt;/h2&gt;&amp;nbsp;&lt;p&gt;If some properties have been set for the same selector in different style sheets,&amp;nbsp;the values will be inherited from the more specific style sheet.&amp;nbsp;&lt;/p&gt;&amp;nbsp;&lt;p&gt; For example, an external style sheet has these properties for the h3 selector:&lt;/p&gt;&amp;nbsp;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;h3 &amp;nbsp;{&amp;nbsp;color: red;&amp;nbsp;text-align: left;&amp;nbsp;font-size: 8pt&amp;nbsp;}&lt;/pre&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;&lt;p&gt;And an internal style sheet has these properties for the h3 selector:&lt;/p&gt;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;h3 &amp;nbsp;{&amp;nbsp;text-align: right; &amp;nbsp;font-size: 20pt&amp;nbsp;}&lt;/pre&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;&amp;nbsp;&lt;p&gt;If the page with the internal style sheet also links to the&amp;nbsp;external style sheet the properties for h3 will be:&lt;/p&gt;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;color: red; &amp;nbsp;text-align: right; &amp;nbsp;font-size: 20pt&lt;/pre&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;&lt;p&gt;The color is inherited from the external style sheet and&amp;nbsp;the text-alignment and the font-size is replaced by the internal style sheet.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
    &lt;/ul&gt;
  

		
		
      </description>	  
      <pubDate>Wed Dec 03 22:24:48 +0000 2008</pubDate>
	  <lastBuildDate>Wed Dec 03 22:24:48 +0000 2008</lastBuildDate>
    </item>
    
    <item>
      <title>CSS Syntax</title>
      <link>http://www.w3schools.com/css/css_syntax.asp</link>
      <description>
      	&lt;p&gt;&lt;/p&gt;
		
		
		
		&lt;strong&gt;Annotations:&lt;/strong&gt;
		
		


  
    &lt;ul class=&quot;diigo-annotations&quot; &gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;&lt;p&gt;The CSS syntax is made up of three parts: a selector, a property and a value:&lt;/p&gt;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;selector {property: value}&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;&lt;p&gt;The CSS syntax is made up of three parts: a selector, a property and a value:&lt;/p&gt;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;selector {property: value}&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;&amp;nbsp;&lt;p&gt;The selector is normally the HTML element/tag you wish to define, the property is the&amp;nbsp;attribute you wish to change, and each property can take a value. The property and value&amp;nbsp;are separated by a colon, and surrounded by curly braces:&lt;/p&gt;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;body {color: black}&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; If&amp;nbsp; the value is multiple words, put quotes around the value:&lt;/p&gt;&amp;nbsp;&lt;table cellpadding=&quot;0&quot; border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;code&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;p {font-family: &quot;sans serif&quot;}&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;&amp;nbsp;&lt;p&gt; &lt;b&gt;Note:&lt;/b&gt; If you wish to specify more than one property, you must separate each&amp;nbsp;property with a semicolon. The example&amp;nbsp;below shows how to define a center aligned paragraph, with a red text color:&lt;/p&gt;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;p {text-align:center;color:red}&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;&lt;p&gt;All header elements will &amp;nbsp;be displayed in green text color:&lt;/p&gt;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;h1,h2,h3,h4,h5,h6 &amp;nbsp;{&amp;nbsp;color: green&amp;nbsp;}&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;&lt;p&gt;Say that you would like to have two types of&amp;nbsp;paragraphs in your document: one right-aligned paragraph, and one center-aligned&amp;nbsp;paragraph. Here is how you can do it with styles:&amp;nbsp;&lt;/p&gt;&amp;nbsp;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;p.right {text-align: right}&amp;nbsp;p.center {text-align: center}&lt;/pre&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;&amp;nbsp;&lt;p&gt;You have to use the class attribute in your HTML document:&lt;/p&gt;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;&amp;lt;p class=&quot;right&quot;&amp;gt;&amp;nbsp;This paragraph will be right-aligned.&amp;nbsp;&amp;lt;/p&amp;gt;&lt;/pre&gt;&amp;nbsp;&lt;pre&gt;&amp;lt;p class=&quot;center&quot;&amp;gt;&amp;nbsp;This paragraph will be center-aligned.&amp;nbsp;&amp;lt;/p&amp;gt;&lt;/pre&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;&amp;nbsp;&lt;p&gt;&lt;b&gt;Note: &lt;/b&gt;To apply more than one class per given element, the syntax is:&lt;/p&gt;&amp;nbsp;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; id=&quot;table4&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;&amp;lt;p class=&quot;center bold&quot;&amp;gt;&amp;nbsp;This is a paragraph.&amp;nbsp;&amp;lt;/p&amp;gt;&lt;/pre&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;&amp;nbsp;&lt;p&gt;The paragraph above will be styled by the class &quot;center&quot; AND the class &amp;nbsp;&quot;bold&quot;.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;&lt;p&gt;You can also omit the tag name in the selector to define a style that&amp;nbsp;will be used by all HTML elements that have a certain class. In the example &amp;nbsp;below, all HTML elements with class=&quot;center&quot; will be center-aligned:&lt;/p&gt;&amp;nbsp;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;.center {text-align: center}&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
        &lt;li&gt;
          
            &lt;div class=&quot;diigoContent&quot;&gt;&lt;div class=&quot;diigoContentInner&quot;&gt;&lt;h2&gt;The id Selector&lt;/h2&gt;&amp;nbsp;&lt;p&gt;You can also define styles for HTML elements with the id selector. The id &amp;nbsp;selector is defined as a #.&lt;/p&gt;&amp;nbsp;&lt;p&gt;The style rule below will match the element that has an id attribute with a value &amp;nbsp;of &quot;green&quot;:&lt;/p&gt;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; id=&quot;table1&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;#green {color: green}&lt;/pre&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;&lt;p&gt;The style rule below will match the p element that has an &amp;nbsp;id with a value of &quot;para1&quot;:&lt;/p&gt;&amp;nbsp;&lt;table border=&quot;1&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; class=&quot;ex&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;pre&gt;p#para1&amp;nbsp;{&amp;nbsp;text-align: center;&amp;nbsp;color: red&amp;nbsp;}&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;
            
          
        &lt;/li&gt;
      
    &lt;/ul&gt;
  

		
		
      </description>	  
      <pubDate>Wed Dec 03 22:13:04 +0000 2008</pubDate>
	  <lastBuildDate>Wed Dec 03 22:13:04 +0000 2008</lastBuildDate>
    </item>
    
  </channel>
</rss>