<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Saffron Stroke - Your Web Design Resource &#187; css</title>
	<atom:link href="http://www.saffronstroke.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.saffronstroke.com</link>
	<description>Design Blog</description>
	<lastBuildDate>Wed, 11 Jan 2012 06:36:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Get rid of the dotted border from a focused hyperlink</title>
		<link>http://www.saffronstroke.com/2010/04/28/get-rid-of-the-dotted-border-from-a-focused-hyperlink-2/</link>
		<comments>http://www.saffronstroke.com/2010/04/28/get-rid-of-the-dotted-border-from-a-focused-hyperlink-2/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 08:04:23 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[CSS Hacks, Tips and Tricks]]></category>
		<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[a:focus]]></category>
		<category><![CDATA[anchor]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[dotted border]]></category>

		<guid isPermaLink="false">https://saffronstroke.wordpress.com/?p=900</guid>
		<description><![CDATA[You must have observed this behavior that when you click on a hyperlink it is surrounded with a dotted border as shown in the image below: I observed this behavior in Internet Explorer 8 and Firefox 3.0 and above. I also tested the behavior in Safari 4.0.4 and Google Chrome 4, but they did not [...]]]></description>
			<content:encoded><![CDATA[<div align="left" style="float: none; clear:right; padding: 0px 5px 5px 0px;"><a name="fb_share" type="button_count" share_url="http://www.saffronstroke.com/2010/04/28/get-rid-of-the-dotted-border-from-a-focused-hyperlink-2/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;; margin-top:-2px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.saffronstroke.com%2F2010%2F04%2F28%2Fget-rid-of-the-dotted-border-from-a-focused-hyperlink-2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2010%2F04%2F28%2Fget-rid-of-the-dotted-border-from-a-focused-hyperlink-2%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>You must have observed this behavior that when you click on a hyperlink it is surrounded with a dotted border as shown in the image below:</p>
<p><img style="display: inline; border-width: 0;" title="clip_image002" src="http://www.saffronstroke.com/wp-content/uploads/2010/04/clip_image0023.jpg" border="0" alt="clip_image002" width="88" height="27" /></p>
<p>I observed this behavior in Internet Explorer 8 and Firefox 3.0 and above. I also tested the behavior in Safari 4.0.4 and Google Chrome 4, but they did not display such border. Even though, this is temporary and the border disappears as soon as the link loses its focus, I do not like it. So I came up with this solution.</p>
<p>Add the following CSS to your page:</p>
<p class="MsoNormal"><span style="line-height: 115%; font-family: &amp;amp;;">&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt; </span></p>
<p class="MsoNormal" style="line-height: 13.5pt; margin-bottom: 0; background: white;"><span style="font-family: &amp;amp;;">&lt;</span><span style="font-family: &amp;amp;;">html </span><span style="font-family: &amp;amp;;">xmlns</span><span style="font-family: &amp;amp;;">=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;<br />
&lt;</span><span style="font-family: &amp;amp;;">head</span><span style="font-family: &amp;amp;;">&gt;<br />
&lt;</span><span style="font-family: &amp;amp;;">title</span><span style="font-family: &amp;amp;;">&gt;</span> <span style="font-family: &amp;amp;;">Get rid of the dotted border</span><span style="font-family: &amp;amp;;">&lt;/</span><span style="font-family: &amp;amp;;">title</span><span style="font-family: &amp;amp;;">&gt;<br />
&lt;</span><span style="font-family: &amp;amp;;">style </span><span style="font-family: &amp;amp;;">type</span><span style="font-family: &amp;amp;;">=&#8221;text/css&#8221;&gt;<br />
</span><span style="font-family: &amp;amp;;">a:focus </span><span style="font-family: &amp;amp;;">{<br />
</span><span style="font-family: &amp;amp;;">outline</span><span style="font-family: &amp;amp;;">: </span><span style="font-family: &amp;amp;;">none</span><span style="font-family: &amp;amp;;">;<br />
}<br />
</span><span style="font-family: &amp;amp;;">&lt;/</span><span style="font-family: &amp;amp;;">style</span><span style="font-family: &amp;amp;;">&gt;<br />
&lt;/</span><span style="font-family: &amp;amp;;">head</span><span style="font-family: &amp;amp;;">&gt;<br />
&lt;</span><span style="font-family: &amp;amp;;">body</span><span style="font-family: &amp;amp;;">&gt;<br />
&lt;</span><span style="font-family: &amp;amp;;">a </span><span style="font-family: &amp;amp;;">href</span><span style="font-family: &amp;amp;;">=&#8221;#&#8221; </span><span style="font-family: &amp;amp;;">id</span><span style="font-family: &amp;amp;;">=&#8221;anchor1&#8243; </span><span style="font-family: &amp;amp;;">target</span><span style="font-family: &amp;amp;;">=&#8221;_blank&#8221;&gt; </span><span style="font-family: &amp;amp;;">Read More..</span><span style="font-family: &amp;amp;;">&lt;/</span><span style="font-family: &amp;amp;;">a</span><span style="font-family: &amp;amp;;">&gt; </span></p>
<p class="MsoNormal" style="line-height: 13.5pt; margin-bottom: 0; background: white;"><span style="font-family: &amp;amp;;">&lt;/</span><span style="font-family: &amp;amp;;">body</span><span style="font-family: &amp;amp;;">&gt;<br />
&lt;/</span><span style="font-family: &amp;amp;;">html</span><span style="font-family: &amp;amp;;">&gt;</span><span style="font-family: &amp;amp;;"> </span></p>
<p>You can add the same code in your Expression Web page.</p>
<p>However, this could be a problem for users with disablity or those using keyboard instead of mouse. In that case, a woraround could be, when you remove the dotted border, you could change the color of the font similar to the hover/active hyperlink or change the font-weight to bold. This could help the user get a visual cue for navigation. See below:</p>
<p>a:focus{<br />
outline:none;<br />
color:#FF0000;<br />
}</p>
<p>or</p>
<p>a:focus{<br />
outline:none;<br />
font-weight: bold;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2010/04/28/get-rid-of-the-dotted-border-from-a-focused-hyperlink-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Useful Resources for Microsoft Expression Web</title>
		<link>http://www.saffronstroke.com/2009/10/27/useful-resources-for-microsoft-expression-web/</link>
		<comments>http://www.saffronstroke.com/2009/10/27/useful-resources-for-microsoft-expression-web/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 10:47:20 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Expression]]></category>
		<category><![CDATA[Expression Suite]]></category>
		<category><![CDATA[Expression Web 2]]></category>
		<category><![CDATA[Expression Web 3]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://saffronstroke.com/?p=746</guid>
		<description><![CDATA[Here are some websites and blogs that offer very informative tutorials, articles, tips, tricks, trainings, ebooks and other resources for Microsoft Expression Web. http://expression.microsoft.com/en-us/cc197140.aspx for tutorials, videos, free Expression Web templates. http://any-expression.com - is owned by Tina Clarke, who is a fellow Expression Web MVP. The site features plenty of tutorials, tips, ebooks on Expression Web and FrontPage. [...]]]></description>
			<content:encoded><![CDATA[<div align="left" style="float: none; clear:right; padding: 0px 5px 5px 0px;"><a name="fb_share" type="button_count" share_url="http://www.saffronstroke.com/2009/10/27/useful-resources-for-microsoft-expression-web/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;; margin-top:-2px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F10%2F27%2Fuseful-resources-for-microsoft-expression-web%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F10%2F27%2Fuseful-resources-for-microsoft-expression-web%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Here are some websites and blogs that offer very informative tutorials, articles, tips, tricks, trainings, ebooks and other resources for Microsoft Expression Web.</p>
<ol>
<li><a href="http://expression.microsoft.com/en-us/cc197140.aspx">http://expression.microsoft.com/en-us/cc197140.aspx</a> for tutorials, videos, free Expression Web templates.</li>
<li><a href="http://any-expression.com">http://any-expression.com</a> - is owned by Tina Clarke, who is a fellow Expression Web MVP. The site features plenty of tutorials, tips, ebooks on Expression Web and FrontPage.<br />
Her blog <a href="http://www.expression-web.net/">http://www.expression-web.net/</a> also offers useful Expression Web resources.</li>
<li><a href="http://by-expression.com">http://by-expression.com</a> features excellent Tutorials and Sample Sites by Expression Web MVP, Cheryl D. Wise. She also conducts trainings for EW.</li>
<li><a href="http://www.expression-web-designer-help.com/">http://www.expression-web-designer-help.com/</a> is a great site to seek help in MS Expression Web, run by Jim Davidson, MVP Expression Web.</li>
<li><a href="http://www.expression-web-tutorials.com/">http://www.expression-web-tutorials.com/</a> and <a href="http://www.expression-web-tips.com/">http://www.expression-web-tips.com/</a><br />
Owned by Expression Web MVP, Patricia Ann Geary, these sites include EW tutorials, templates, tips and news on EW as well as FrontPage tutorials.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2009/10/27/useful-resources-for-microsoft-expression-web/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>To add a line height to a paragraph using CSS in Microsoft Expression Web 3</title>
		<link>http://www.saffronstroke.com/2009/09/23/to-add-a-line-height-to-a-paragraph-using-css-in-microsoft-expression-web-3/</link>
		<comments>http://www.saffronstroke.com/2009/09/23/to-add-a-line-height-to-a-paragraph-using-css-in-microsoft-expression-web-3/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 16:27:10 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[add line-height to paragraph]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Expression Web 3]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[line height]]></category>
		<category><![CDATA[paragraph]]></category>

		<guid isPermaLink="false">http://saffronstroke.com/?p=721</guid>
		<description><![CDATA[There are two ways to do this with CSS; By assigning a line height to all the paragraphs: In the Apply Styles or Manage Styles panel (task pane in earlier versions of Expression Web) click on ‘New Style’. In the selector box, type in ‘p’ and in the Block category, enter a value for line-height, [...]]]></description>
			<content:encoded><![CDATA[<div align="left" style="float: none; clear:right; padding: 0px 5px 5px 0px;"><a name="fb_share" type="button_count" share_url="http://www.saffronstroke.com/2009/09/23/to-add-a-line-height-to-a-paragraph-using-css-in-microsoft-expression-web-3/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;; margin-top:-2px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F09%2F23%2Fto-add-a-line-height-to-a-paragraph-using-css-in-microsoft-expression-web-3%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F09%2F23%2Fto-add-a-line-height-to-a-paragraph-using-css-in-microsoft-expression-web-3%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>There are two ways to do this with CSS;</p>
<ol>
<li>By assigning a line height to all the paragraphs:</li>
<p>In the Apply Styles or Manage Styles panel (task pane in earlier versions of Expression Web) click on ‘New Style’. In the selector box, type in ‘p’ and in the Block category, enter a value for line-height, say 20px.</p>
<p><a href="http://www.saffronstroke.com/wp-content/uploads/2009/09/new_style_line_ht1.jpg" rel="lightbox[721]"><img class="alignnone size-full wp-image-724" title="new_style_line_ht" src="http://www.saffronstroke.com/wp-content/uploads/2009/09/new_style_line_ht1.jpg" alt="new_style_line_ht" width="434" height="416" /></a>  </p>
<p>Now all the paragraphs will have a same line height of 20px. </p>
<li>If you do not want a same line-height for all the paragraphs, define a class selector and assign a line-height value. The class selector could be generic (.line_ht) or specific to paragraph element (p.line_ht). (Both these concepts are explained later in the article.) To define these styles follow the same steps given above in pt. 1. Then apply the styles to the paragraphs. </li>
</ol>
<p><strong>Difference between Generic Class Selectors and Specific Class Selectors</strong></p>
<p>A generic class selector could be assigned to any element like &lt;div class=” line_ht”&gt;&lt;/div&gt;. Unlike this kind of class selector, the specific class selector will be applied only to those <strong>paragraph</strong> elements that have a class attribute containing the word ‘line_ht’, and no other elements. </p>
<p>Take a look at these examples to make things more clear;</p>
<p><strong>/*Element Selector */</strong></p>
<p>p { line-height : 20px;}</p>
<p>&lt;p&gt;This paragraph will have a line-height of 20px&lt;/p&gt;</p>
<p>&lt;div&gt; This paragraph will have the default line-height &lt;/div&gt;</p>
<p> </p>
<p><strong>/* Generic Class Selector */</strong></p>
<p>.line_ht { line-height : 20px;}</p>
<p>&lt;p class=” line_ht”&gt;This paragraph will have a line-height of 20px&lt;/p&gt;</p>
<p>&lt;span class=” line_ht”&gt;This paragraph will also have a line-height of 20px&lt;/span&gt;</p>
<p>&lt;div class=” line_ht”&gt;This paragraph too will have a line-height of 20px&lt;/div&gt;</p>
<p> </p>
<p><strong>/*Specific Class Selector */</strong></p>
<p>p.line_ht { line-height : 20px;}</p>
<p>&lt;p class=” line_ht”&gt;This paragraph will have a line-height of 20px&lt;/p&gt;</p>
<p>&lt;p&gt; This paragraph will have the default line-height &lt;p/&gt;<span id="_marker"> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2009/09/23/to-add-a-line-height-to-a-paragraph-using-css-in-microsoft-expression-web-3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Creating Style Sheets in Microsoft Expression Web</title>
		<link>http://www.saffronstroke.com/2009/08/29/creating-style-sheets-in-microsoft-expression-web/</link>
		<comments>http://www.saffronstroke.com/2009/08/29/creating-style-sheets-in-microsoft-expression-web/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 11:04:18 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft Expression Web]]></category>
		<category><![CDATA[style sheet]]></category>

		<guid isPermaLink="false">http://saffronstroke.com/?p=670</guid>
		<description><![CDATA[Microsoft Expression Web has some pre-defined set of style sheets which you can directly use in your document. There are in all 13 style sheets that are written for different purposes like Bars, Blocks, Capsules, Expedition, Highway, Poetic, Sweets and such others. Each of these style sheets has a unique style, with headings, background, font [...]]]></description>
			<content:encoded><![CDATA[<div align="left" style="float: none; clear:right; padding: 0px 5px 5px 0px;"><a name="fb_share" type="button_count" share_url="http://www.saffronstroke.com/2009/08/29/creating-style-sheets-in-microsoft-expression-web/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;; margin-top:-2px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F08%2F29%2Fcreating-style-sheets-in-microsoft-expression-web%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F08%2F29%2Fcreating-style-sheets-in-microsoft-expression-web%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Microsoft Expression Web has some pre-defined set of style sheets which you can directly use in your document. There are in all 13 style sheets that are written for different purposes like Bars, Blocks, Capsules, Expedition, Highway, Poetic, Sweets and such others. Each of these style sheets has a unique style, with headings, background, font styles, etc.</p>
<p><strong>How to add a style sheet to your page?</strong></p>
<ol>
<li>Go to File menu &gt; New &gt; Page.</li>
<p><img class="alignnone size-full wp-image-671" title="file_new_page" src="http://www.saffronstroke.com/wp-content/uploads/2009/08/file_new_page.jpg" alt="file_new_page" width="305" height="70" /> </p>
<li>The ‘New Page’ window would then be prompted.</li>
<p><img class="alignnone size-full wp-image-672" title="new_dlg" src="http://www.saffronstroke.com/wp-content/uploads/2009/08/new_dlg.jpg" alt="new_dlg" width="434" height="315" /> </p>
<p>In the leftmost column of the window, choose <strong>Style Sheets</strong>. The center column would then list down all the available predefined style sheets. As you select a style sheet from the list, the top portion in the right most column, gives a brief description of that style.</p>
<li>You can choose one that may suit your page requirements and click OK.</li>
<li>A style sheet will now be opened in your main workspace with a name ‘Untitiled_1.css’.</li>
<li>Now you need to save this css file in the same location of your document. Give an appropriate name to it.</li>
<li>Link this file in your page by following these instructions:
<ul>
<li>In Apply Styles or Manage Styles panel (task panes in versions earlier than 3) click on ‘Attach Style Sheet…’.</li>
<p><img class="alignnone size-full wp-image-673" title="attach_ss_opt" src="http://www.saffronstroke.com/wp-content/uploads/2009/08/attach_ss_opt.jpg" alt="attach_ss_opt" width="190" height="81" /> </p>
<li>In the Attach Style Sheet window browse to the location of css file. You can choose attach it as a link or import it into your current page, selected page or all HTML pages. In this case choose ‘Current Page’ and as ‘Link’.</li>
<p><img class="alignnone size-full wp-image-674" title="attach_ss_window" src="http://www.saffronstroke.com/wp-content/uploads/2009/08/attach_ss_window.jpg" alt="attach_ss_window" width="338" height="163" /> </p>
<li>Click OK. The css file will now be attached to your page.</li>
</ul>
</li>
<li>Now see your page being styled as per the styles defined in the attached style sheet.</li>
</ol>
<p>          <img class="alignnone size-full wp-image-675" title="final" src="http://www.saffronstroke.com/wp-content/uploads/2009/08/final.jpg" alt="final" width="399" height="371" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2009/08/29/creating-style-sheets-in-microsoft-expression-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Class Selectors</title>
		<link>http://www.saffronstroke.com/2009/08/21/class-selectors/</link>
		<comments>http://www.saffronstroke.com/2009/08/21/class-selectors/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 16:24:22 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[CSS Hacks, Tips and Tricks]]></category>
		<category><![CDATA[class selector]]></category>
		<category><![CDATA[classes]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS tips]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[selectors]]></category>

		<guid isPermaLink="false">http://saffronstroke.com/?p=648</guid>
		<description><![CDATA[We learnt what &#8216;Element Selectors&#8217; are and how to group declarations and selectors, in our tutorial Element Selectors in CSS. But as you advance in HTML and CSS, you will need more specialized rules to style an element.  Apart from document elements (element selectors) there are two other types of selectors you can define on [...]]]></description>
			<content:encoded><![CDATA[<div align="left" style="float: none; clear:right; padding: 0px 5px 5px 0px;"><a name="fb_share" type="button_count" share_url="http://www.saffronstroke.com/2009/08/21/class-selectors/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;; margin-top:-2px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F08%2F21%2Fclass-selectors%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F08%2F21%2Fclass-selectors%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>We learnt what &#8216;Element Selectors&#8217; are and how to group declarations and selectors, in our tutorial <a href="http://saffronstroke.com/2009/07/20/element-selectors-cs/">Element Selectors in CSS</a>. But as you advance in HTML and CSS, you will need more specialized rules to style an element.  Apart from document elements (element selectors) there are two other types of selectors you can define on your own. They are <strong>Class selectors</strong> and <strong>ID selectors</strong>.</p>
<p><strong>What are class selectors?</strong></p>
<p>A class selector is set of styles that you can apply to one or more elements. See these examples:</p>
<p>&lt;p class=”desc_text” &gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor &lt;/p&gt;</p>
<p>&lt;h3&gt; Lorem ipsum dolor &lt;span class=”desc_text”&gt; sit amet, consectetur adipisicing elit, sed &lt;/span&gt; do eiusmod tempor &lt;/h3&gt;</p>
<p>A class ‘desc_text’ when applied to the paragraph element stylizes the entire paragraph whereas when applied to the span element stylizes only the spanned text.</p>
<p>Though we will learn more about the ID selector later, the main difference between the two is that class selectors can be used for multiple selectors and ID selector can style a single element in the entire document.</p>
<p><strong>Defining class selector in CSS</strong></p>
<p>In CSS the class selector is preceded by a period ‘.’ followed by the class name and style definition. See below:</p>
<p>.desc_text {font-size: 10px; color: #cccccc; }</p>
<p>This kind of class selector could be applied to any element that matches the class attribute value ‘desc_text’.</p>
<p>You can also use the universal selector ‘*’ to define the class that matches any element in the document.</p>
<p>*.desc_text {font-size: 10px; color: #cccccc;}</p>
<p>But this one;</p>
<p>p.desc_text {font-size: 10px; color: #cccccc; }</p>
<p>will match any paragraph elements that have the class attribute containing the word ‘desc_text’. In the above example the span element would not match this class and hence the styles would not be applied. So this kind of rule applies only to a specific type of element.</p>
<p><strong>Combination of general class selector and element-specific class selector</strong></p>
<p>.desc_text { font-size: 10px; }</p>
<p>span.desc_text { color: #cccccc ;}</p>
<p>First declaration is an example of general class selector and the second one is of element specific class selector. You can declare both and use them together. The output of the above example would be as shown below:</p>
<p><img class="alignnone size-full wp-image-649" title="Example" src="http://www.saffronstroke.com/wp-content/uploads/2009/08/untitled.jpg" alt="Example" width="438" height="60" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2009/08/21/class-selectors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Universal Selector in CSS2</title>
		<link>http://www.saffronstroke.com/2009/08/14/universal-selector-in-css2/</link>
		<comments>http://www.saffronstroke.com/2009/08/14/universal-selector-in-css2/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 13:39:18 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[CSS Hacks, Tips and Tricks]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS tips]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[selector]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[universal selector]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://saffronstroke.com/?p=635</guid>
		<description><![CDATA[CSS2 had introduced a new selector, the universal selector to match any element in your page. The selector is indicated as an asterisk &#8216;*&#8217;. The universal selector could be used to list every element in your page. For example, * {font-size: 12px} This declaration would set the font size of all the elements used in [...]]]></description>
			<content:encoded><![CDATA[<div align="left" style="float: none; clear:right; padding: 0px 5px 5px 0px;"><a name="fb_share" type="button_count" share_url="http://www.saffronstroke.com/2009/08/14/universal-selector-in-css2/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;; margin-top:-2px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F08%2F14%2Funiversal-selector-in-css2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F08%2F14%2Funiversal-selector-in-css2%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>CSS2 had introduced a new selector, the universal selector to match any element in your page. The selector is indicated as an asterisk &#8216;*&#8217;. The universal selector could be used to list every element in your page.<br />
For example,</p>
<p>* {font-size: 12px}</p>
<p>This declaration would set the font size of all the elements used in your document to 12px.</p>
<p>NOTE: Even though the universal selector is one handy option, consider the specificity of other selectors for it to work properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2009/08/14/universal-selector-in-css2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apply Jump Menu Go Behavior in Microsoft Expression Web 2</title>
		<link>http://www.saffronstroke.com/2009/08/03/apply-jump-menu-go-behavior-in-ms-ew2/</link>
		<comments>http://www.saffronstroke.com/2009/08/03/apply-jump-menu-go-behavior-in-ms-ew2/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 05:00:24 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[behavior]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Expression]]></category>
		<category><![CDATA[Expression Web 2]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jump menu]]></category>
		<category><![CDATA[jump menu go]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://saffronstroke.com/?p=621</guid>
		<description><![CDATA[Jump Menu Go behavior lets you associate a button (Go button) with a jump menu. In that case a jump menu should already exist in the document. Though a jump menu does not need a go button to execute, selecting an item from the jump menu causes a URL to load on its own. But [...]]]></description>
			<content:encoded><![CDATA[<div align="left" style="float: none; clear:right; padding: 0px 5px 5px 0px;"><a name="fb_share" type="button_count" share_url="http://www.saffronstroke.com/2009/08/03/apply-jump-menu-go-behavior-in-ms-ew2/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;; margin-top:-2px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F08%2F03%2Fapply-jump-menu-go-behavior-in-ms-ew2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F08%2F03%2Fapply-jump-menu-go-behavior-in-ms-ew2%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Jump Menu Go behavior lets you associate a button (Go button) with a jump menu. In that case a jump menu should already exist in the document. Though a jump menu does not need a go button to execute, selecting an item from the jump menu causes a URL to load on its own. But a go button may be required if you want to re-select the already chosen item, which may not be registered just by choosing it from the jump menu.</p>
<p>When you add a jump menu go behavior, your go button will perform the &#8220;jump&#8221; action to take to the associated URL. Selecting a menu item from the jump menu will no longer direct the user to the related page then.</p>
<p>To create a Jump Menu Go button, follow these steps:</p>
<ol>
<li>If a jump menu is not already created create one. How do I create a jump menu?</li>
<li>Add a button object near the jump menu.</li>
<p><img class="alignnone size-full wp-image-622" title="go_button" src="http://www.saffronstroke.com/wp-content/uploads/2009/08/go_button.jpg" alt="go_button" width="264" height="63" /> </p>
<li>In the Behaviors task pane, choose Insert and from the menu select &#8216;Jump Menu Go&#8217;.</li>
<p><img class="alignnone size-full wp-image-623" title="jump_menu_go_beh" src="http://www.saffronstroke.com/wp-content/uploads/2009/08/jump_menu_go_beh.jpg" alt="jump_menu_go_beh" width="193" height="235" /> </p>
<li>You would be prompted with ‘Jump Menu Go’ dialog box, as shown below:</li>
<p><img class="alignnone size-full wp-image-624" title="jump_menu_go_dlg" src="http://www.saffronstroke.com/wp-content/uploads/2009/08/jump_menu_go_dlg.jpg" alt="jump_menu_go_dlg" width="320" height="190" /> </p>
<li>Choose the menu for Go button to activate and click OK.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2009/08/03/apply-jump-menu-go-behavior-in-ms-ew2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Renaming Class-based styles in Microsoft Expression Web 2</title>
		<link>http://www.saffronstroke.com/2009/07/28/rename-class-based-style-ms-ew2/</link>
		<comments>http://www.saffronstroke.com/2009/07/28/rename-class-based-style-ms-ew2/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 09:10:06 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Expression Web 2]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[rename class]]></category>
		<category><![CDATA[rename class-based style]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">http://saffronstroke.com/?p=606</guid>
		<description><![CDATA[You may require to rename your existing class-based style, while you are working with your document. The important factor here is that you want all the references to that class to be updated too. Well EW lets you do that using the Apply Styles, Modify Styles or CSS Properties task pane and instantaneously update all [...]]]></description>
			<content:encoded><![CDATA[<div align="left" style="float: none; clear:right; padding: 0px 5px 5px 0px;"><a name="fb_share" type="button_count" share_url="http://www.saffronstroke.com/2009/07/28/rename-class-based-style-ms-ew2/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;; margin-top:-2px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F07%2F28%2Frename-class-based-style-ms-ew2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F07%2F28%2Frename-class-based-style-ms-ew2%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>You may require to rename your existing class-based style, while you are working with your document. The important factor here is that you want all the references to that class to be updated too. Well EW lets you do that using the Apply Styles, Modify Styles or CSS Properties task pane and instantaneously update all the references. Here is how you can do that.</p>
<ol>
<li>Open the web page where the style is defined and applied. If you are using an external style sheet, open that.</li>
<li>Do either of the following:
<ul>
<li>In Apply Styles task pane, select the class-based style and click on the down arrow besides it. From the menu choose ‘<strong>Rename class “classname”…’</strong>.</li>
<p><img class="alignnone size-full wp-image-607" title="app_style_tp" src="http://www.saffronstroke.com/wp-content/uploads/2009/07/app_style_tp.jpg" alt="app_style_tp" width="206" height="375" /></p>
<li>In Manage Styles task pane, right click on the class-based style and choose ‘<strong>Rename class “classname”…’ </strong>from the menu.</li>
<p><img class="alignnone size-full wp-image-608" title="man_style_tp" src="http://www.saffronstroke.com/wp-content/uploads/2009/07/man_style_tp.jpg" alt="man_style_tp" width="182" height="166" /></p>
<li>In the CSS Properties task pane, under the Applied Rules section, find the class-based style and right click to choose ‘<strong>Rename class “classname”…’</strong></li>
<p><img class="alignnone size-full wp-image-610" title="css_prop_tp" src="http://www.saffronstroke.com/wp-content/uploads/2009/07/css_prop_tp1.jpg" alt="css_prop_tp" width="202" height="153" /> </ul>
</li>
<li>The Rename Class dialog box will then appear.</li>
<p> <img class="alignnone size-full wp-image-611" title="ren_class_dlg" src="http://www.saffronstroke.com/wp-content/uploads/2009/07/ren_class_dlg.jpg" alt="ren_class_dlg" width="416" height="175" /></p>
<li>The dialog box tells you where the style is defined and its current name. Enter the new name for the style in ‘New name’ box. The name should not begin with a period. Also this new name should not contain any underscores since they are now deprecated by the current CSS standards.</li>
<li>The checkbox ‘<strong>Rename class references in x files that uses this style sheet’</strong> lets you update all the existing references to this class in your document. Check this box and click OK.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2009/07/28/rename-class-based-style-ms-ew2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Element Selectors in CSS</title>
		<link>http://www.saffronstroke.com/2009/07/20/element-selectors-cs/</link>
		<comments>http://www.saffronstroke.com/2009/07/20/element-selectors-cs/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 06:52:50 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[CSS Hacks, Tips and Tricks]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS tips]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[element]]></category>
		<category><![CDATA[grouping selectors]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[selectors]]></category>
		<category><![CDATA[techniques]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://saffronstroke.com/?p=597</guid>
		<description><![CDATA[Why is CSS preferred by all the designers? Well that is because of its ability to separate presentation from the content and most importantly its power to edit the document style by changing a single line of code. Don&#8217;t believe me? Find it yourself! An element selector is an HTML element. There are other types [...]]]></description>
			<content:encoded><![CDATA[<div align="left" style="float: none; clear:right; padding: 0px 5px 5px 0px;"><a name="fb_share" type="button_count" share_url="http://www.saffronstroke.com/2009/07/20/element-selectors-cs/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;; margin-top:-2px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F07%2F20%2Felement-selectors-cs%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F07%2F20%2Felement-selectors-cs%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Why is CSS preferred by all the designers? Well that is because of its ability to separate presentation from the content and most importantly its power to edit the document style by changing a single line of code. Don&#8217;t believe me? Find it yourself!</p>
<p>An element selector is an HTML element. There are other types of selectors too, which we will explore later. So the element selectors are the most basic selectors in your document structure. html, body, p, div, span, headings, etc are all different types of element selectors of a document. We can apply certain rules to them to stylize these selectors. For example, if we want all the paragraphs to be displayed in red color, we can do that by;</p>
<p>p { color: red}</p>
<p>Or if we want the heading 2 to appear with a gray background;</p>
<p>h2 { background-color: gray}</p>
<p><strong>Grouping multiple declarations</strong></p>
<p>We saw how to apply a single declaration to an element selector. But you can have multiple declarations in the same rule. See this example:</p>
<p>p { color: red; background-color: gray;}</p>
<p>In this rule, we have combined two declarations; (i) the font-color in all paragraphs to be red (ii) background color of all paragraphs to be gray. Semicolon is used as a separator between these declarations. If you notice, the last declaration is also followed by a semicolon. It is rather important to do so since browsers ignore the whitespaces in the style sheet. To make this clear see following example:</p>
<p>p { color: red; background-color: gray font-size: 10px; }</p>
<p>Since there is no ‘;’ after the value ‘gray’ for background-color, browsers check if the property has multiple values. But since font-size is not a valid value and background-color does not take multiple values, both the properties will be ignored. But note that the last declaration of the group need not end with a semicolon. For instance;</p>
<p>p { color: red; background-color: gray}</p>
<p>This will work absolutely fine in most of the browsers. But at a later stage, if you want to add some more declarations to the group, you must add a semicolon after this declaration, else it would ignored as shown in above example.</p>
<p><strong>Grouping Element Selectors</strong></p>
<p>We saw techniques to apply one or more styles to a single selector. But what if, you want to apply same style to more than one element selector. For instance, if you want heading 2 and paragraph both to be in red. It would be stupid of us if we write the same style for another element. There is a better way to do that;</p>
<p>h2, p { color: red}</p>
<p>In this example, we are using a comma to group two selectors, viz. &#8216;h3&#8242; and &#8216;p’. Similarly you can group multiple selectors. This way you generate fewer lines of styles in your style sheet which in turn makes it easier for you to find out selectors and styles at a later stage when your style sheet has numerous rules defined in it.</p>
<p><strong>Grouping multiple declarations with multiple selectors</strong></p>
<p>By now we grouped multiple declarations for a single selector and we also grouped multiple selectors with a single declaration. Now it’s turn to group multiple declarations, with multiple selectors. Confusing enough isn&#8217;t it! Well this example would make it clear;</p>
<p>h2, p {</p>
<p>                color: red;</p>
<p>                background-color: gray;</p>
<p>                font-size: 10px;</p>
<p>}</p>
<p>These were some powerful and effective techniques of CSS. We will learn more in our coming articles, but for now I hope you enjoyed reading this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2009/07/20/element-selectors-cs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Most used values of the &#039;display&#039; property in CSS</title>
		<link>http://www.saffronstroke.com/2009/07/07/most-used-values-of-the-display-property-in-css/</link>
		<comments>http://www.saffronstroke.com/2009/07/07/most-used-values-of-the-display-property-in-css/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 07:21:56 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[CSS Hacks, Tips and Tricks]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[display property]]></category>
		<category><![CDATA[display: inline-block; inline]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML property]]></category>
		<category><![CDATA[inline-block]]></category>

		<guid isPermaLink="false">http://saffronstroke.com/?p=581</guid>
		<description><![CDATA[The display property defines how HTML elements should be displayed. display: block The element will generate a block around it with line break before and after the element.   display: inline The element will generate an inline box around it, which will be in line with rest of the content.    display: inline-block The element [...]]]></description>
			<content:encoded><![CDATA[<div align="left" style="float: none; clear:right; padding: 0px 5px 5px 0px;"><a name="fb_share" type="button_count" share_url="http://www.saffronstroke.com/2009/07/07/most-used-values-of-the-display-property-in-css/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;; margin-top:-2px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F07%2F07%2Fmost-used-values-of-the-display-property-in-css%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F07%2F07%2Fmost-used-values-of-the-display-property-in-css%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>The display property defines how HTML elements should be displayed.</p>
<ul>
<li>display: block</li>
</ul>
<p style="padding-left:30px;">The element will generate a block around it with line break before and after the element.</p>
<p style="padding-left:30px;"> <img title="block" src="http://www.saffronstroke.com/wp-content/uploads/2009/07/block.jpg" alt="block" width="262" height="114" /></p>
<ul>
<li>display: inline</li>
</ul>
<p style="padding-left:30px;">The element will generate an inline box around it, which will be in line with rest of the content.</p>
<p style="padding-left:30px;"> <img class="alignnone size-full wp-image-585" title="inline" src="http://www.saffronstroke.com/wp-content/uploads/2009/07/inline.jpg" alt="inline" width="261" height="112" /> </p>
<ul>
<li>display: inline-block</li>
</ul>
<p style="padding-left:30px;">The element will generate a block box positioned as an inline box.</p>
<p style="padding-left:30px;"> <img class="alignnone size-full wp-image-586" title="inline-block" src="http://www.saffronstroke.com/wp-content/uploads/2009/07/inline-block.jpg" alt="inline-block" width="262" height="112" /></p>
<ul>
<li>display : none</li>
</ul>
<p style="padding-left:30px;">The element will not generate any box; the element will not be displayed at all.</p>
<ul>
<li>display: inline-table</li>
</ul>
<p style="padding-left:30px;">The element will generate a table like box positioned as an inline box.</p>
<p style="padding-left:30px;"> <img class="alignnone size-full wp-image-587" title="inline-table" src="http://www.saffronstroke.com/wp-content/uploads/2009/07/inline-table.jpg" alt="inline-table" width="262" height="113" /> </p>
<ul>
<li>display: list-item</li>
</ul>
<p style="padding-left:30px;">The element is displayed as a list item. The list is an unordered list and hence preceded by a bullet mark.IE5 on Mac displays the list as ordered.</p>
<p style="padding-left:30px;"> <img title="list-item" src="http://www.saffronstroke.com/wp-content/uploads/2009/07/list-item.jpg" alt="list-item" width="273" height="114" /> </p>
<ul>
<li>display: run-in</li>
</ul>
<p style="padding-left:30px;">The element will generate a block box if it is followed by any box other than block box. It will generate an inline box if followed by a fixed and absolutely positioned block box.</p>
<p style="padding-left:30px;"> <img class="alignnone size-full wp-image-589" title="run-in" src="http://www.saffronstroke.com/wp-content/uploads/2009/07/run-in.jpg" alt="run-in" width="262" height="113" /> </p>
<ul>
<li>display: inherit</li>
</ul>
<p style="padding-left:30px;">The element inherits its value from its parent element.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2009/07/07/most-used-values-of-the-display-property-in-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

