<?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 Hacks, Tips and Tricks</title>
	<atom:link href="http://www.saffronstroke.com/category/css-hacks-tips-and-tricks/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>CSS: Most Interesting Questions I Was Asked Last Year</title>
		<link>http://www.saffronstroke.com/2012/01/08/css-most-interesting-questions-i-was-asked-last-year/</link>
		<comments>http://www.saffronstroke.com/2012/01/08/css-most-interesting-questions-i-was-asked-last-year/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 12:26:57 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[CSS Hacks, Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.saffronstroke.com/?p=2309</guid>
		<description><![CDATA[Wow! It’s 2012 already and a very Happy New Year to all of you! Well you can say I just woke up to the internet world after a long hiatus. Although I was blogging actively in 2010-11, I had to stop most of my online stuff and give way to becoming a parent. I am a [...]]]></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/2012/01/08/css-most-interesting-questions-i-was-asked-last-year/"></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%2F2012%2F01%2F08%2Fcss-most-interesting-questions-i-was-asked-last-year%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2012%2F01%2F08%2Fcss-most-interesting-questions-i-was-asked-last-year%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Wow! It’s 2012 already and a very Happy New Year to all of you!</p>
<p>Well you can say I just woke up to the internet world after a long hiatus. <em>Although I was blogging actively in 2010-11, I had to stop most of my online stuff and give way to becoming a parent. I am a Mom now and want to get back to what I enjoy doing &#8211; <em>Blogging about Web Design!</em></em></p>
<p>I plan to start the first post of this year by thanking every person visiting this site and listing down the most interesting CSS questions that I received from you folks, the last year. I also plan to make this post as interactive as possible. In this post, I will list only the questions and let you answer them. Next week onwards,  I will update this post and start adding answers to these questions, duly acknowledging your answers in it. I will make a separate post for all deserving answers and publish it in your name, with your permission.</p>
<p>Sounds good? Let’s get started!</p>
<p>Q1. Why should I choose CSS/DIV over Table for creating Layouts?</p>
<p>Q2. When should I use Class Selectors instead of ID selectors?</p>
<p>Q3. Please explain !important?</p>
<p>Q4. Cross Browser way to align CheckBoxes and RadioButtons</p>
<p>Q5. When to use Img tag instead of CSS background-image?</p>
<p>Q6. How do I make sure I am using Web Safe Fonts?</p>
<p>Q7. When to use Margin vs Padding in CSS?</p>
<p>Q8. When should I use em, px or % in font sizes?</p>
<p>Q9. Which list-style-type properties are supported by all major browsers?</p>
<p>Q10. How can I create a font of my own?</p>
<p>Q11. How can I break long words and auto wrap them in a DIV?</p>
<p>Q12. I want to add reflection to all the images on my site. Is there a simple way to do this?</p>
<p>Q13. Horizontal Rules are so boring to look at. Do you have some CSS to spruce it up?</p>
<p>Q14. How can I write a style sheet that has two rules; the 1st rule for all media types, and 2nd rule for mobile devices?</p>
<p>Q15. How can I align text between two images?</p>
<p>Q16. How can I print background images</p>
<p>Q17. How to center align a Div and the contents in it?</p>
<p>Q18. Which CSS Frameworks do you recommend?</p>
<p>Q19. Remove dotted outline on Links in FireFox</p>
<p>Q20. How to include one CSS file into another?</p>
<p>Q21. Books for Beginner and Intermediate CSS designers?</p>
<p>Q22. Can I style a &lt;br /&gt;?</p>
<p>Q23. What’s the difference between @import and link?</p>
<p>Q24. Any CSS Troubleshooting Tools?</p>
<p>Q25. What is Quirks mode? Why is it needed?</p>
<p><em>and yes, there were no rounder corner questions I got last year <img src='http://www.saffronstroke.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em></p>
<p>So go on and take a shot at answering any of these questions!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2012/01/08/css-most-interesting-questions-i-was-asked-last-year/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Working with line breaks in Expression Web</title>
		<link>http://www.saffronstroke.com/2010/05/04/working-with-line-breaks-in-expression-web/</link>
		<comments>http://www.saffronstroke.com/2010/05/04/working-with-line-breaks-in-expression-web/#comments</comments>
		<pubDate>Tue, 04 May 2010 10:46:05 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[CSS Hacks, Tips and Tricks]]></category>
		<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[break]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[line break]]></category>
		<category><![CDATA[space]]></category>

		<guid isPermaLink="false">https://saffronstroke.wordpress.com/2010/05/04/working-with-line-breaks-in-expression-web/</guid>
		<description><![CDATA[The basic formatting techniques like Line breaks, white spaces and indentation make your web content stand out and look clean and neat. The HTML &#60;br&#62; tag is used to add line breaks in your page. See below: marks denote line breaks. To view line breaks or other Formatting marks in Expression Web, go to View [...]]]></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/05/04/working-with-line-breaks-in-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%2F2010%2F05%2F04%2Fworking-with-line-breaks-in-expression-web%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2010%2F05%2F04%2Fworking-with-line-breaks-in-expression-web%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>The basic formatting techniques like Line breaks, white spaces and indentation make your web content stand out and look clean and neat. The HTML &lt;br&gt; tag is used to add line breaks in your page. See below:</p>
<p><img style="display: inline; border-width: 0;" title="clip_image004" src="http://www.saffronstroke.com/wp-content/uploads/2010/05/clip_image004.jpg" border="0" alt="clip_image004" width="426" height="42" /></p>
<p><img style="display: inline; border-width: 0;" title="clip_image002" src="http://www.saffronstroke.com/wp-content/uploads/2010/05/clip_image002.jpg" border="0" alt="clip_image002" width="15" height="13" /> marks denote line breaks. To view line breaks or other Formatting marks in Expression Web, go to View menu &gt; Formatting Marks &gt; Show and then from the same menu choose ‘Line Breaks’.</p>
<p><strong>Tip:</strong> Use the same menu to view other formatting marks. The screenshots in this article are taken in Expression Web 3.</p>
<p>To add line breaks; in Design view, place the cursor at the point where you want to insert a line break and do either of the following:</p>
<p>a. In the Toolbox, under the Tags heading, double click or drag the <img style="display: inline; border-width: 0;" title="clip_image006" src="http://www.saffronstroke.com/wp-content/uploads/2010/05/clip_image006.jpg" border="0" alt="clip_image006" width="50" height="24" />.</p>
<p>b. Insert &gt; HTML &gt; Break.</p>
<p><img style="display: inline; border-width: 0;" title="clip_image008" src="http://www.saffronstroke.com/wp-content/uploads/2010/05/clip_image008.jpg" border="0" alt="clip_image008" width="360" height="97" /></p>
<p>c. Hit Shift + Enter.</p>
<p><strong>NOTE: </strong>Hitting Shift + Enter will add a line break whereas hitting only the enter key adds a paragraph break.</p>
<p>To format a line break, select the line break in the design view, go to the Format menu and choose Properties. The Break dialog box will be prompted as follows:</p>
<p><img style="display: inline; border-width: 0;" title="clip_image010" src="http://www.saffronstroke.com/wp-content/uploads/2010/05/clip_image010.jpg" border="0" alt="clip_image010" width="315" height="137" /></p>
<p>a. Normal line break: create a default line break.</p>
<p>b. Clear left margin: clears left margin and begins the next line at the nearest line below the content in the left margin.</p>
<p>c. Clear right margin: clears right margin and begins the next line at the nearest line below the content in the right margin.</p>
<p>d. Clear both margins: clears both the margins and begins the next line at the nearest line below the contents in both the margins.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2010/05/04/working-with-line-breaks-in-expression-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Difference between Screen Tips and alt attribute</title>
		<link>http://www.saffronstroke.com/2010/02/26/difference-between-screen-tips-and-alt-attribute/</link>
		<comments>http://www.saffronstroke.com/2010/02/26/difference-between-screen-tips-and-alt-attribute/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 09:52:00 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[CSS Hacks, Tips and Tricks]]></category>
		<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[alt attribute]]></category>
		<category><![CDATA[screen tip]]></category>
		<category><![CDATA[title]]></category>
		<category><![CDATA[tooltip]]></category>

		<guid isPermaLink="false">http://saffronstroke.wordpress.com/?p=859</guid>
		<description><![CDATA[Many designers and users are confused about the difference between a screen tip/ tooltip and the alt attribute. A Screen Tip or Tool Tip gives some description about a link, menu or an item. Whereas an alt attribute is used for accessibility for those users who do not have the ability to view images or [...]]]></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/02/26/difference-between-screen-tips-and-alt-attribute/"></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%2F02%2F26%2Fdifference-between-screen-tips-and-alt-attribute%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2010%2F02%2F26%2Fdifference-between-screen-tips-and-alt-attribute%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Many designers and users are confused about the difference between a screen tip/ tooltip and the alt attribute.</p>
<p>A Screen Tip or Tool Tip gives some description about a link, menu or an item. Whereas an alt attribute is used for accessibility for those users who do not have the ability to view images or for those who use screen readers and also for those whose images are turned off/not displayed.</p>
<p>In non-standards compliant browsers like IE 6, the alt attribute was implemented incorrectly. So when a user hovered over an image (with alt attribute defined), he would see a screen tip. This caused confusion among many designers. But standards compliant browsers like Firefox, Opera, Safari and now IE 8 correctly implement the alt attribute.</p>
<p>So to add a screen tip, use the title attribute as shown in the code below:</p>
<p>&lt;img src=&#8221;maroon_leaves.jpg&#8221; alt=&#8221;leaves&#8221; title=&#8221;Maroon leaves&#8221;/&gt;</p>
<p><a href="http://www.saffronstroke.com/wp-content/uploads/2010/02/image.png" rel="lightbox[859]"><img style="display:inline;border-width:0;" title="image" src="http://www.saffronstroke.com/wp-content/uploads/2010/02/image_thumb.png" border="0" alt="image" width="206" height="129" /></a></p>
<p>The output of the above example can be seen in this image. On mouse over what is displayed is the screen tip (content of the title attribute) and not the content of alt attribute.</p>
<p><strong>NOTE:</strong> The title attribute will be rendered with or without the alt attribute.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2010/02/26/difference-between-screen-tips-and-alt-attribute/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>To add a shadow to a box using CSS 2.1</title>
		<link>http://www.saffronstroke.com/2010/02/16/to-add-a-shadow-to-a-box-using-css-2-1-2/</link>
		<comments>http://www.saffronstroke.com/2010/02/16/to-add-a-shadow-to-a-box-using-css-2-1-2/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 05:47:00 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[CSS Hacks, Tips and Tricks]]></category>
		<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[box-shadow]]></category>
		<category><![CDATA[CSS 2.1]]></category>
		<category><![CDATA[effect]]></category>
		<category><![CDATA[shadow]]></category>
		<category><![CDATA[shadow effect]]></category>

		<guid isPermaLink="false">http://saffronstroke.wordpress.com/2010/02/16/to-add-a-shadow-to-a-box-using-css-2-1-2/</guid>
		<description><![CDATA[In my previous article; ‘To add a shadow to a box using CSS 3 using the box-shadow property’, we explored the box-shadow property in CSS 3, available in browsers like Safari 3+ and Firefox 3.5+. But plenty of users use Internet Explorer, Chrome, Navigator and such other browsers. How can we have a shadow effect [...]]]></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/02/16/to-add-a-shadow-to-a-box-using-css-2-1-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%2F02%2F16%2Fto-add-a-shadow-to-a-box-using-css-2-1-2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2010%2F02%2F16%2Fto-add-a-shadow-to-a-box-using-css-2-1-2%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In my previous article; ‘To add a shadow to a box using CSS 3 using the box-shadow property’, we explored the box-shadow property in CSS 3, available in browsers like Safari 3+ and Firefox 3.5+. But plenty of users use Internet Explorer, Chrome, Navigator and such other browsers. How can we have a shadow effect in these browsers? One way is through use of images. I have found out a way to get a shadow effect for box like this:</p>
