<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.2" -->
<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/"
	>

<channel>
	<title>pootato.org &#187; CSS</title>
	<link>http://pootato.org</link>
	<description>Tutorials for your website</description>
	<pubDate>Mon, 26 May 2008 19:56:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>
	<language>en</language>
			<item>
		<title>CSS Progress Bar</title>
		<link>http://pootato.org/tutorials/css/css-progress-bar/</link>
		<comments>http://pootato.org/tutorials/css/css-progress-bar/#comments</comments>
		<pubDate>Tue, 21 Aug 2007 13:58:19 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/css/css-progress-bar/</guid>
		<description><![CDATA[This is a CSS trick originally from Man Bytes Hollywood article &#034;Track your progress (or Lack thereof)&#034;.
Step 1: prepare your images
Your image must be an horizontally repeating background. Of course, you can choose to use no image at all and only a solid color. Too lazy to make a background? I&#039;ve prepared two for you:
 [...]]]></description>
			<content:encoded><![CDATA[<p>This is a CSS trick originally from Man Bytes Hollywood article &#034;<a href="http://www.davidanaxagoras.com/2005/04/16/track-your-progress-or-lack-thereof/">Track your progress (or Lack thereof)</a>&#034;.</p>
<h2>Step 1: prepare your images</h2>
<p>Your image must be an horizontally repeating background. Of course, you can choose to use no image at all and only a solid color. Too lazy to make a background? I&#039;ve prepared two for you:</p>
<p><img src="http://pootato.org/schemas/2007/08/progress_blue.gif" alt="Blue progress bar background" /> <img src="http://pootato.org/schemas/2007/08/progress_pink.gif" alt="Pink progress bar background" /></p>
<h2>Step 2: the HTML code</h2>
<p>This is very simple, we use two divs, one to make the border, it will have a fixed width, and one inside, to display the progress. To change the progress, change its width! :)</p>
<p><code>&lt;div class="prog-border"&gt;<br />
&lt;div class="prog-bar" style="width: <strong>x</strong>%;&#034;&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;</code></p>
<h2>Step 3: styling all this</h2>
<p>Now, the most important, the CSS! In your stylesheet, add this:</p>
<p><code><strong>.prog-border</strong> {<br />
width: 200px;<br />
height: 20px;<br />
background: #FFF;<br />
padding: 3px;<br />
border: 1px solid #DDD;<br />
}<br />
<strong>.prog-bar</strong> {<br />
height: 20px;<br />
background: url(<em>progress_bar_background.gif</em>) repeat-x; /* use the color or the background you want! */<br />
}</code></p>
<p>We&#039;re done! You should have this:</p>
<div style="border: 1px solid #dddddd; padding: 3px; width: 200px; height: 20px">
<div style="background: transparent url('http://pootato.org/schemas/2007/08/progress_pink.gif') repeat-x scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; height: 20px; width: 45%"></div>
</div>
<p class="akst_link"><a href="http://pootato.org/?p=121&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_121" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/css/css-progress-bar/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CSS Rollovers</title>
		<link>http://pootato.org/tutorials/css/css-rollovers/</link>
		<comments>http://pootato.org/tutorials/css/css-rollovers/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 14:31:08 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/css/css-rollovers/</guid>
		<description><![CDATA[This is the little trick I use to make my menus rollovers. To start, let&#039;s make a simple rollover. See it in action on this page. Note that we use only one image to make the rollover. You just need to put the second image below the first one in your graphic editor and save. [...]]]></description>
			<content:encoded><![CDATA[<p>This is the little trick I use to make my menus rollovers. To start, let&#039;s make a simple rollover. See it in action <a href="http://pootato.org/examples/rollover.html" target="_blank">on this page</a>. Note that we use only one image to make the rollover. You just need to put the second image below the first one in your graphic editor and save. Let&#039;s insert the HTML codes first:</p>
<p><code>&lt;a href="http://domain.com" <strong>class=&#034;rollover&#034;</strong>&gt;<em>&lt;var&gt;</em>Rollover<em>&lt;/var&gt;</em>&lt;/a&gt;</code></p>
<p>Do not forget to add a class and to insert the link text between <samp>&lt;var&gt;</samp> and <samp>&lt;/var&gt;</samp> ! Then, the css:</p>
<p><code><strong>var</strong> {<br />
visibility: hidden; /* this will hide the text link */<br />
}<br />
<strong>a.rollover</strong> {<br />
display: block; /* needed to set link dimensions */<br />
width: 180px; /* width of your image */<br />
height: 50px; /* height of your image, divided by two, we need to hide the second image */<br />
background: url(<em>IMAGE.JPG</em>) no-repeat; /* image url */<br />
text-decoration: none; /* to hide the link underline */<br />
}<br />
<strong>a:hover.rollover</strong> {<br />
background: url(<em>IMAGE.jpg</em>) no-repeat <strong>0px -50px</strong>; /* On mouseover, we show the second image, by adjusting background position! */<br />
}</code></p>
<p><img src="http://pootato.org/schemas/2007/08/rollovergrid.jpg" alt="Grid" class="left" />As you can see, I&#039;ve added some values to <samp>a:hover.rollover</samp>: <samp>0px -50px</samp> this is the <strong>background-position</strong> property. It&#039;s like the image &#034;coordinates&#034;. The image dimension is 180px*100px but it is equally divided in two parts. When the mouse is not over, we need to show the top image, we do not set the background position because default values are 0px 0px, which is the top image &#034;coordinates&#034;. When the mouse is over, we need to show the second image and as you can see on the grid, its &#034;coordinates&#034; are 0px -50px ! :) Okay, I suck at explaining. XD</p>
<p>Let&#039;s do something more complex, like an entire menu. This is the HTML code of our menu, I&#039;ve put the links in a div:</p>
<p><code>&lt;div id="menu"&gt;<br />
&lt;a href="linkone.html" class="one"&gt;&lt;var&gt;one&lt;/var&gt;&lt;/a&gt;<br />
&lt;a href="linktwo.html" class="two"&gt;&lt;var&gt;two&lt;/var&gt;&lt;/a&gt;<br />
&lt;a href="linkthree.html" class="three"&gt;&lt;var&gt;three&lt;/var&gt;&lt;/a&gt;<br />
&lt;a href="linkfour.html" class="four"&gt;&lt;var&gt;four&lt;/var&gt;&lt;/a&gt;<br />
&lt;/div&gt;</code></p>
<p>Note that the links classes are all different, this is necessary! This is the image we&#039;ll use:</p>
<div class="center"><img src="http://pootato.org/schemas/2007/08/menuroll.jpg" alt="Menu rollover" /></div>
<p>Let&#039;s see it in a grid so that we can set the background-position easily for each link:</p>
<div class="center"><img src="http://pootato.org/schemas/2007/08/menurollgrid.jpg" alt="Menu rollover grid" /></div>
<p>Alright, CSS time! First, let&#039;s style our menu div. Set its dimension to 400*50px:</p>
<p><code><strong>#menu</strong> {<br />
width: 400px;<br />
height: 50px;<br />
}</code></p>
<p>Now, hide the text link:</p>
<p><code><strong>var</strong> {<br />
visibility: hidden;<br />
}</code></p>
<p>And for all links, hide the underline, set their height to 50px, and we&#039;ll need to add the float property, to align them correctly (because we &#034;transformed them into blocks&#034; to set their dimensions with display:block;):</p>
<p><code><strong>#menu a</strong> {<br />
text-decoration: none;<br />
display: block;<br />
float: left;<br />
height: 50px;<br />
}</code></p>
<p>Now, let&#039;s add styles for each link using classes:</p>
<p><code><strong>a.one</strong> {<br />
width: 100px;<br />
background: url(image.jpg) no-repeat <em>0px 0px</em>;<br />
}<br />
<strong>a.two</strong> {<br />
width: 100px;<br />
background: url(image.jpg) no-repeat <em>-100px 0px</em>;<br />
}<br />
<strong>a.three</strong> {<br />
width: 100px;<br />
background: url(image.jpg) no-repeat <em>-200px 0px</em>;<br />
}<br />
<strong>a.four</strong> {<br />
width: 100px;<br />
background: url(image.jpg) no-repeat <em>-300px 0px</em>;<br />
}</code></p>
<p>Note that background position is different for each class, since we need to display different parts of the image. See the grid. For example, link four image starts at 300px from the left, but in the CSS, we need to add <em>minus</em> 300px.</p>
<p>Now let&#039;s set the background-position when someone mouse over the links. We&#039;ll keep the &#034;x&#034; position but change the &#034;y&#034; ones, by adding <samp>-50px</samp> to display the second image (green).</p>
<p><code><strong>a:hover.one</strong> {<br />
background: url(image.jpg) no-repeat <em>0px -50px</em>;<br />
}<br />
<strong>a:hover.two</strong> {<br />
background: url(image.jpg) no-repeat <em>-100px -50px</em>;<br />
}<br />
<strong>a:hover.three</strong> {<br />
background: url(image.jpg) no-repeat <em>-200px -50px</em>;<br />
}<br />
<strong>a:hover.four</strong> {<br />
background: url(image.jpg) no-repeat <em>-300px -50px</em>;<br />
}</code></p>
<p>We&#039;re done! You can see the rollover in action <a href="http://pootato.org/examples/menurollover.html" target="_blank">on this page</a>.</p>
<p>Note: There is a file embedded within this post, please visit this post to download the file.</p>
<p class="akst_link"><a href="http://pootato.org/?p=113&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_113" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/css/css-rollovers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Printer Friendly</title>
		<link>http://pootato.org/tutorials/css/printer-friendly/</link>
		<comments>http://pootato.org/tutorials/css/printer-friendly/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 19:07:33 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/css/printer-friendly/</guid>
		<description><![CDATA[How to make printer friendly page without php or any script? Well, to use this  tutorial, your site should be designed with CSS div layers, using id or classes.  In your attached stylesheet, you&#039;ll add the media attribute, like this:
&#60;link href="style.css&#034; rel=&#034;stylesheet&#034; type=&#034;text/css&#034; media=&#034;screen&#034; /&#62;
Well, now, you need to make another stylesheet, the [...]]]></description>
			<content:encoded><![CDATA[<p>How to make printer friendly page without php or any script? Well, to use this  tutorial, your site should be designed with CSS div layers, using id or classes.  In your attached stylesheet, you&#039;ll add the <samp>media</samp> attribute, like this:</p>
<p><code>&lt;link href="<em>style.css</em>&#034; rel=&#034;stylesheet&#034; type=&#034;text/css&#034; <strong>media=&#034;screen&#034;</strong> /&gt;</code></p>
<p>Well, now, you need to make another stylesheet, the printer-friendly one. You  must make it so your design won&#039;t show up. For example, here is your body:</p>
<p><code>&lt;body&gt;<br />
&lt;div <strong>id=&#034;header&#034;</strong>&gt;<em>&lt;!&#8211;Here goes your header layout  &#8211;&gt;</em>&lt;/div&gt;<br />
&lt;div <strong>id=&#034;sidebar&#034;</strong>&gt;<em>&lt;!&#8211;Here goes your sidebar &#8211;&gt;</em>&lt;/div&gt;<br />
&lt;div <strong>id=&#034;content&#034;</strong>&gt;<em>&lt;!&#8211;Here goes your content &#8211;&gt;</em>&lt;/div&gt;<br />
&lt;/body&gt;</code></p>
<p>Then, you printer-friendly should look like this:</p>
<p><code><strong>#header</strong>, <strong>#sidebar</strong> {<br />
display: none;<br />
}<br />
<strong>#content</strong> {<br />
font: 12pt Georgia, Arial, Helvetica, sans-serif;<br />
text-align: justify;<br />
}</code></p>
<p>It&#039;s recommended to use a font like Georgia or Times New Roman for printers  and use points instead of pixels. Now, save your printer-friendly stylesheet.  I&#039;ll name it <strong>print.css</strong>. In your document, insert:</p>
<p><code>&lt;link href="<em>print.css</em>&#034; rel=&#034;stylesheet&#034; type=&#034;text/css&#034; <strong>media=&#034;print&#034;</strong> /&gt;</code></p>
<p>Don&#039;t worry, it won&#039;t appear when you go to your site. Now, try to print your  site&#8230; Your layout is hidden, only content is shown! :) Try to print this site  to see an example! If you&#039;re using tables, don&#039;t worry, you can do it too. Just  add <samp>id=&#034;content&#034;</samp> in the cell with your content. Don&#039;t put anything  in the others (sidebar, layout images). Then, in your printer-friendly stylesheet,  do it like that:</p>
<p><code>td {<br />
visibility: hidden;<br />
}<br />
#content {<br />
visibility: visible;<br />
}</code></p>
<p>It should do it.</p>
<p class="akst_link"><a href="http://pootato.org/?p=55&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_55" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/css/printer-friendly/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Making a CSS design</title>
		<link>http://pootato.org/tutorials/css/making-a-css-design/</link>
		<comments>http://pootato.org/tutorials/css/making-a-css-design/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 18:55:52 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/css/base-of-css-layouts/</guid>
		<description><![CDATA[Here is the purpose of this tutorial: making a centered layout with two sidebars, a header and a footer without tables. It should look like this: click.
In the picture, I&#039;ve represented the div layers needed to realize this.
As you can see, 5 elements (header, sidebars, footer, text) but 6 layers! The extra layer will contain [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/schemas/2007/08/layers.jpg" class="left" height="125" width="182" />Here is the purpose of this tutorial: making a centered layout with two sidebars, a header and a footer without tables. It should look like this: <a href="/examples/csslayout/csslayout.php">click</a>.</p>
<p>In the picture, I&#039;ve represented the div layers needed to realize this.</p>
<p>As you can see, 5 elements (header, sidebars, footer, text) but 6 layers! The extra layer will contain all the elements and set the width of the layout. We will also use it to center our layout.</p>
<p>Here is our index.htm source so far:</p>
<p><code> <u>&lt;!DOCTYPE html PUBLIC &#034;-//W3C//DTD XHTML 1.0 Transitional//EN&#034;<br />
&#034;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#034;&gt;</u><br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;CSS Layout&lt;/title&gt;<br />
&lt;link rel=&#034;stylesheet&#034; href=&#034;<em>stylesheet.css</em>&#034; type=&#034;text/css&#034; /&gt;<br />
&lt;meta http-equiv=&#034;Content-Type&#034; content=&#034;text/html; charset=utf-8&#034; /&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div id=&#034;<strong>container</strong>&#034;&gt;<br />
&lt;div id=&#034;<strong>header</strong>&#034;&gt;&lt;/div&gt;<br />
&lt;div id=&#034;<strong>leftside</strong>&#034;&gt;&lt;/div&gt;<br />
&lt;div id=&#034;<strong>text</strong>&#034;&gt;&lt;/div&gt;<br />
&lt;div id=&#034;<strong>rightside</strong>&#034;&gt;&lt;/div&gt;<br />
&lt;div id=&#034;<strong>footer</strong>&#034;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt; </code></p>
<p>Don&#039;t forget the doctype (underlined) for validation, as well as the link to the stylesheet. I have put IDs in the div layers so that we can control their looks and position with CSS. Remember that an ID can be used once in a page only, contrary to classes which can be used as much as you want.</p>
<p>Now, let&#039;s take a look at stylesheet.css : (ignore the backgrounds color, I&#039;ve put them so that you can see the different divs on the final layout.)</p>
<p><code> body  {<br />
margin: 0px;<br />
padding: 0px;<br />
background: #FFFFFF;<br />
}<br />
#container  {<br />
/* margins at top and bottom are 0px but on the sides, "auto" will center the layout */<br />
margin: 0px auto;<br />
padding: 0px;<br />
/* sets the layout width */<br />
width: 700px;<br />
}<br />
#header  {<br />
width: 100%;<br />
height: 150px;<br />
background: #EEE;<br />
}<br />
#leftside  {<br />
width: 150px;<br />
/* float it to the left of the text */<br />
float: left;<br />
background: #DDD;<br />
}<br />
#rightside  {<br />
width: 150px;<br />
/* float it to the right of the text */<br />
float: right;<br />
background: #CCC;<br />
}<br />
#text  {<br />
width: 400px;<br />
background: #BBB;<br />
/* float it to the left of the right sidebar */<br />
float: left;<br />
}<br />
#footer  {<br />
width: 100%;<br />
height: 50px;<br />
/* clear: both so that it remains at the bottom of the 3 columns */<br />
clear: both;<br />
background: #AAA;<br />
}<br />
</code></p>
<p>The <strong>#</strong> before each layer&#039;s ID in the stylesheet is needed! It&#039;s similar to the <strong>.</strong> in front of classes in stylesheets. The  structure of the page is now ready, it looks like <a href="/examples/csslayout/csslayout.php?cssfile=structure.css">this</a>. All that&#039;s left is to add style. Let&#039;s start adding space between the layers&#039; borders and the text. Add this to your stylesheet:</p>
<p><code> p  {<br />
/* margins on the sides are 10px now */<br />
margin: auto 10px;<br />
/* font size is 11px and line-height is 15px */<br />
font: 11px/15px Arial,  Verdana,  sans-serif;<br />
} </code></p>
<p>It&#039;s starting to look like something! We now have <a href="/examples/csslayout/csslayout.php?cssfile=paragraph.css">this</a>. Notice how the sidebars are smaller than the text layer height? We&#039;re going to fix this with a little trick. We&#039;re going to make an image background for the container layer. <a href="/examples/csslayout/background.jpg" rel='lightbox[making-a-css-design]'>The background image</a>. This trick is called faux columns. Now in your stylesheet, find <strong>#container</strong> and add this in the properties:</p>
<p><code>/* add the background to make faux columns */<br />
background: url(background.jpg)  repeat-y;</code><a href="/examples/csslayout/csslayout.php">Click here</a> to see the finished page! You can customize it as you want with CSS, make beautiful css menus, etc. Use the CSS background properties to define your header image and graphics. Why? So that without changing your HTML code, you can change your layout easily!</p>
<p>Note: There is a file embedded within this post, please visit this post to download the file.</p>
<p class="akst_link"><a href="http://pootato.org/?p=53&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_53" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/css/making-a-css-design/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Custom underlines</title>
		<link>http://pootato.org/tutorials/css/custom-underlines/</link>
		<comments>http://pootato.org/tutorials/css/custom-underlines/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 18:35:59 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/css/custom-underlines/</guid>
		<description><![CDATA[Idea from A List Apart.
First, open your graphics editor, make a custom line, I recommend you to not use one bigger than 3px in height. I&#039;ve made a few for you to use, you can find them at the end of the tutorial, you can always replace the colors, of course.
link example, another example, here [...]]]></description>
			<content:encoded><![CDATA[<p>Idea from <a href="http://www.alistapart.com/articles/customunderlines/">A List Apart</a>.</p>
<p>First, open your graphics editor, make a custom line, I recommend you to not use one bigger than 3px in height. I&#039;ve made a few for you to use, you can find them at the end of the tutorial, you can always replace the colors, of course.</p>
<p><a href="#" id="ie1" style="background: transparent url('/schemas/underline1.gif') repeat-x scroll left bottom; text-decoration: none; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; padding-bottom: 2px" rel='lightbox[custom-underlines]'>link example</a>, <a href="#" id="ie2" style="background: transparent url('/schemas/underline2.gif') repeat-x scroll left bottom; text-decoration: none; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; padding-bottom: 2px" rel='lightbox[custom-underlines]'>another example</a>, <a href="#" id="ie3" style="background: transparent url('/schemas/underline3.gif') repeat-x scroll left bottom; text-decoration: none; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; padding-bottom: 2px" rel='lightbox[custom-underlines]'>here we go</a>, <a href="#" id="ie4" style="background: transparent url('/schemas/underline4.gif') repeat-x scroll left bottom; text-decoration: none; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; padding-bottom: 2px" rel='lightbox[custom-underlines]'>again</a>, <a href="#" id="ie5" style="background: transparent url('/schemas/underline5.gif') repeat-x scroll left bottom; text-decoration: none; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; padding-bottom: 2px" rel='lightbox[custom-underlines]'>and finally</a>, <a href="#" id="ie6" style="background: transparent url('/schemas/underline6.gif') repeat-x scroll left bottom; text-decoration: none; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; padding-bottom: 2px" rel='lightbox[custom-underlines]'>the last one</a>.</p>
<p>Well, that&#039;s nice, but what&#039;s the code?</p>
<p><code>a {<br />
text-decoration: none;<br />
background: url(<strong>underline.gif</strong>) repeat-x left bottom;<br />
padding-bottom: 2px;<br />
} </code></p>
<p>Set your underline as background, make it repeat horizontally only (repeat-x) and set its position to left horizontally and bottom vertically. This is nice, but how do I do animated rollovers? It&#039;s simple, make an animated underline, and put it as background using this code:</p>
<p><code>a:hover {<br />
text-decoration: none;<br />
background: url(<strong>underline_over.gif</strong>) repeat-x left bottom;<br />
}</code></p>
<p>Same as previously, make it repeat horizontally only, etc.</p>
<p>Note: There is a file embedded within this post, please visit this post to download the file.</p>
<p class="akst_link"><a href="http://pootato.org/?p=52&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_52" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/css/custom-underlines/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Line Height</title>
		<link>http://pootato.org/tutorials/css/line-height/</link>
		<comments>http://pootato.org/tutorials/css/line-height/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 18:25:25 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/css/line-height/</guid>
		<description><![CDATA[Line height is used to reduce or to increase the space between 2 text lines in a paragraph.
 &#60;style type="text/css"&#62;
p {
font-size:11px;
line-height:VALUEpx;
}
&#60;/style&#62; 
Here is line height 5px. Impossible to read. Ut at urna a sem semper vestibulum. Vestibulum pellentesque. Duis interdum. Praesent pellentesque tincidunt magna. Curabitur faucibus. Aenean imperdiet scelerisque libero. Nullam nulla sem, rhoncus ac, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Line height</strong> is used to reduce or to increase the space between 2 text lines in a paragraph.</p>
<p><code> &lt;style type="text/css"&gt;<br />
p {<br />
<em>font-size</em>:<strong>11px</strong>;<br />
<em>line-height</em>:<strong>VALUEpx</strong>;<br />
}<br />
&lt;/style&gt; </code></p>
<p style="line-height: 5px"><strong>Here is line height 5px. Impossible to read.</strong> Ut at urna a sem semper vestibulum. Vestibulum pellentesque. Duis interdum. Praesent pellentesque tincidunt magna. Curabitur faucibus. Aenean imperdiet scelerisque libero. Nullam nulla sem, rhoncus ac, rhoncus nec, tempor sit amet, dui. Cras felis nunc, tincidunt et, euismod sed, pretium non, dolor. Donec leo risus, euismod eget, fringilla quis, consectetuer nec, libero. Praesent imperdiet.</p>
<p style="line-height: 25px"><strong>Here is line height 25px. Ah, space!</strong> Cras leo lectus, semper lobortis, luctus eget, placerat at, tellus. Aenean eget erat sed massa aliquam tincidunt. Praesent vestibulum. Aliquam ligula. Aliquam convallis pede sit amet odio. Vivamus non justo vitae urna volutpat pharetra. Vivamus ac sapien. Aliquam in nibh quis pede porta malesuada. Nullam convallis. Vestibulum purus. Mauris felis justo, ullamcorper vitae, lacinia et, tristique nec, wisi. Morbi nonummy.</p>
<p>When using shorthand property, you can set the line-height like this:</p>
<p><code> &lt;style type="text/css"&gt;<br />
p {<br />
font: 11px<strong>/20px</strong> Arial, sans-serif;<br />
}<br />
&lt;/style&gt; </code></p>
<p>Here I&#039;ve set the line-height to 20px and the font-size to 11px :)</p>
<p class="akst_link"><a href="http://pootato.org/?p=51&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_51" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/css/line-height/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Border style</title>
		<link>http://pootato.org/tutorials/css/border-style/</link>
		<comments>http://pootato.org/tutorials/css/border-style/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 18:22:17 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/css/border-style/</guid>
		<description><![CDATA[Copy and paste this in your CSS stylesheet or between the style tags, replace STYLE by the style you want&#8230; dotted appears like dashed in IE, though they aren&#039;t the same. (Use Firefox! ;])
 img {
border: STYLE;
} 
Of course, you can replace img by whatever you want.
1px dotted #000000
1px dashed #000000
1px solid #000000
3px double #000000
3px [...]]]></description>
			<content:encoded><![CDATA[<p>Copy and paste this in your CSS stylesheet or between the <samp>style</samp> tags, replace <em>STYLE</em> by the style you want&#8230; <samp>dotted</samp> appears like <samp>dashed</samp> in IE, though they aren&#039;t the same. (Use <a href="http://getfirefox.com">Firefox</a>! ;])</p>
<p><code> <strong>img</strong> {<br />
border: <em>STYLE</em>;<br />
} </code></p>
<p>Of course, you can replace <samp>img</samp> by whatever you want.</p>
<p style="border: 1px dotted #000000">1px dotted #000000</p>
<p style="border: 1px dashed #000000">1px dashed #000000</p>
<p style="border: 1px solid #000000">1px solid #000000</p>
<p style="border: 3px double #000000">3px double #000000</p>
<p style="border: 3px groove #000000">3px groove #000000</p>
<p style="border: 3px ridge #000000">3px ridge #000000</p>
<p style="border: 1px inset #000000">1px inset #000000</p>
<p style="border: 1px outset #000000">1px outset #000000</p>
<p>If you want only a border at the bottom, use this:</p>
<p><code> <strong>a</strong> {<br />
border-bottom: <em>STYLE</em>;<br />
} </code></p>
<p class="akst_link"><a href="http://pootato.org/?p=50&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_50" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/css/border-style/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Cursor style</title>
		<link>http://pootato.org/tutorials/css/cursor-style/</link>
		<comments>http://pootato.org/tutorials/css/cursor-style/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 18:15:23 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/css/cursor-style/</guid>
		<description><![CDATA[First, copy and paste this. Mouseover the links at the bottom, choose one and replace STYLE by its name.
 &#60;style type="text/css"&#62;
body {
cursor: STYLE;
}
&#60;/style&#62;

crosshair
default
hand
help
move
text
wait
auto
e-resize
ne-resize
n-resize
nw-resize
w-resize
sw-resize
s-resize
se-resize
You can also put it like that:
 &#60;a href="url&#034; style=&#034;cursor:STYLE&#034;&#62;link link&#60;/a&#62;

(note) It&#039;s better not to use this too much&#8230; :)
Share This
]]></description>
			<content:encoded><![CDATA[<p>First, copy and paste this. Mouseover the links at the bottom, choose one and replace STYLE by its name.</p>
<p><code> &lt;style type="text/css"&gt;<br />
body {<br />
<em>cursor</em>: <strong>STYLE</strong><em>;</em><br />
}<br />
&lt;/style&gt;<br />
</code></p>
<p><a href="#" title="crosshair" name="crosshair" style="cursor: crosshair">crosshair</a><br />
<a href="#" title="defaut" name="defaut" style="cursor: default">default</a><br />
<a href="#" title="hand" name="hand">hand</a><br />
<a href="#" title="help" name="help" style="cursor: help">help</a><br />
<a href="#" title="move" name="move" style="cursor: move">move</a><br />
<a href="#" title="text" name="text" style="cursor: text">text</a><br />
<a href="#" title="wait" name="wait" style="cursor: wait">wait</a><br />
<a href="#" title="auto" name="auto" style="cursor: auto">auto</a><br />
<a href="#" title="e-resize" name="e-resize" style="cursor: e-resize">e-resize</a><br />
<a href="#" title="ne-resize" name="ne-resize" style="cursor: ne-resize">ne-resize</a><br />
<a href="#" title="n-resize" name="n-resize" style="cursor: n-resize">n-resize</a><br />
<a href="#" title="nw-resize" name="nw-resize" style="cursor: nw-resize">nw-resize</a><br />
<a href="#" title="w-resize" name="w-resize" style="cursor: w-resize">w-resize</a><br />
<a href="#" title="sw-resize" name="sw-resize" style="cursor: sw-resize">sw-resize</a><br />
<a href="#" title="s-resize" name="s-resize" style="cursor: s-resize">s-resize</a><br />
<a href="#" title="se-resize" name="se-resize" style="cursor: se-resize">se-resize</a></p>
<p>You can also put it like that:</p>
<p><code> &lt;a href="<strong>url</strong>&#034; style=&#034;<em>cursor</em>:<strong>STYLE</strong>&#034;&gt;<strong>link link</strong>&lt;/a&gt;<br />
</code></p>
<p>(note) It&#039;s better not to use this too much&#8230; :)</p>
<p class="akst_link"><a href="http://pootato.org/?p=49&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_49" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/css/cursor-style/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Text selection color</title>
		<link>http://pootato.org/tutorials/css/text-selection-color/</link>
		<comments>http://pootato.org/tutorials/css/text-selection-color/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 10:58:40 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/css/text-selection-color/</guid>
		<description><![CDATA[Warning: this doesn&#039;t work in IE and your stylesheet won&#039;t validate.
This CSS code change the color of text selection on your page.
 ::-moz-selection{
background:#EDCCCC;
color:#FF3399;
}
::selection {
background:#EDCCCC;
color:#FF3399;
} 
Share This
]]></description>
			<content:encoded><![CDATA[<p>Warning: this doesn&#039;t work in IE and your stylesheet won&#039;t validate.</p>
<p>This CSS code change the color of text selection on your page.</p>
<p><code> ::-moz-selection{<br />
background:#EDCCCC;<br />
color:#FF3399;<br />
}<br />
::selection {<br />
background:#EDCCCC;<br />
color:#FF3399;<br />
} </code></p>
<p class="akst_link"><a href="http://pootato.org/?p=30&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_30" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/css/text-selection-color/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Shortcuts</title>
		<link>http://pootato.org/tutorials/css/shortcuts/</link>
		<comments>http://pootato.org/tutorials/css/shortcuts/#comments</comments>
		<pubDate>Tue, 14 Aug 2007 23:40:04 +0000</pubDate>
		<dc:creator>Clara</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://pootato.org/tutorials/css/shortcuts/</guid>
		<description><![CDATA[Grouping
If you have the same style for two or more selectors, you can group them!
 p, h1, h2 {
font: 12px Arial, sans-serif;
} 
Shorthand properties
I always use shorthand properties to have a lighter stylesheet. For example, if you have background properties set like this:
 body {
background-color: #FFF;
background-image: url(image.jpg);
background-repeat: no-repeat;
} 
The code can be shortened to one [...]]]></description>
			<content:encoded><![CDATA[<h2>Grouping</h2>
<p>If you have the same style for two or more selectors, you can group them!</p>
<p><code> p, h1, h2 {<br />
font: 12px Arial, sans-serif;<br />
} </code></p>
<h2>Shorthand properties</h2>
<p>I always use shorthand properties to have a lighter stylesheet. For example, if you have background properties set like this:</p>
<p><code> body {<br />
background-color: #FFF;<br />
background-image: url(image.jpg);<br />
background-repeat: no-repeat;<br />
} </code></p>
<p>The code can be shortened to one line:</p>
<p><code> body {<br />
background: #FFF url(image.jpg) no-repeat;<br />
} </code></p>
<p class="akst_link"><a href="http://pootato.org/?p=21&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_21" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://pootato.org/tutorials/css/shortcuts/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
