<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>7t7en scraps</title>
	<atom:link href="http://77scraps.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://77scraps.wordpress.com</link>
	<description>My Scrapbook 4 Interactive Stuffs</description>
	<lastBuildDate>Sat, 02 Aug 2008 15:27:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='77scraps.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>7t7en scraps</title>
		<link>http://77scraps.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://77scraps.wordpress.com/osd.xml" title="7t7en scraps" />
	<atom:link rel='hub' href='http://77scraps.wordpress.com/?pushpress=hub'/>
		<item>
		<title>IE6 min-width and max-width</title>
		<link>http://77scraps.wordpress.com/2008/08/02/ie6-min-width-and-max-width-hack/</link>
		<comments>http://77scraps.wordpress.com/2008/08/02/ie6-min-width-and-max-width-hack/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 15:21:03 +0000</pubDate>
		<dc:creator>77scraps</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://77scraps.wordpress.com/?p=105</guid>
		<description><![CDATA[IE6 doesn&#8217;t understand few important CSS properties:   min-width, max-width Here is a workaround to achieve this using CSS Expressions*. #wrapper {    width: expression(       (document.documentElement.clientWidth &#62; 962)? &#8220;960px&#8221; :          (document.documentElement.clientWidth &#60; 762)? &#8220;760px&#8221; :             &#8220;auto&#8221;); } Only max-width can be applied as given below: width:expression(document.body.clientWidth &#62; 800? &#8220;800px&#8221;: &#8220;auto&#8221; ); Note: This won&#8217;t work for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=105&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>IE6 doesn&#8217;t understand few important CSS properties:  </p>
<p><strong>min-width, max-width</strong></p>
<p>Here is a workaround to achieve this using CSS Expressions<span style="color:#800000;">*</span>.</p>
<p>#wrapper {<br />
   width: expression(<br />
      (document.documentElement.clientWidth &gt; 962)? &#8220;960px&#8221; :<br />
         (document.documentElement.clientWidth &lt; 762)? &#8220;760px&#8221; :<br />
            &#8220;auto&#8221;);<br />
}</p>
<p>Only max-width can be applied as given below:</p>
<p>width:expression(document.body.clientWidth &gt; 800? &#8220;800px&#8221;: &#8220;auto&#8221; );</p>
<p><span style="color:#ff0000;">Note: This won&#8217;t work for &lt;body&gt; tag</span><span style="color:#ff0000;">, IE alone recognizes the CSS expressions. Other browsers will ignore this line of code. </span></p>
<p><span style="color:#800000;">*: <strong>CSS expressions</strong> were introduced in Internet Explorer 5.0 and it allows you to to assign a JavaScript <strong>expression</strong> to a <strong>CSS</strong> property.</span></p>
<p><span style="color:#000000;">For more details:</span></p>
<p><a href="http://www.svendtofte.com/code/max_width_in_ie/">http://www.svendtofte.com/code/max_width_in_ie/</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/77scraps.wordpress.com/105/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/77scraps.wordpress.com/105/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/77scraps.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/77scraps.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/77scraps.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/77scraps.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/77scraps.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/77scraps.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/77scraps.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/77scraps.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/77scraps.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/77scraps.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/77scraps.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/77scraps.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/77scraps.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/77scraps.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=105&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://77scraps.wordpress.com/2008/08/02/ie6-min-width-and-max-width-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9769c60bf8ca5cb65598ad35d2db412d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">77scraps</media:title>
		</media:content>
	</item>
		<item>
		<title>5 steps: CSS code readability</title>
		<link>http://77scraps.wordpress.com/2008/07/27/5-steps-css-code-readability/</link>
		<comments>http://77scraps.wordpress.com/2008/07/27/5-steps-css-code-readability/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 08:54:04 +0000</pubDate>
		<dc:creator>77scraps</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://77scraps.wordpress.com/?p=97</guid>
		<description><![CDATA[1. Divide and conquer your code : use master stylesheet /*- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - [Master [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=97&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>1. Divide and conquer your code : use master stylesheet</strong></p>
<p style="padding-left:30px;">/*- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; -</p>
<p style="padding-left:30px;">[Master Stylesheet]</p>
<p style="padding-left:30px;">Project: Smashing Magazine</p>
<p style="padding-left:30px;">Version: 1.1</p>
<p style="padding-left:30px;">Last change: 05/02/08 [fixed Float bug, vf]</p>
<p style="padding-left:30px;">Assigned to: Vitaly Friedman (vf), Sven Lennartz (sl)</p>
<p style="padding-left:30px;">Primary use: Magazine</p>
<p style="padding-left:30px;">- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - */</p>
<p style="padding-left:30px;">@import &#8220;reset.css&#8221;;</p>
<p style="padding-left:30px;">@import &#8220;layout.css&#8221;;</p>
<p style="padding-left:30px;">@import &#8220;colors.css&#8221;;</p>
<p style="padding-left:30px;">@import &#8220;typography.css&#8221;;</p>
<p style="padding-left:30px;">@import &#8220;flash.css&#8221;;</p>
<p style="padding-left:30px;">/* @import &#8220;debugging.css&#8221;; */</p>
<p><strong>2. Define a table of contents</strong></p>
<p style="padding-left:30px;">/*- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; -</p>
<p style="padding-left:30px;"> [Table of contents]</p>
<p style="padding-left:30px;">1. Body</p>
<p style="padding-left:30px;">2. Header / #header</p>
<p style="padding-left:60px;">2.1. Navigation / #navbar</p>
<p style="padding-left:30px;">3. Content / #content</p>
<p style="padding-left:60px;">3.1. Left column / #leftcolumn</p>
<p style="padding-left:60px;">3.2. Right column / #rightcolumn</p>
<p style="padding-left:60px;">3.3. Sidebar / #sidebar</p>
<p style="padding-left:90px;">3.3.1. RSS / #rss</p>
<p style="padding-left:90px;">3.3.2. Search / #search</p>
<p style="padding-left:90px;">3.3.3. Boxes / .box</p>
<p style="padding-left:90px;">3.3.4. Sideblog / #sideblog</p>
<p style="padding-left:90px;">3.3.5. Advertisements / .ads</p>
<p style="padding-left:30px;">4. Footer / #footer</p>
<p style="padding-left:30px;">- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; */</p>
<p><strong>3. Define your colors and typography</strong></p>
<p style="padding-left:30px;">/*- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; -</p>
<p style="padding-left:30px;"># [Color codes]</p>
<p style="padding-left:30px;"># Dark grey (text): #333333</p>
<p style="padding-left:30px;"># Dark Blue (headings, links) #000066</p>
<p style="padding-left:30px;"># Mid Blue (header) #333399</p>
<p style="padding-left:30px;"># Light blue (top navigation) #CCCCFF</p>
<p style="padding-left:30px;"># Mid grey: #666666</p>
<p style="padding-left:30px;">- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; */</p>
<p style="padding-left:30px;">OR</p>
<p style="padding-left:30px;">/*- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; -</p>
<p style="padding-left:30px;">[Color codes]</p>
<p style="padding-left:30px;">Background: #ffffff (white)</p>
<p style="padding-left:30px;">Content: #1e1e1e (light black)</p>
<p style="padding-left:30px;">Header h1: #9caa3b (green)</p>
<p style="padding-left:30px;">Header h2: #ee4117 (red)</p>
<p style="padding-left:30px;">Footer: #b5cede (dark black)</p>
<p style="padding-left:30px;">a (standard): #0040b6 (dark blue)</p>
<p style="padding-left:30px;">a (visited): #5999de (light blue)</p>
<p style="padding-left:30px;">a (active): #cc0000 (pink)</p>
<p style="padding-left:30px;">- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - */</p>
<p style="padding-left:30px;"><span style="text-decoration:underline;">TYPOGRAPHY</span></p>
<p style="padding-left:30px;">/*- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; -</p>
<p style="padding-left:30px;">[Typography]</p>
<p style="padding-left:30px;">Body copy: 1.2em/1.6em Verdana, Helvetica, Arial, Geneva, sans-serif;</p>
<p style="padding-left:30px;">Headers: 2.7em/1.3em Helvetica, Arial, &#8220;Lucida Sans Unicode&#8221;, Verdana, sans-serif;</p>
<p style="padding-left:30px;">Input, textarea: 1.1em Helvetica, Verdana, Geneva, Arial, sans-serif;</p>
<p style="padding-left:30px;">Sidebar heading: 1.5em Helvetica, Trebuchet MS, Arial, sans-serif;</p>
<p style="padding-left:30px;"><span style="text-decoration:underline;"><span style="color:#800000;">Notes</span></span>: decreasing heading by 0.4em with every subsequent heading level</p>
<p style="padding-left:30px;">- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - */</p>
<p><strong>4. Order CSS properties: alphabetically</strong></p>
<p style="padding-left:30px;">body {<br />
background: #fdfdfd;<br />
color: #333;<br />
font-size: 1em;<br />
line-height: 1.4;<br />
margin: 0;<br />
padding: 0;<br />
}</p>
<p><strong>5. Indentation and comments</strong></p>
<p style="padding-left:30px;">#sidebar ul li a {<br />
     display: block;<br />
     background-color: #ccc;<br />
          border-bottom: 1px solid #999; /* @new */<br />
     margin: 3px 0 3px 0;<br />
          padding: 3px; /* @new */<br />
}</p>
<p style="padding-left:30px;"> </p>
<p>Courtesy: Smashing Magazine</p>
<p>For the full article (refer):</p>
<p><a href="http://www.smashingmagazine.com/2008/05/02/improving-code-readability-with-css-styleguides/">http://www.smashingmagazine.com/2008/05/02/improving-code-readability-with-css-styleguides/</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/77scraps.wordpress.com/97/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/77scraps.wordpress.com/97/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/77scraps.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/77scraps.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/77scraps.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/77scraps.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/77scraps.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/77scraps.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/77scraps.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/77scraps.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/77scraps.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/77scraps.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/77scraps.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/77scraps.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/77scraps.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/77scraps.wordpress.com/97/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=97&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://77scraps.wordpress.com/2008/07/27/5-steps-css-code-readability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9769c60bf8ca5cb65598ad35d2db412d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">77scraps</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS Shorthands</title>
		<link>http://77scraps.wordpress.com/2008/07/25/css-shorthands/</link>
		<comments>http://77scraps.wordpress.com/2008/07/25/css-shorthands/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 20:28:15 +0000</pubDate>
		<dc:creator>77scraps</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://77scraps.wordpress.com/?p=52</guid>
		<description><![CDATA[Colors One great shortcut that many don&#8217;t know about is that when a colour consists of three pairs of hexadecimal digits, you can omit one digit from each pair: #000000 becomes #000. #336699 becomes #369. Box dimensions The properties that affect box dimensions share the same syntax: the shorthand property followed by one to four [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=52&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration:underline;">Colors</span></strong></p>
<p>One great shortcut that many don&#8217;t know about is that when a colour consists of three pairs of hexadecimal digits, you can omit one digit from each pair:</p>
<p><strong>#000000</strong><strong> becomes </strong><strong>#000.</strong><strong> </strong></p>
<p><strong>#336699</strong><strong> becomes </strong><strong>#369</strong><strong>.</strong></p>
<p><strong><span style="text-decoration:underline;">Box dimensions</span></strong></p>
<p>The properties that affect box dimensions share the same syntax: the shorthand property followed by one to four space separated values:</p>
<ul>
<li>property:value1;</li>
<li>property:value1 value2;</li>
<li>property:value1 value2 value3;</li>
<li>property:value1 value2 value3 value4;</li>
</ul>
<p>Which sides of the box the values affect depends on how many values you specify. Here&#8217;s how it works:</p>
<ul>
<li>One value: all sides</li>
<li>Two values: top and bottom, right and left</li>
<li>Three values: top, right and left, bottom</li>
<li>Four values: top, right, bottom, left</li>
</ul>
<p>&#171;: Thinking of the face of a clock is an easy way of remembering which side each value affects. Start at 12 o&#8217;clock (top), then 3 (right), 6 (bottom), and 9 (left). You can also think of the <strong>TRouBLe</strong> you&#8217;ll be in if you don&#8217;t remember the correct order</p>
<p><strong><span style="text-decoration:underline;">Margin and padding</span></strong> </p>
<ul>
<li>1. margin-top:1em;</li>
<li>2. margin-right:0;</li>
<li>3. margin-bottom:2em;</li>
<li>4. margin-left:0.5em;</li>
</ul>
<ul>
<li>margin:1em 0 2em 0.5em; /* top &#8212; right &#8212; bottom &#8212; left */</li>
<li>padding:1em 0 2em 0.5em;</li>
</ul>
<p><strong><span style="text-decoration:underline;">Borders</span></strong></p>
<p>There are four shorthands available:</p>
<p>border</p>
<p>border-width  ]</p>
<p>border-style   ]    all the three in TRouBLe order.</p>
<p>border-color  ]</p>
<ul>
<li>border: width style color;/* [border:1px solid #000;] itneed not be in the same order, however use this order (W3C)as some older browsers of SAFARImay not recognize*/</li>
</ul>
<ul>
<li>border-width: 1px 2px 3px 4px;</li>
</ul>
<ul>
<li>border-style: solid dotted dashed double;</li>
</ul>
<ul>
<li>border-color: #000 #fff #ccc #222;</li>
</ul>
<p><strong><span style="text-decoration:underline;">Backgrounds</span></strong></p>
<p>Instead of using background-color, background-image, background-repeat, background-attachment, and background-position to specify an element&#8217;s background, you can use just background:</p>
<p>background:color image repeat attachment position; /* it need not be in the same order, however use this order (W3C) as some older browsers of SAFARI may not recognize */<br />
background:#f00 url(background.gif) no-repeat fixed 0 0;</p>
<p>&#171;:Remember that when you give two values for position, they have to appear together. When using length or percentage values, put the horizontal value first.</p>
<p><strong><span style="text-decoration:underline;">Fonts</span></strong><br />
font-style:italic;<br />
font-variant:small-caps;<br />
font-weight:bold;<br />
font-size:1em;<br />
line-height:140%;<br />
font-family:&#8221;Lucida Grande&#8221;,sans-serif;</p>
<p>font: font-style font-variant font-weight font-size line-height font-family;/* it need not be in the same order, however use this order (W3C) as some browsers may not recognize */<br />
font:italic small-caps bold 1em/140% &#8220;Lucida Grande&#8221;,sans-serif;</p>
<p>&#171;: When using the font shorthand you can omit any values except font-size and font-family &#8211; you always need to give values for those, and in that order.</p>
<p><strong><span style="text-decoration:underline;">Lists</span></strong></p>
<p>list-style-type:square;<br />
list-style-position:inside;<br />
list-style-image:url(image.gif);</p>
<p>list-style:square inside url(image.gif);</p>
<p><strong><span style="text-decoration:underline;">Outlines</span></strong><br />
The outline property is very rarely used, mainly because of its current poor browser support &#8211; as far as I know only Safari, OmniWeb and Opera currently support it. Anyway, using the individual properties you can define an outline like this:</p>
<p>outline-color:#f00;<br />
outline-style:solid;<br />
outline-width:2px;</p>
<p>outline:#f00 solid 2px;</p>
<p>&#171;: Outlines have some interesting characteristics that make them useful: unlike borders, they do not take up any space and are always drawn on top of a box. This means that hiding or showing outlines doesn&#8217;t cause reflow, and they don&#8217;t influence the position or size of the element they are applied to or that of any other boxes. Outlines may also be non-rectangular.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/77scraps.wordpress.com/52/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/77scraps.wordpress.com/52/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/77scraps.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/77scraps.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/77scraps.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/77scraps.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/77scraps.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/77scraps.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/77scraps.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/77scraps.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/77scraps.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/77scraps.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/77scraps.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/77scraps.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/77scraps.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/77scraps.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=52&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://77scraps.wordpress.com/2008/07/25/css-shorthands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9769c60bf8ca5cb65598ad35d2db412d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">77scraps</media:title>
		</media:content>
	</item>
		<item>
		<title>Attribute Selector Patterns</title>
		<link>http://77scraps.wordpress.com/2008/07/25/attribute-selector-patterns/</link>
		<comments>http://77scraps.wordpress.com/2008/07/25/attribute-selector-patterns/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 20:17:38 +0000</pubDate>
		<dc:creator>77scraps</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://77scraps.wordpress.com/?p=46</guid>
		<description><![CDATA[&#60;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01//EN&#8221; &#8220;http://www.w3.org/TR/html4/strict.dtd&#8221;&#62; &#60;html&#62; &#60;head&#62; &#60;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=iso-8859-1&#8243; /&#62; &#60;title&#62;Untitled Document&#60;/title&#62; &#60;!&#8211; Attribute Selector Patterns E[attr] Attribute selector, matches any element E that has attribute attr, regardless of its value. E[attr="value"] Attribute selector, matches any element E that has attribute attr set to the specified value. E[attr~="value"] Attribute selector, some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=46&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&lt;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01//EN&#8221; &#8220;http://www.w3.org/TR/html4/strict.dtd&#8221;&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=iso-8859-1&#8243; /&gt;<br />
&lt;title&gt;Untitled Document&lt;/title&gt;</p>
<p>&lt;!&#8211;<br />
Attribute Selector Patterns<br />
<strong>E[attr]</strong> Attribute selector, matches any element E that has attribute attr, regardless of its value.</p>
<p><strong>E[attr="value"]</strong> Attribute selector, matches any element E that has attribute attr set to the specified value.</p>
<p><strong>E[attr~="value"]</strong> Attribute selector, some element attributes may have multiple values, separated by spaces. This pattern matches any element with attribute attr containing the specified value in its list.</p>
<p><strong>E.value</strong> Class selector, for HTML pages only. Matches any element that has the specified value in its CLASS attribute. Equivalent to E[class~="value"].</p>
<p><strong>E#value</strong> ID selector, matches the element with the given ID. For HTML this is equivalent to E[id="value"].</p>
<p>&#8211;&gt;</p>
<p>&lt;style&gt;</p>
<p>p[onclick]{<br />
color:#FF0000;<br />
}</p>
<p>p[disabled]{<br />
font-size:20px;<br />
}</p>
<p>p[align="right"]<br />
{<br />
font-family:comic sans ms;<br />
}</p>
<p>p[class~="zzz"]<br />
{<br />
background-color:#aaa;<br />
}</p>
<p>&lt;/style&gt;</p>
<p>&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;p disabled=&#8221;true&#8221; align=&#8221;center&#8221; class=&#8221;zzz www ddd&#8221;&gt;Heloo World&lt;/p&gt;<br />
&lt;p style=&#8221;font-family:arial;font-size:12px;&#8221; class=&#8221;lll ppp mmm&#8221;&gt;2012&lt;/p&gt;<br />
&lt;p onclick=&#8221;" align=&#8221;right&#8221; class=&#8221;abc xyz zzz&#8221;&gt;2010&lt;/p&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>Courtesy: <a href="http://www.brainjar.com">http://www.brainjar.com</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/77scraps.wordpress.com/46/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/77scraps.wordpress.com/46/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/77scraps.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/77scraps.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/77scraps.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/77scraps.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/77scraps.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/77scraps.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/77scraps.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/77scraps.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/77scraps.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/77scraps.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/77scraps.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/77scraps.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/77scraps.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/77scraps.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=46&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://77scraps.wordpress.com/2008/07/25/attribute-selector-patterns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9769c60bf8ca5cb65598ad35d2db412d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">77scraps</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS points to remember&#8230;</title>
		<link>http://77scraps.wordpress.com/2008/07/25/css-points-to-remember/</link>
		<comments>http://77scraps.wordpress.com/2008/07/25/css-points-to-remember/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 19:47:36 +0000</pubDate>
		<dc:creator>77scraps</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://77scraps.wordpress.com/?p=30</guid>
		<description><![CDATA[Margins can even have negative values, but you can&#8217;t use negative values for padding. Inherit: The keyword &#8220;inherit&#8221; can be used on every CSS property. Setting a CSS property to &#8220;inherit&#8221; causes its value to be taken from the element&#8217;s parent (&#8220;inherit&#8221; is not supported by Internet Explorer). Specify a unit unless the value is 0   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=30&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li>
<div id="16">Margins can even have negative values, but you can&#8217;t use <span style="color:#800000;">negative </span>values for <span style="color:#800000;">padding.</span></div>
</li>
<li>
<div id="21"><em>Inherit:</em> The keyword &#8220;inherit&#8221; can be used on every CSS property. Setting a CSS property to &#8220;inherit&#8221; causes its value to be taken from the element&#8217;s parent (&#8220;inherit&#8221; is not supported by Internet Explorer).</div>
</li>
<li>Specify a unit unless the value is 0  
<ul>
<li>
<div>Not specifying a unit for length values is a very common mistake among <abbr>CSS</abbr> beginners.</div>
<ul>
<li>
<div id="bsya18"> In <abbr title="HyperText Markup Language">HTML</abbr> you can get away with that, but in <abbr>CSS</abbr> all length values <a id="bsya23" href="http://www.w3.org/TR/CSS21/syndata.html#length-units"><span style="color:#800000;">must have a unit</span></a><span style="color:#666666;"><span style="color:#800000;">.</span> </span>There are two exceptions:<span style="color:#666666;"> <span style="color:#800000;"><span style="text-decoration:underline;">line-height</span> </span></span><span style="color:#666666;"><span style="color:#800000;">and 0 (zero)</span> </span>values.</div>
</li>
<li>
<div id="bsya33">example 1: line-height:12;</div>
</li>
<li>
<div id="bsya36">example 2: margin:12px 0 11px 0;</div>
</li>
</ul>
</li>
<li>
<div id="bsya39">The value must be immediately followed by the unit –<span style="color:#666666;"> <span style="color:#800000;"><span style="text-decoration:underline;">do not insert a space</span> </span></span>between them.</div>
</li>
</ul>
</li>
<li>
<div>Remember case sensitivity</div>
<ul>
<li>
<div id="bsya50">When CSS is used with XHTML, element names in selectors are case sensitive. Always <span style="color:#800000;"><span style="text-decoration:underline;">use lowercase</span> </span>for element names in CSS selectors.</div>
</li>
</ul>
</li>
<li>Web safe colours
<ul>
<li>Specify web safe colours by using only digits that are <span style="color:#800000;">multiples of 3 for the red, green, and blue values: 0, 3, 6, 9, C, and F</span>. #99c is a web safe colour, #98c is not</li>
</ul>
</li>
<li>Eliminate element types for class and id selectors
<ul>
<li>
<p dir="ltr">When writing selectors that target an element with a certain class or id value, you can omit the element type before the . (class selector) or # (id selector).</p>
<p style="margin-right:0;" dir="ltr">So, instead of writing</p>
<p style="margin-right:0;" dir="ltr">div#content { /* declarations */ }<br />
fieldset.details { /* declarations */ }</p>
<p style="margin-right:0;" dir="ltr">you can write</p>
<p style="margin-right:0;" dir="ltr">#content { /* declarations */ }<br />
.details { /* declarations */ }</p>
<p style="margin-right:0;" dir="ltr">and save a few bytes for each selector.</p>
<p style="margin-right:0;" dir="ltr">This is especially useful for id selectors since they must be unique in a document, which reduces the risk of rules conflicting with each other. class names on the other hand can be used any number of times in a document, and different element types can be assigned the same class name (or names).</p>
</li>
<li>
<p style="margin-right:0;" dir="ltr">If you write one rule with and one rule without the element type in the selector, the rule that uses the element type will have higher specificity.</p>
</li>
</ul>
</li>
<li>
<p style="margin-right:0;" dir="ltr">Don’t redeclare inherited values</p>
<ul>
<li>
<div id="bsya145">The values of many properties are inherited by any descendants of the element that you specify the property for.</div>
</li>
</ul>
</li>
</ul>
<p style="padding-left:90px;"> body { font-weight:normal; }</p>
<p style="padding-left:90px;"> Be aware that some properties may be overridden by browser specific user agent style sheets, i.e. the browser’s defaults. That’s why you can’t make all headings non bold with the above rule:</p>
<ul>
<li>
<div>Specify link styles in the right order</div>
<ul>
<li>
<div>:link :visited :hover :active.</div>
</li>
</ul>
</li>
<li>
<div>How big is that box?</div>
<ul>
<li>
<div>When something goes wrong, start by validating your CSS. Anybody can make a typo.</div>
</li>
<li>
<div>If there are no errors in the CSS you need to start analysing what’s going on. I like <span style="color:#800000;"><span style="text-decoration:underline;">applying background colours to the elements</span> </span>I’m having trouble with to clearly see the space they occupy. Some people suggest using borders, which is fine in many cases. The problem with that approach is that borders will increase an element’s dimensions, and top and bottom borders will prevent vertical margins from collapsing. Background colours are generally safer.</div>
</li>
</ul>
</li>
<li>
<div>Faster loading of large TABLES?</div>
<ul>
<li>
<div>
<p>The CSS table-layout property allows you to fix the table layout so that the table renders much faster.</p>
<p><span style="font-family:Courier New;">table { table-layout:fixed }</span><br />
&lt;table style=&#8221;<strong>table-layout:fixed</strong>;width:600px;&#8221;&gt;</p>
<p>Without the table-layout property, on large tables, users won&#8217;t see any part of the table until the browser has rendered the whole table. This can give the impression that your page loads very slowly. On the other hand, if you use the table-layout property, users will see the top of the table while the browser loads and renders rest of the table. This gives the impression that the page loads a lot quicker.</p></div>
</li>
</ul>
</li>
</ul>
<p style="padding-left:30px;"> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/77scraps.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/77scraps.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/77scraps.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/77scraps.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/77scraps.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/77scraps.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/77scraps.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/77scraps.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/77scraps.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/77scraps.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/77scraps.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/77scraps.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/77scraps.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/77scraps.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/77scraps.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/77scraps.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=30&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://77scraps.wordpress.com/2008/07/25/css-points-to-remember/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9769c60bf8ca5cb65598ad35d2db412d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">77scraps</media:title>
		</media:content>
	</item>
		<item>
		<title>Box Types &#8211; block n inline</title>
		<link>http://77scraps.wordpress.com/2008/07/25/box-types-block-n-inline/</link>
		<comments>http://77scraps.wordpress.com/2008/07/25/box-types-block-n-inline/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 19:41:27 +0000</pubDate>
		<dc:creator>77scraps</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://77scraps.wordpress.com/?p=25</guid>
		<description><![CDATA[There are two basic types of boxes, block and inline. Block boxes are generated by elements such as P, DIV or TABLE. Inline boxes are generated by tags such as B, I or SPAN and actual content like text and images. Setting a value of block on an inline element, for example, will cause it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=25&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are two basic types of boxes, <em>block</em> and <em>inline.</em></p>
<p>Block boxes are generated by elements such as P, DIV or TABLE.</p>
<p>Inline boxes are generated by tags such as B, I or SPAN and actual content like text and images.</p>
<div id="foek" style="text-align:left;padding:1em 0;"><a href="http://77scraps.files.wordpress.com/2008/07/ddqrqdv5_10hjx327d53.gif"><img class="size-medium wp-image-80" style="border:0;" src="http://77scraps.files.wordpress.com/2008/07/ddqrqdv5_10hjx327d53.gif?w=495&#038;h=74" alt="" width="495" height="74" /></a></div>
<p>Setting a value of <em>block</em> on an inline element, for example, will cause it to be treated as a block element.</p>
<p>There are other types of boxes which apply to special elements like lists and tables. However, these are ultimately treated as block or inline boxes for positioning purposes.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/77scraps.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/77scraps.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/77scraps.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/77scraps.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/77scraps.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/77scraps.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/77scraps.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/77scraps.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/77scraps.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/77scraps.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/77scraps.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/77scraps.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/77scraps.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/77scraps.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/77scraps.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/77scraps.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=25&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://77scraps.wordpress.com/2008/07/25/box-types-block-n-inline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9769c60bf8ca5cb65598ad35d2db412d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">77scraps</media:title>
		</media:content>

		<media:content url="http://77scraps.files.wordpress.com/2008/07/ddqrqdv5_10hjx327d53.gif?w=300" medium="image" />
	</item>
		<item>
		<title>CSS Reset by Eric Meyer</title>
		<link>http://77scraps.wordpress.com/2008/07/25/css-reset-for-browsers-by-eric-meyer/</link>
		<comments>http://77scraps.wordpress.com/2008/07/25/css-reset-for-browsers-by-eric-meyer/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 19:36:33 +0000</pubDate>
		<dc:creator>77scraps</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://77scraps.wordpress.com/?p=22</guid>
		<description><![CDATA[/* Don&#8217;t forget to set a foreground and background color on the &#8216;html&#8217; or &#8216;body&#8217; element! */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=22&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#333333;"><strong>/* Don&#8217;t forget to set a foreground and background color on the &#8216;html&#8217; or &#8216;body&#8217; element! */</strong></span></p>
<p>html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {<br />
 margin: 0;<br />
 padding: 0;<br />
 border: 0;<br />
 font-weight: inherit;<br />
 font-style: inherit;<br />
 font-size: 100%;<br />
 line-height: 1;<br />
 font-family: inherit;<br />
 text-align: left;<br />
 vertical-align: baseline;<br />
}</p>
<p>a img, :link img, :visited img {<br />
 border: 0;<br />
}</p>
<p>table {<br />
 border-collapse: collapse;<br />
 border-spacing: 0;<br />
}</p>
<p>ol, ul {<br />
 list-style: none;<br />
}</p>
<p>q:before, q:after,<br />
blockquote:before, blockquote:after {<br />
 content: &#8220;&#8221;;<br />
}</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/77scraps.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/77scraps.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/77scraps.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/77scraps.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/77scraps.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/77scraps.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/77scraps.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/77scraps.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/77scraps.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/77scraps.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/77scraps.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/77scraps.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/77scraps.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/77scraps.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/77scraps.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/77scraps.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=22&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://77scraps.wordpress.com/2008/07/25/css-reset-for-browsers-by-eric-meyer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9769c60bf8ca5cb65598ad35d2db412d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">77scraps</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS Reset by Kyle</title>
		<link>http://77scraps.wordpress.com/2008/07/24/master-stylesheet-by-kyle/</link>
		<comments>http://77scraps.wordpress.com/2008/07/24/master-stylesheet-by-kyle/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 19:40:46 +0000</pubDate>
		<dc:creator>77scraps</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://77scraps.wordpress.com/?p=15</guid>
		<description><![CDATA[/***** Global Settings *****/   html, body { border:0; margin:0; padding:0; }   body { font:100%/1.25 Arial, Helvetica, sans-serif; }   /***** Headings *****/   h1, h2, h3, h4, h5, h6 { margin:0; padding:0; font-weight:normal; }   h1 { padding:30px 0 25px 0; letter-spacing:-1px; font-size:2em; }   h2 { padding:20px 0; letter-spacing:-1px; font-size:1.5em; }   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=15&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>/***** Global Settings *****/<br />
 <br />
html, body {<br />
border:0;<br />
margin:0;<br />
padding:0;<br />
}<br />
 <br />
body {<br />
font:100%/1.25 Arial, Helvetica, sans-serif;<br />
}<br />
 <br />
/***** Headings *****/<br />
 <br />
h1, h2, h3, h4, h5, h6 {<br />
margin:0;<br />
padding:0;<br />
font-weight:normal;<br />
}<br />
 <br />
h1 {<br />
padding:30px 0 25px 0;<br />
letter-spacing:-1px;<br />
font-size:2em;<br />
}<br />
 <br />
h2 {<br />
padding:20px 0;<br />
letter-spacing:-1px;<br />
font-size:1.5em;<br />
}<br />
 <br />
h3 {<br />
font-size:1em;<br />
font-weight:bold;<br />
}<br />
 <br />
/***** Common Formatting *****/<br />
p, ul, ol {<br />
margin:0;<br />
padding:0 0 1.25em 0;<br />
}<br />
 <br />
ul, ol {<br />
padding:0 0 1.25em 2.5em;<br />
}<br />
 <br />
blockquote {<br />
margin:1.25em;<br />
padding:1.25em 1.25em 0 1.25em;<br />
}<br />
 <br />
small {<br />
font-size:0.85em;<br />
}<br />
 <br />
img {<br />
border:0;<br />
}<br />
 <br />
sup {<br />
position:relative;<br />
bottom:0.3em;<br />
vertical-align:baseline;<br />
}<br />
 <br />
sub {<br />
position:relative;<br />
bottom:-0.2em;<br />
vertical-align:baseline;<br />
}<br />
 <br />
acronym, abbr {<br />
cursor:help;<br />
letter-spacing:1px;<br />
border-bottom:1px dashed;<br />
}<br />
 <br />
/***** Links *****/<br />
 <br />
a, a:link, a:visited, a:hover {<br />
text-decoration:underline;<br />
}<br />
 <br />
/***** Forms *****/<br />
 <br />
form {<br />
margin:0;<br />
padding:0;<br />
display:inline;<br />
}<br />
 <br />
input, select, textarea {<br />
font:1em Arial, Helvetica, sans-serif;<br />
}<br />
 <br />
textarea {<br />
width:100%;<br />
line-height:1.25;<br />
}<br />
 <br />
label {<br />
cursor:pointer;<br />
}<br />
 <br />
/***** Tables *****/<br />
 <br />
table {<br />
border:0;<br />
margin:0 0 1.25em 0;<br />
padding:0;<br />
}<br />
 <br />
table tr td {<br />
padding:2px;<br />
}<br />
 <br />
/***** Wrapper *****/<br />
 <br />
#wrap {<br />
width:960px;<br />
margin:0 auto;<br />
}<br />
 <br />
/***** Global Classes *****/<br />
 <br />
.clear         { clear:both; }<br />
.float-left    { float:left; }<br />
.float-right   { float:right; }<br />
.text-left     { text-align:left; }<br />
.text-right    { text-align:right; }<br />
.text-center   { text-align:center; }<br />
.text-justify  { text-align:justify; }<br />
.bold          { font-weight:bold; }<br />
.italic        { font-style:italic; }<br />
.underline     { border-bottom:1px solid; }<br />
.highlight     { background:#ffc; }<br />
.wrap          { width:960px;margin:0 auto; }<br />
.img-left      { float:left;margin:4px 10px 4px 0; }<br />
.img-right     { float:right;margin:4px 0 4px 10px; }<br />
.nopadding     { padding:0; }<br />
.noindent      { margin-left:0;padding-left:0; }<br />
.nobullet      { list-style:none;list-style-image:none; }</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/77scraps.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/77scraps.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/77scraps.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/77scraps.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/77scraps.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/77scraps.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/77scraps.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/77scraps.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/77scraps.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/77scraps.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/77scraps.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/77scraps.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/77scraps.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/77scraps.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/77scraps.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/77scraps.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=15&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://77scraps.wordpress.com/2008/07/24/master-stylesheet-by-kyle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9769c60bf8ca5cb65598ad35d2db412d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">77scraps</media:title>
		</media:content>
	</item>
		<item>
		<title>Resetting FONT size for all browsers</title>
		<link>http://77scraps.wordpress.com/2008/07/23/hello-world/</link>
		<comments>http://77scraps.wordpress.com/2008/07/23/hello-world/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 17:29:15 +0000</pubDate>
		<dc:creator>77scraps</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[EM calculations Sizing text is always an important part of making a usable design. I start all my CSS files with the following rules: html { font-size:100.01%; } body { font-size:1em; } The explanation for this comes from “CSS: Getting Into Good Coding Habits:” This odd 100.01% value for the font size compensates for several [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=1&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration:underline;"><strong>EM calculations</strong> </span></p>
<p>Sizing text is always an important part of making a usable design.<br />
I start all my CSS files with the following rules:</p>
<p>html { font-size:100.01%; }<br />
body { font-size:1em; }</p>
<p>The explanation for this comes from “CSS: Getting Into Good Coding Habits:”</p>
<p>This odd 100.01% value for the font size compensates for several browser bugs. First, setting a default body font size in percent (instead of em) eliminates an IE/Win problem with growing or shrinking fonts out of proportion if they are later set in ems in other elements. Additionally, some versions of Opera will draw a default font-size of 100% too small compared to other browsers. Safari, on the other hand, has a problem with a font-size of 101%. The current “best” suggestion is to use the 100.01% value for this property.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/77scraps.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/77scraps.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/77scraps.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/77scraps.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/77scraps.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/77scraps.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/77scraps.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/77scraps.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/77scraps.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/77scraps.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/77scraps.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/77scraps.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/77scraps.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/77scraps.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/77scraps.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/77scraps.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=77scraps.wordpress.com&amp;blog=4306117&amp;post=1&amp;subd=77scraps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://77scraps.wordpress.com/2008/07/23/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9769c60bf8ca5cb65598ad35d2db412d?s=96&#38;d=identicon" medium="image">
			<media:title type="html">77scraps</media:title>
		</media:content>
	</item>
	</channel>
</rss>