<p><a href="http://www.saffronstroke.com/wp-content/uploads/2010/02/clip_image0021.jpg" rel="lightbox[856]"><img style="display:inline;border-width:0;" title="clip_image002" border="0" alt="clip_image002" src="http://www.saffronstroke.com/wp-content/uploads/2010/02/clip_image002_thumb1.jpg" width="154" height="114" /></a></p>
<p>Though it is not similar to what we would get with the box-shadow property, but we can do with it. Here’s the code:</p>
<p>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</p>
<p>&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;</p>
<p>&lt;head&gt;</p>
<p>&lt;meta content=&quot;text/html; charset=utf-8&quot; http-equiv=&quot;Content-Type&quot; /&gt;</p>
<p>&lt;title&gt;Box Shadow Example&lt;/title&gt;</p>
<p>&lt;style type=&quot;text/css&quot;&gt;</p>
<p>body{</p>
<p>background-color:#ffffff;</p>
<p>}</p>
<p>.box{</p>
<p>background-color: #ffffff;</p>
<p>width:125px;</p>
<p>border: 1px silver solid;</p>
<p>margin: -1em 0 0 -1em;</p>
<p>padding: 0.5em;</p>
<p>}</p>
<p>.shadow{</p>
<p>background-color: silver;</p>
<p>width:125px;</p>
<p>padding: 0.5em;</p>
<p>margin: 1.5em 0 1.5em 2.5em;</p>
<p>}</p>
<p>.tbl {</p>
<p>width: 40%;</p>
<p>}</p>
<p>td{</p>
<p>padding-right:30px;</p>
<p>}</p>
<p>&lt;/style&gt;</p>
<p>&lt;/head&gt;</p>
<p>&lt;body&gt;</p>
<p>&lt;table class=&quot;tbl&quot;&gt;</p>
<p>&lt;tr&gt;</p>
<p>&lt;td&gt;</p>
<p>&lt;div class=&quot;shadow&quot;&gt;</p>
<p>&lt;div class=&quot;box&quot;&gt;</p>
<p>&lt;img src=&quot;maroon_leaves.jpg&quot; alt=”maroon_leaves”/&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/td&gt;</p>
<p>&lt;td&gt;</p>
<p>&lt;div class=&quot;shadow&quot;&gt;</p>
<p>&lt;div class=&quot;box&quot;&gt;</p>
<p>&lt;img src=&quot;small_plant.jpg&quot; alt=”small_plant”/&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/td&gt;</p>
<p>&lt;/tr&gt;</p>
<p>&lt;tr&gt;</p>
<p>&lt;td&gt;</p>
<p>&lt;div class=&quot;shadow&quot;&gt;</p>
<p>&lt;div class=&quot;box&quot;&gt;</p>
<p>&lt;img src=&quot;small_plant.jpg&quot; alt=”small_plant”/&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/td&gt;</p>
<p>&lt;td&gt;</p>
<p>&lt;div class=&quot;shadow&quot;&gt;</p>
<p>&lt;div class=&quot;box&quot;&gt;</p>
<p>&lt;img src=&quot;maroon_leaves.jpg&quot; alt=”maroon_leaves”/&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/td&gt;</p>
<p>&lt;/tr&gt;</p>
<p>&lt;/table&gt;</p>
<p>&lt;/body&gt;</p>
<p>&lt;/html&gt;</p>
<p>The output of the above code would be like this:</p>
<p><a href="http://www.saffronstroke.com/wp-content/uploads/2010/02/clip_image004.jpg" rel="lightbox[856]"><img style="display:inline;" title="clip_image004" alt="clip_image004" src="http://www.saffronstroke.com/wp-content/uploads/2010/02/clip_image004_thumb.jpg" width="240" height="175" /></a></p>
<p><b>NOTE:</b> The CSS in the above example is internal and not external. However it is advisable to you, to create an external style sheet and add all the styles to it. Then link the style sheet to your webpage.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2010/02/16/to-add-a-shadow-to-a-box-using-css-2-1-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To add a shadow to a box using CSS 3 using the box-shadow property</title>
		<link>http://www.saffronstroke.com/2010/02/09/to-add-a-shadow-to-a-box-using-css-3-using-the-box-shadow-property/</link>
		<comments>http://www.saffronstroke.com/2010/02/09/to-add-a-shadow-to-a-box-using-css-3-using-the-box-shadow-property/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 16:40:00 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[CSS Hacks, Tips and Tricks]]></category>
		<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[box-shadow]]></category>
		<category><![CDATA[box-shadow property]]></category>
		<category><![CDATA[CSS 3]]></category>
		<category><![CDATA[element shadow]]></category>
		<category><![CDATA[shadow]]></category>
		<category><![CDATA[special effects]]></category>

		<guid isPermaLink="false">http://saffronstroke.wordpress.com/2010/02/09/to-add-a-shadow-to-a-box-using-css-3-using-the-box-shadow-property/</guid>
		<description><![CDATA[One of the best features of CSS 3 is box-shadow that allows you to add shadow to any element. The property is at present implemented only in Safari 3 onwards and Firefox 3.5 onwards. An example of the output generated by this property is shown below: Isn’t it spectacular? And this is possible with a [...]]]></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/02/09/to-add-a-shadow-to-a-box-using-css-3-using-the-box-shadow-property/"></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%2F02%2F09%2Fto-add-a-shadow-to-a-box-using-css-3-using-the-box-shadow-property%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2010%2F02%2F09%2Fto-add-a-shadow-to-a-box-using-css-3-using-the-box-shadow-property%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>One of the best features of CSS 3 is box-shadow that allows you to add shadow to any element. The property is at present implemented only in Safari 3 onwards and Firefox 3.5 onwards. </p>
