<?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>Web Development Blog &#187; CSS</title>
	<atom:link href="http://www.scriptiny.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptiny.com</link>
	<description>This web development blog features fresh articles on JavaScript, AJAX, CSS, XHTML, PHP, Photoshop and more.</description>
	<lastBuildDate>Thu, 08 Dec 2011 02:29:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>CSS Shorthand Cheat Sheet</title>
		<link>http://www.scriptiny.com/2008/04/css-shorthand-cheat-sheet/</link>
		<comments>http://www.scriptiny.com/2008/04/css-shorthand-cheat-sheet/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 16:22:22 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[cascading style sheet]]></category>
		<category><![CDATA[shorthand]]></category>

		<guid isPermaLink="false">http://www.scriptiny.com/?p=16</guid>
		<description><![CDATA[Download this CSS cheat sheet for easy reference to CSS shorthand properties.]]></description>
			<content:encoded><![CDATA[<p>Based on the feedback from my <a href="http://www.scriptiny.com/2008/04/effective-css-shorthand/">article last Friday</a> I thought it would be useful to create a CSS cheat-sheet. For those of you that are not familiar with shorthand you can print this out and keep it handy. Try and use these principles whenever you code and before too long shorthand will become second nature.</p>
<p><strong><a href='http://forum.leigeber.com/index.php?app=downloads&#038;showfile=9'>Click here</a></strong> to download.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptiny.com/2008/04/css-shorthand-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>87</slash:comments>
		</item>
		<item>
		<title>Lightweight JavaScript Accordion with CSS</title>
		<link>http://www.scriptiny.com/2008/04/lightweight-javascript-and-css-accordion/</link>
		<comments>http://www.scriptiny.com/2008/04/lightweight-javascript-and-css-accordion/#comments</comments>
		<pubDate>Sat, 19 Apr 2008 02:44:25 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[accordion]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[slider]]></category>

		<guid isPermaLink="false">http://www.scriptiny.com/?p=13</guid>
		<description><![CDATA[This simple JavaScript accordion is only 1.65 kilobytes when packed. If you have a small project that could use a JavaScript accordion and don’t want to include an entire JavaScript framework to do the job then give this script a try.]]></description>
			<content:encoded><![CDATA[<p><strong>The updated accordion script is <a href="http://www.scriptiny.com/2009/03/accordion/">available here</a>.</strong></p>
<p>This JavaScript accordion is only 1.5kb. If you have a small project that could use an accordion and don&#8217;t want to include an entire JavaScript framework to do the job then give this script a try.</p>
<p>You will need to call the following function in your body onload where the first parameter is the div id of the accordion parent and the second tells the script which section to expand onload.</p>
<pre class="brush: jscript; title: ; notranslate">slider.init('slider',1)</pre>
<p>This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">creative commons license</a>. Community support is <a href="http://www.scriptiny.com/qa/">available here</a>. Paid support is also available, <a href="http://www.scriptiny.com/contact/">contact me</a> for details.</p>
<p><strong><a href="http://www.scriptiny.com/wp-content/uploads/2008/04/javascript_slider.zip">Click here</a> to download the source code.</strong></p>
<p><strong>Updated 5/27/2008</strong> &#8211; Slightly minified the code cutting off 1kb and added the script into a global namespace.<br />
<strong>Updated 6/19/2008</strong> &#8211; Shaved of a few bytes and added change the &#8220;c&#8221; variable to identify which section to be expanded onload.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptiny.com/2008/04/lightweight-javascript-and-css-accordion/feed/</wfw:commentRss>
		<slash:comments>106</slash:comments>
		</item>
		<item>
		<title>Effective CSS Shorthand</title>
		<link>http://www.scriptiny.com/2008/04/effective-css-shorthand/</link>
		<comments>http://www.scriptiny.com/2008/04/effective-css-shorthand/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 16:37:16 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[cascading style sheet]]></category>
		<category><![CDATA[shorthand]]></category>

		<guid isPermaLink="false">http://www.scriptiny.com/?p=10</guid>
		<description><![CDATA[CSS shorthand can help improve code readability and file size. This article demonstrates this though a series of examples.]]></description>
			<content:encoded><![CDATA[<p>There have been a number of occasions when looking over other developer&#8217;s CSS I notice bits of code similar to the following&#8230;</p>
<pre class="brush: css; title: ; notranslate">#div {
margin-top: 20px;
margin-bottom: 10px;
margin-right: 5px;
margin-left: 25px;
padding-top: 10px;
padding-bottom: 15px;
border-width: 1px;
border-style: solid;
border-color: #666666;
font-family: Verdana, Helvetica, Arial;
font-size: 14px;
font-weight: bold;
}</pre>
<p>The above code is littered with properties that could easily be combined for more legible code and decreased file size. Some properties might even be removed altogether since they default to the desired value. Below you will find before and after examples of some of the most useful CSS shorthand properties. As a general rule any browser later than IE5 should support all of these.</p>
<h4>Margin &amp; Padding</h4>
<pre class="brush: css; title: ; notranslate">#div {
margin-top: 0;
margin-right: 5px;
margin-bottom: 10px;
margin-left: 15px;
/* (auto, 0, px, pt, em or % ) */
}</pre>
<pre class="brush: css; title: ; notranslate">#div {
margin:0 5px 10px 15px;
/* (top right bottom left) */
}</pre>
<p>and</p>
<pre class="brush: css; title: ; notranslate">#div {
margin-top: 10px;
margin-right: 20px;
margin-bottom: 0;
margin-left: 20px;
}</pre>
<pre class="brush: css; title: ; notranslate">#div {
margin:10px 20px 0;
/* (top right/left bottom) */
}</pre>
<p>and</p>
<pre class="brush: css; title: ; notranslate">#div {
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
}</pre>
<pre class="brush: css; title: ; notranslate">#div {
margin:0 auto;
/* (top/bottom left/right) */
}</pre>
<p>and</p>
<pre class="brush: css; title: ; notranslate">#div {
margin-top: 50px;
margin-right: 50px;
margin-bottom: 50px;
margin-left: 50px;
}</pre>
<pre class="brush: css; title: ; notranslate">#div {
margin:50px;
/* (top/right/bottom/left) */
}</pre>
<h4>Border</h4>
<pre class="brush: css; title: ; notranslate">#div {
border-width: 5px;
/* (thin, thick, medium or set value) (default = medium) */
border-style: dotted;
/* (solid, dashed, dotted, double, etc) (default = none) */
border-color: blue;
/* (named, hex, rgb or 0-255) (default = value of elements/elements parent color property) */
}</pre>
<pre class="brush: css; title: ; notranslate">#div {
border:5px dotted blue;
}</pre>
<p>and</p>
<pre class="brush: css; title: ; notranslate">#div {
border-right-width: 2px;
border-right-style: solid;
border-right-color: #666666;
}</pre>
<pre class="brush: css; title: ; notranslate">#div {
border-right:2px solid #666;
}</pre>
<p>and</p>
<pre class="brush: css; title: ; notranslate">#div {
border-top-width: 3px;
border-right-width: 2px;
border-bottom-width: 3px;
border-left-width: 2px;
}</pre>
<pre class="brush: css; title: ; notranslate">#div {
border-width:3px 2px;
}</pre>
<h4>Background</h4>
<pre class="brush: css; title: ; notranslate">#div {
background-color: #CCCCCC;
/* (named, hex, rgb or 0-255) (default = transparent) */
background-image: url(images/bg.gif);
/* (url or none) (default = none) */
background-repeat: no-repeat;
/* (repeat, repeat-x, repeat-y  or no-repeat) (default = repeat) */
background-attachment: scroll;
/* (fixed or scroll) (default = scroll) */
background-position: top left;
/* (top, right, left, bottom or center) (default = 0% 0%) */
}</pre>
<pre class="brush: css; title: ; notranslate">#div {
background:#CCC url(images/bg.gif) no-repeat 0 0;
}</pre>
<h4>Font</h4>
<pre class="brush: css; title: ; notranslate">#div {
font-family: Verdana, Arial, Helvetica;
/* (Verdana, Arial, &quot;Times New Roman&quot;, etc) (default = varies by browser) */
font-size: 12px;
/* (xx-small, medium, x-large, set value, etc) (default = medium) */
font-weight: bold;
/* (normal, bold, bolder, lighter, 100-900 or inherit) (default = normal) */
font-style: italic;
/* (normal, italic or oblique) (default = normal) */
font-variant: normal;
/* (normal or small-caps) (default = normal) */
line-height: 1.5;
/* (normal, px, pt, em, num or %) (default = normal) */
}</pre>
<pre class="brush: css; title: ; notranslate">#div {
font:italic bold  12px/1.5 Verdana, Arial, Helvetica;
}</pre>
<h4>List</h4>
<pre class="brush: css; title: ; notranslate">#div {
list-style-image: url(images/bullet.gif);
/* (url or none) (default = none) */
list-style-position: inside;
/* (inside or outside) (default = outside) */
list-style-type: square;
/* (circle, disc, square, etc) (default = disc) */
}</pre>
<pre class="brush: css; title: ; notranslate">#div {
list-style:square inside url(images/bullet.gif);
}</pre>
<h4>Colors</h4>
<pre class="brush: css; title: ; notranslate">Black: #000000 to #000
Blue: #0000ff to #00f
Dark Grey: #666666 to #666
Light Grey: #cccccc to #ccc
Orange: #ff6600 to #f60
White: #ffffff to #fff</pre>
<p><strong><a href='http://forum.leigeber.com/index.php?app=downloads&#038;showfile=9'>Click here</a></strong> to download a PDF cheat sheet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptiny.com/2008/04/effective-css-shorthand/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>