<p>An example of the output generated by this property is shown below:</p>
<p><a href="http://www.saffronstroke.com/wp-content/uploads/2010/02/clip_image002.jpg" rel="lightbox[837]"><img style="display:inline;border-width:0;" title="drop shadow image" border="0" alt="drop shadow image" src="http://www.saffronstroke.com/wp-content/uploads/2010/02/clip_image002_thumb.jpg" width="177" height="114" /></a></p>
<p>Isn’t it spectacular? And this is possible with a single property; ‘box-shadow’. </p>
<p>The property takes 3 integers and a color attribute.</p>
<p>1. Horizontal offset of the shadow; a positive value will place the shadow on the right of the box, a negative value will place the shadow on the left of the box.</p>
<p>2. Vertical offset; a positive value will put the shadow below the box and a negative value will put the box-shadow on top of the box.</p>
<p>3. Blur radius; beginning from 0 (sharp shadow), the higher the number, more blurred it will be.</p>
<p>4. Value for color.</p>
<p>box-shadow: 10px 10px 10px #888; padding: 5px 5px 5px 10px</p>
<p><b>NOTE:</b> To add a shadow to the box with rounded corners, use the border-radius property in addition to the box-shadow property. </p>
<p>To get the same effect as shown in the image above, use this code.</p>
<p>&lt;div style=&quot;-webkit-box-shadow: 10px 10px 10px #888; padding: 5px 5px 5px 10px; background-color: black; width:130px;&quot;&gt;</p>
<p>&lt;img src=&quot;../ maroon_leaves.jpg&quot; alt=”Leaves; ”/&gt;</p>
<p>&lt;/div&gt;</p>
<p><b>NOTE:</b> The box-shadow property is prefixed with -webkit- in Safari and -moz- in Firefox. That is because, most browsers support custom CSS tags that are not yet part of any standard. So they are prefixed with the browser name.</p>
<p>But the box-shadow property is still not supported in Internet Explorer and other browsers. To get a similar effect (without using images as shadow) is not possible (or it is something that I am not aware of!) In my next article, I will show you a way to create shadow effect for box without using images.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2010/02/09/to-add-a-shadow-to-a-box-using-css-3-using-the-box-shadow-property/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>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>

