<?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>freeyourdesign &#187; css</title>
	<atom:link href="http://freeyourdesign.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://freeyourdesign.com</link>
	<description>break free by learning</description>
	<lastBuildDate>Wed, 06 Oct 2010 19:32:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>CSS Two Classes for one Item</title>
		<link>http://freeyourdesign.com/css/css-two-classes-for-one-item/</link>
		<comments>http://freeyourdesign.com/css/css-two-classes-for-one-item/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 20:20:03 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[css tip]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/?p=55</guid>
		<description><![CDATA[Using Two Classes on one item in CSS. Here's a quick CSS Tip you can use if you need to style an item with two(or more) classes. Sometime you might need to make something stand out a little more than the rest of the elements using the same CSS Class. You could throw a span [...]]]></description>
			<content:encoded><![CDATA[<p>
<img style="border:none;" class="left" src="http://freeyourdesign.com/images/cssbadge.gif" alt="css tips and tricks" />Using Two Classes on one item in CSS.</p>
<p>Here's a quick CSS Tip you can use if you need to style an item with two(or more) classes.</p>
<p>Sometime you might need to make something stand out a little more than the rest of the elements using the same CSS Class. You could throw a span tag around it or you can uses a second CSS Class. This way if you need to use this style again you aren't constantly having to type out the whole span tag.</p>
<p>It's actually pretty simple&#8230;<br />
The HTML</p>
<pre>&lt;div class="one two"&gt;This text has TWO classes.&lt;/div&gt;</pre>
<p>The CSS<br />
.one<br />
{<br />
color: #ff0000;<br />
}<br />
.two<br />
{<br />
font-size: 1.5em;<br />
}</p>
<p>and here is the result:</p>
<div class="one two">This text has TWO classes.</div>
<p>A simple but very useful CSS Tip.</p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=55&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/css/css-two-classes-for-one-item/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Global Reset Styles</title>
		<link>http://freeyourdesign.com/css/css-global-reset-styles/</link>
		<comments>http://freeyourdesign.com/css/css-global-reset-styles/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 11:33:36 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/?p=51</guid>
		<description><![CDATA[For me, one of the best parts of running this blog is that I am always learning something new. Doing research for new posts and finding new resources and sites helps me expand my knowledge and pass it on to the readers. With all the CSS I have written and learned, I never really knew [...]]]></description>
			<content:encoded><![CDATA[<p>For me, one of the best parts of running this blog is that I am always learning something new. Doing research for new posts and finding new resources and sites helps me expand my knowledge and pass it on to the readers. With all the CSS I have written and learned, I never really knew about global resets. I have seen them before in other peoples code, but didn't pay much attention to them.</p>
<p>I recently came across a great article over at perishablepress.com that explains what they are used for and gives a long list of different types of resets. I have unknowingly used resets before when setting padding and margin to 0 for different elements and then adjusting it to my liking.</p>
<p>It's important to design sites with cross-browser compatibility in mind. With the different ways that browsers handle CSS and the fact that each browser has it's own default setup for things like margins and padding, adding these global resets can really help the design process. I plan on implementing some of these resets in future design projects.</p>
<p>Here is an example of a CSS reset. To find a lot more check out this <a href="http://perishablepress.com/press/2007/10/23/a-killer-collection-of-global-css-reset-styles/">Killer Collection of Global Reset Styles</a>.</p>
<pre>
* {
     padding: 0;
     margin: 0;
}
</pre>
<p>The <strong>*</strong> is called a wildcard symbol. Here it is used as a wildcard selector which means that these properties are applied to every element. So, all the padding and margins are <strong>reset</strong> to <strong>0</strong>.</p>
<p>You can add other properties to the wildcard selector. Some people will add <strong>border: 0;</strong> and <strong>outline: 0;</strong>. The above, with padding: 0; and margin: 0;, is one of the most popular CSS resets used.</p>
<p>The post at <a href="http://perishablepress.com/press/2007/10/23/a-killer-collection-of-global-css-reset-styles/">perishablepress</a> is worth a read, and they have a lot more reset options.</p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=51&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/css/css-global-reset-styles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Tip &#8211; Using Link Anchor Pseudo Classes</title>
		<link>http://freeyourdesign.com/css/css-tip-using-link-anchor-pseudo-classes/</link>
		<comments>http://freeyourdesign.com/css/css-tip-using-link-anchor-pseudo-classes/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 13:32:35 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/?p=48</guid>
		<description><![CDATA[Let's take a look at styling anchor tags, or links, using CSS. We will be going over the CSS pseudo-classes that are used with links &#8211; link, visited, hover, and active. First, let's take a look at the link pseudo-class in CSS. :link &#8211; this pseudo-class is used to style a normal unvisited link. When [...]]]></description>
			<content:encoded><![CDATA[<p>Let's take a look at styling anchor tags, or links, using CSS. We will be going over the CSS pseudo-classes that are used with links &#8211; link, visited, hover, and active. First, let's take a look at the link pseudo-class in CSS.</p>
<p><strong>:link</strong> &#8211; this pseudo-class is used to style a normal unvisited link. When you are styling links you should put this pseudo-class first.</p>
<pre>a:link
{
color: #339966;
}</pre>
<p>Notice that we use the HTML tag, or selector, <strong>a</strong> because that is how a link is represented in HTML. The <strong>:link</strong> represents the pseudo-class. Then you set your properties between the curly braces. This CSS will change all the unvisited links to a green color.</p>
<p><strong>:visited</strong> &#8211; this pseudo-class is used to style a visited link. When you are styling links you should put this pseudo-class second.</p>
<pre>a:visited
{
color: #00ffff;
}</pre>
<p>You will see that most sites will set the visited link color to the same color as the normal a:link color.</p>
<p><strong>:hover</strong> &#8211; this pseudo-class is used to style the mouse over effect of a link. When you are styling links you <strong>MUST</strong> put this after a:link and a:visited.</p>
<pre>a:hover
{
color: #FF0000;
}</pre>
<p><strong>:active</strong> &#8211; this pseudo-class is used to style an activated link element. When you are styling links you <strong>MUST</strong> put this after a:hover.</p>
<pre>a:active
{
color: #FF00FF;
}</pre>
<p>This effect is seen while clicking the link. You will find the a lot of sites will style a:hover and a:active the same.</p>
<p>Putting it together in the HTML.</p>
<pre>&lt;html&gt;
&lt;head&gt;

&lt;title&gt;<span class="text">Link and pseudo-classes</span>&lt;/title&gt;

&lt;<span class="text">!-- Embedded Styles --</span>&gt;
&lt;style type="text/css"&gt;
a:link
{
color: #339966;
}

a:visited
{
color: #00FFFF;
}

a:hover
{
color: #FF0000;
}

a:active
{
color: #FF00FF;
}

&lt;/style&gt;

&lt;/head&gt;

&lt;body&gt;
&lt;p&gt;
&lt;a href="#"&gt;A Link&lt;/a&gt; <span class="text">Lorem ipsum dolor sit amet,
consectetuer adipiscing elit, sed</span> &lt;a href="#"&gt;diam nonummy
nibh&lt;/a&gt; <span class="text">euismod tincidunt ut laoreet dolore magna aliquam
erat volutpat.</span>
&lt;/p&gt;</pre>
<p><a class="pc" href="#">A Link</a> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed <a class="pc" href="#2">diam nonummy nibh</a> euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>
<p>You can see how the styles effect the links. You can also combine these anchor CSS pseudo-classes with regular CSS classes. This can help you style links differently throughout the page.</p>
<pre>a.className:link, a.className:visited
{
color: #ff0000;
text-decoration: none;
}

a.className:hover, a.className:active
{
color: #00ff00;
text-decoration: underline;
}</pre>
<p>The above CSS shows you how to add a class name to the pseudo-classes and how to style multiple elements at the same time. <strong>className</strong> can be whatever you want to name your class. You can put the :link and :visited pseudo-classes together by adding a comma between declarations. The HTML would look like this:</p>
<pre>&lt;p&gt;
&lt;a class="className" href="#"&gt;A Link&lt;/a&gt; <span class="text">Lorem ipsum
dolor sit amet, consectetuer adipiscing elit,
sed</span> &lt;a class="className" href="#"&gt;diam nonummy nibh&lt;/a&gt; <span class="text">
euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</span>
&lt;/p&gt;</pre>
<p>All you need to do is add <strong>class="className"</strong> to the anchor tag.</p>
<p>
<a class="className" href="#">A Link</a> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed <a class="className" href="#">diam nonummy nibh</a> euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
</p>
<p>Styling links using CSS is easy &#8211; just remember to put the pseudo-classes in the correct order &#8211; :link, :visited, :hover, :active.</p>
<p><a href="img/pseudo/linkpseudo.html" target="_blank" >The HTML</a></p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=48&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/css/css-tip-using-link-anchor-pseudo-classes/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>CSS Tip &#8211; Different Color Borders</title>
		<link>http://freeyourdesign.com/css/css-tip-different-color-borders/</link>
		<comments>http://freeyourdesign.com/css/css-tip-different-color-borders/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 11:50:45 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/?p=47</guid>
		<description><![CDATA[A quick CSS tip. Don't want your css border to have the same color for every side. Well, you can make each side have a different color &#8211; it's easy. .exampleBox { width: 100px; height: 100px; border: 3px solid #000000; border-color: #ff00ff #00ff00 #0000ff #00ffff; } Some text in the box Let's take a closer [...]]]></description>
			<content:encoded><![CDATA[<p>A quick <a href="http://freeyourdesign.com/tag/css/">CSS</a> tip. Don't want your css border to have the same color for every side. Well, you can make each side have a different color &#8211; it's easy.</p>
<pre>.exampleBox
{
width: 100px;
height: 100px;
border: 3px solid #000000;
border-color: #ff00ff #00ff00 #0000ff #00ffff;
}</pre>
<p style="margin-left: 60px; width:100px; height: 100px; border: 3px solid #000; border-color:#ff00ff #00ff00 #0000ff #00ffff;">Some text in the box</p>
<p>Let's take a closer look at the css border properties. We start off by creating a <strong>border:</strong> that has a 3px 'stroke' that is solid and the color black. The next property we use is <strong>border-color:</strong>. The format here is TOP, RIGHT, BOTTOM, LEFT &#8211; or clockwise around the square starting from the top. Even though we set a color in the <strong>border:</strong> property, we put <strong>border-color</strong> below it which gives it precedence &#8211; or it 'overwrites' the border's color.</p>
<p>Need the HTML &#8211; I used an <a href="http://freeyourdesign.com/the-basics/the-basics-learning-css-where-styles-go/">embedded stylesheet</a> here, but this will work the same in an <a href="http://freeyourdesign.com/the-basics/the-basics-learning-css-where-styles-go/">external stylesheet</a>.</p>
<pre>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;<span class="text">CSS Different Colored Border</span>&lt;/title&gt;

&lt;style type="text/css"&gt;
.exampleBox
{
width: 100px;
height: 100px;
border: 3px solid #000;
border-color: #ff00ff #00ff00 #0000ff #00ffff;
}
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;div class="box"&gt;
&lt;p&gt;
<span class="text">Some text in the the box</span>
&lt;/p&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=47&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/css/css-tip-different-color-borders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Download Custom Textfield Search Field Backgrounds</title>
		<link>http://freeyourdesign.com/resources/free-download-custom-textfield-search-field-backgrounds/</link>
		<comments>http://freeyourdesign.com/resources/free-download-custom-textfield-search-field-backgrounds/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 11:40:59 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[resources]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[free stuff]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/?p=44</guid>
		<description><![CDATA[We got an idea on how to implement custom textfields in CSS and HTML in an earlier post. So, I went ahead and put together a few free textfield or search field background images. These are just some examples to give you an idea of what you can create. I made them in Illustrator and [...]]]></description>
			<content:encoded><![CDATA[<p>We got an idea on how to implement <a href="http://freeyourdesign.com/css/css-custom-search-field-or-textfield/">custom textfields in CSS and HTML</a> in an earlier post. So, I went ahead and put together a few free textfield or search field background images. These are just some examples to give you an idea of what you can create. I made them in Illustrator and they are <a href="http://freeyourdesign.com/tag/free-stuff/">free</a>. I have also included the HTML and CSS for each image as a reference. The download below comes with png files, gif files, the CSS, the HTML, and the Illustrator file. Everything you need to get started.</p>
<p><a href="http://freeyourdesign.com/img/tfields/textfield1.html" target="_blank">HTML EXAMPLE</a></p>
<p style="text-align: center"><a href="http://freeyourdesign.com/img/tfields/tfields.zip"><img src="http://freeyourdesign.com/images/dload.gif" alt="download" style="border: medium none " /></a><br />
Download Files</p>
<p><img src="http://freeyourdesign.com/img/tfields/tfields.gif" alt="custom text field images" style="border:none;"/></p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=44&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/resources/free-download-custom-textfield-search-field-backgrounds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Custom Search Field or Textfield</title>
		<link>http://freeyourdesign.com/css/css-custom-search-field-or-textfield/</link>
		<comments>http://freeyourdesign.com/css/css-custom-search-field-or-textfield/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 11:47:42 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/?p=41</guid>
		<description><![CDATA[Tired of those normal old text field boxes? Well, we are going to create our own custom text field. You can use it on a form or for your search field on your blog. We will start out by simply using CSS to customize the color of the text field's background and border. It's simple, [...]]]></description>
			<content:encoded><![CDATA[<p>Tired of those normal old text field boxes? Well, we are going to create our own custom text field. You can use it on a form or for your search field on your blog. We will start out by simply using CSS to customize the color of the text field's background and border. It's simple, but it can make a big difference and help your search field or form fit in with the design of your site.<br />
<span id="more-41"></span></p>
<h3>Simple Text Field Styling with CSS</h3>
<p>We will start with the HTML. Setup you basic shell for a HTML file and add the <strong>form</strong> and <strong>input</strong> tags in between the body tags.</p>
<pre>&lt;html&gt;
&lt;head&gt;

&lt;title&gt;<span class="text">CSS Custom Text Field</span>&lt;/title&gt;

&lt;link href="<span class="text">style.css</span>" type="<span class="text">text/css</span>" rel="<span class="text">stylesheet</span>" /&gt;

&lt;/head&gt;

&lt;body&gt;
&lt;form&gt;
&lt;input type="<span class="text">text</span>" name="<span class="text">field</span>" class="<span class="text">textInput</span>" /&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Notice that in the <strong>input</strong> tag we are using a <strong>type</strong> of <strong>field</strong> &#8211; which creates a text field. The name can be whatever you would like. Then we add <strong>class="textInput"</strong>. This connects us to the class <strong>.textInput</strong> in our <strong>CSS file</strong>. The name of the class can be whatever you want.</p>
<p>Now for the CSS.</p>
<pre><span class="text">/* CSS Document */</span>
.textInput
{
border: 1px solid #ff0000;
background: #555555;
color: #ffffff;
font-size: 1.1em;
}</pre>
<p><strong>border</strong> &#8211; used to change the style of the border around the text field. Here I changed it to a red color. You can use border to change the thickness, border style (like dashed or dotted), and the color.</p>
<p><strong>background</strong> &#8211; changes the background color of the text field (we will use an image later). The default background is white.</p>
<p><strong>color</strong> &#8211; changes the color of the font. The default is black. I changed it to white.</p>
<p><strong>font-size</strong> &#8211; changes the size of the font which will increase/decrease the size of the text field.</p>
<p>Obviously, you can use other properties to customize the text field. These are some of the more commonly used.</p>
<p><a href="http://freeyourdesign.com/images/csstf/ti.html" target="blank" >The HTML</a><br />
<a href="http://freeyourdesign.com/images/csstf/style.css" target="blank" >The CSS</a></p>
<form>
<input class="textInput1" name="field" type="text" />
</form>
<p></p>
<h3>CSS with Image Text Field Customization</h3>
<p>For even more customization you can add a background image behind the text field. We need to add a <strong>div</strong> and <strong>class</strong> around the <strong>input</strong> tag in the HTML.</p>
<pre>&lt;form&gt;
&lt;div class="<span class="text">fieldHolder</span>"&gt;
&lt;input type="<span class="text">text</span>" name="<span class="text">field</span>" class="<span class="text">textInput</span>" /&gt;
&lt;/div&gt;
&lt;/form&gt;</pre>
<p>This new class <strong>fieldHolder</strong> will hold the text field and the background image we want to use. We will also be changing up <strong>textInput</strong>.</p>
<pre>
.fieldHolder
{
	width: 182px;
	height: 27px;
	background: url(tfbg2.gif) no-repeat;
	float: left;
}

.textInput2
{
	width: 170px;
	height: 22px;
	background: none;
	border: none;
	color: #000000;
	margin-top: 5px;
	margin-left: 5px;
}
</pre>
<p>First off, here is the image I am using &#8211; it needs to be saved to the same folder as you HTML and CSS file.<br />
<img src="http://freeyourdesign.com/images/csstf/tfbg2.gif" alt="bg" style="border:none;" /><br />
(right-click save as/save image as)</p>
<p>Back to the CSS.<br />
<strong>.fieldHolder</strong><br />
<strong>width</strong> &#8211; this is the width of the image we are using.<br />
<strong>height</strong> &#8211; this is the height of the image we are using.<br />
<strong>background</strong> &#8211; linking to the background image and no-repeat.<br />
<strong>float</strong> &#8211; left, this is optional. It is needed if you want to line up forms side by side (if you do this you might need to add margin-right to space out the fields).</p>
<p><strong>.textInput</strong> &#8211; styles for the text field<br />
<strong>width</strong> &#8211; width of our text field.<br />
<strong>height</strong> &#8211; height of our text field.<br />
<strong>background</strong> &#8211; no background &#8211; we want to use the .fileHolder background.<br />
<strong>border</strong> &#8211; no border.<br />
<strong>color</strong> &#8211; color of our font/text.<br />
<strong>margin-top</strong> &#8211; this is important and deals with getting the cursor to show up inside the 'text field' area in our background image. Because we just made an image we need to tell the cursor were to go. This could be different depending on the image you use.<br />
<strong>margin-left</strong> &#8211; same as above &#8211; only position the cursor left or right.</p>
<p><a href="http://freeyourdesign.com/images/csstf/ti.html" target="blank" >The HTML</a><br />
<a href="http://freeyourdesign.com/images/csstf/style.css" target="blank" >The CSS</a></p>
<form>
<div class="fieldHolder2">
<input type="text" name="field" class="textInput2" />
	</div>
</form>
<p>The good thing about encasing the text field inside of fieldHolder is that you can adjust the position of the text field by changing the margins inside of fieldHolder and not have to worry about the cursor position. Once it is set within .textInput you shouldn't have to mess with it.</p>
<p>You can pretty much use whatever background image you can come up with. You will just have to adjust the <strong>margin-top</strong> and <strong>margin-left</strong> inside of the <strong>.textInput</strong> class to position the cursor correctly.</p>
<form>
<div class="fieldHolder3">
<input type="text" name="field" class="textInput3" />
	</div>
</form>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=41&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/css/css-custom-search-field-or-textfield/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>CSS Gradient Background Fade</title>
		<link>http://freeyourdesign.com/css/css-gradient-background-fade/</link>
		<comments>http://freeyourdesign.com/css/css-gradient-background-fade/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 11:41:22 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/?p=36</guid>
		<description><![CDATA[A quick and simple way to use a gradient background for you web site. Make the gradient look like it is fading out with no weird lines &#8211; just smoothness. It's really quite easy to do using CSS to edit the body property of the HTML document. We will start off with the HTML. So, [...]]]></description>
			<content:encoded><![CDATA[<p>A quick and simple way to use a gradient background for you web site. Make the gradient look like it is fading out with no weird lines &#8211; just smoothness. It's really quite easy to do using CSS to edit the body property of the HTML document.</p>
<p>We will start off with the HTML. So, open a new document &#8211; I'll be saving mine as fade.html. Get the basic HTML shell written out and go ahead and add a link to a stylesheet &#8211; style.css. Now here is how we will layout the page for presentation purposes.</p>
<pre>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;<span class="text">Gradient Background Fade</span>&lt;/title&gt;
<span class="text">link to stylesheet</span>
&lt;link href="style.css" rel="stylesheet" type="text/css" media="all" /&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id="main"&gt;<span class="text"> main container</span>
&lt;p&gt;<span class="text">Place holder text</span>&lt;/p&gt;

&lt;div id="leftSide"&gt;<span class="text">left demonstration </span>
&lt;/div&gt;

&lt;div id="rightSide"&gt; <span class="text"> right demonstration </span>
&lt;h1&gt;<span class="text">Right Section</span>&lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><span style="font-size: 0.7em">Note: if you copy and paste this you need to take out the 'main container', 'left demonstration', 'right demonstration' text &#8211; they are not to be in the code they are just comments I made.</span></p>
<p>Just a quick layout to show a couple uses of the gradient fade. Before we get to the CSS we need to make(or get) an image for the background. You can use Photoshop to create a simple gradient</p>
<p>In Photoshop create a new file &#8211; I'll make mine 10px wide by 400px high.<br />
Pick the colors you want to use for your gradient &#8211; Take note of whatever the bottom color of the gradient is &#8211; we will need it later. If you double click on the color in the Tools pallet you can copy the hexadecimal number (# followed by six digits). Fill your file with the gradient and save it. Or right-click and save the images I used.<br />
<img src="http://freeyourdesign.com/images/fade/img/bg3.gif" alt="gradient" /> <img src="http://freeyourdesign.com/images/fade/img/bg.gif" alt="gradient" /> <img src="http://freeyourdesign.com/images/fade/img/rightbg.gif" alt="gradient" /></p>
<p>Now to the CSS</p>
<pre>body
{
<span class="text">/*the color here #2c2721 was the bottom color
of my gradient image - a seamless fade*/</span>
background: #2c2721 url(img/bg3.gif) repeat-x;
}

<span class="text">/*just a container to hold things*/</span>
#main
{
	margin: auto;
	width: 700px;
	height: 600px;
	background: #ffffff;
}

#main p
{
	padding: 10px;
}

<span class="text">/*the area to the right with a gradient fade*/</span>
#rightSide
{
	float: right;
	margin-right: 10px;
	height: 500px;
	width: 200px;
        <span class="text">/*#ffffff is the bottom color in gradient*/</span>
	background: #ffffff url(img/rightbg.gif) repeat-x;
}

#rightSide h1
{
	color: #fff;
	margin-left: 5px;
}

<span class="text">/*left area with fade example*/</span>
#leftSide
{
	float: left;
	height: 500px;
	width: 200px;
        <span class="text">/*#ffffff is bottom color in gradient*/</span>
	background: #ffffff url(img/bg.gif) repeat-x;
	margin-left: 10px;
}
</pre>
<p>All the extra CSS is just formatting to show the examples. The <strong>background:</strong> is the property we need to worry about to make the gradient fade work. Use <strong>repeat-x</strong> to make it show up all the way across the page, but not repeat down the page.</p>
<p><a href="http://freeyourdesign.com/images/fade/fade.html" target="blank">The HTML</a><br />
<a href="http://freeyourdesign.com/images/fade/style.css" target="blank">The CSS</a></p>
<p style="text-align: center"><a href="http://freeyourdesign.com/images/fade/fade.zip"><img src="http://freeyourdesign.com/images/dload.gif" alt="download" style="border: medium none " /></a><br />
Download HTML, CSS, and Images</p>
<p>Not the prettiest example, but you get the idea &#8211; pick the colors you want and make it look good.<br />
<img src="http://freeyourdesign.com/images/fade/img/example.gif" alt="example" /></p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=36&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/css/css-gradient-background-fade/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>CSS &#8211; Make Text Wrap Around Image Using Float</title>
		<link>http://freeyourdesign.com/css/css-make-text-wrap-around-image-using-float/</link>
		<comments>http://freeyourdesign.com/css/css-make-text-wrap-around-image-using-float/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 12:39:09 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[css images]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/css/css-make-text-wrap-around-image-using-float/</guid>
		<description><![CDATA[Using CSS we will add a class to the img tag so that our text will wrap nicely around our image. This can be done fairly quickly and can really make your content look better. I recommend adding these classes to every CSS file &#8211; or if you have a base CSS file that you [...]]]></description>
			<content:encoded><![CDATA[<p>Using <a href="http://freeyourdesign.com/tag/css/">CSS</a> we will add a class to the <strong>img</strong> tag so that our text will wrap nicely around our image. This can be done fairly quickly and can really make your content look better. I recommend adding these classes to every CSS file &#8211; or if you have a base CSS file that you always use put these in it.</p>
<p><span id="more-28"></span></p>
<h3>The HTML</h3>
<p>First, we are going to set up our <a href="http://freeyourdesign.com/tag/html/">HTML</a> &#8211; I'm just using placeholder text and a random image. You can copy my text or search Google for placeholder text.</p>
<pre>
&lt;html&gt;

&lt;head&gt;&lt;title&gt;<span class="text">CSS Image Wrap</span>&lt;/title&gt;
&lt;link href="style.css" rel="stylesheet"
type="text/css"media="screen" /&gt;

&lt;/head&gt;

&lt;body&gt;
&lt;p&gt;
&lt;img src="http://freeyourdesign.com/images/flag1.gif"
alt="temp" class="left" /&gt;
<span class="text">Lorem "ipsum" dolor sit amet, consectetuer adipiscing elit, sed
diam nonummy nibh euismod tincidunt ut laoreet dolore magna
aliquam erat volutpat. Ut wisi enim ad minim veniam, quis
nostrud exerci tation ullamcorper suscipit lobortis nisl ut
aliquip ex ea commodo consequat. Duis autem vel eum iriure
dolor in hendrerit in vulputate velit esse molestie consequat,
vel illum dolore eu feugiat nulla facilisis at vero eros et
accumsan et iusto odio dignissim qui blandit praesent luptatum
zzril delenit augue duis dolore te feugait nulla facilisi</span>.&lt;/p&gt;

&lt;/body&gt;

&lt;/html&gt;</pre>
<p>Notice the <strong>class="left"</strong> inside the <strong>img</strong> tag. That's what we will create in our CSS file.</p>
<h3>The CSS File</h3>
<p>Make a new .css file &#8211; you can just use Notepad and save as .css instead of .txt</p>
<p>Name it style.css</p>
<pre>
<span class="text">/*float left*/</span>
.left
{
        float: left; <span class="text">/*left in our text*/</span>
        margin: 3px; <span class="text">/*space around the image*/</span>
}<span class="text">

/*float right*/</span>
.right
{
         float: right; <span class="text">/*right in our text*/</span>
         margin: 3px; <span class="text">/*space around the image*/</span>
}</pre>
<p>That's all we need for our css file. If you use <strong>class="left"</strong> in the <strong>img</strong> tag the image will be aligned to the left within the text and using <strong>class="right"</strong> will align the image to the right. Pretty easy and you'll use it all the time.</p>
<p>Download: (right-click save as)<br />
<a href="http://freeyourdesign.com/images/cssimgfloat/float.html" target="_blank">The HTML</a><br />
<a href="http://freeyourdesign.com/images/cssimgfloat/style.css" target="_blank">The CSS</a></p>
<h3>No Float Example</h3>
<p><img src="http://freeyourdesign.com/images/flag1.gif" alt="temp" />Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>
<h3>Float Left Example</h3>
<p><img src="http://freeyourdesign.com/images/flag1.gif" class="left" alt="temp" />Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>
<h3>Float Right Example</h3>
<p><img src="http://freeyourdesign.com/images/flag1.gif" class="right" alt="temp" />Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=28&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/css/css-make-text-wrap-around-image-using-float/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSS Horizontal Menu</title>
		<link>http://freeyourdesign.com/css/css-horizontal-menu/</link>
		<comments>http://freeyourdesign.com/css/css-horizontal-menu/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 12:51:56 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[css menu]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/css/css-horizontal-menu/</guid>
		<description><![CDATA[Let's use CSS to make a Horizontal Menu. We will be using and styling an unordered list for our menu. There's not a lot to it and the code has comments by each line &#8211; so just follow along and you'll have your own menu in no time. So, make a new .css file and [...]]]></description>
			<content:encoded><![CDATA[<p>Let's use CSS to make a Horizontal Menu. We will be using and styling an unordered list for our menu. There's not a lot to it and the code has comments by each line &#8211; so just follow along and you'll have your own menu in no time.<br />
So, make a new .css file and name it style.css &#8211; You can use notepad and save the file as .css instead of .txt</p>
<h3>Main Container</h3>
<p>We start off with our main styling container. In it we will setup styles like the width of our menu &#8211; the background color &#8211; font size &#8211; and tell it we don't want any bullets next to our list items.</p>
<pre>
<span class="text">/* main container - ul id="menu" */
</span>#menu
{
	margin: 0; <span class="text">/* reset the margins */</span>
	padding: 0; <span class="text">/* reset the padding */</span>
	width: auto; <span class="text">/* this size depends on your menu */</span>
	float: left; <span class="text">/* line things up */</span>
	font-size: 1.4em; <span class="text">/* increase the font size a bit */</span>
	background: #656565; <span class="text">/* any background color you want */</span>
	list-style: none; <span class="text">/* no bullets on our list items */</span>
}</pre>
<h3>The List Items</h3>
<p>Now we will style the list items. If you have items in your menu that aren't linked then this is where you would add any extra formatting for those. Most of the time everything in a menu is linked so all we need to do for our menu is tell it to display our items horizontally.</p>
<pre>
<span class="text">/* list elements */</span>
#menu li
{
	display: inline; <span class="text">/* make it horizontal */</span>
}</pre>
<h3>Our Links</h3>
<p>Let's style our links. This is where we put in formatting like the color of our links &#8211; text decorations &#8211; and anything else you want. The padding here is important and is used to give extra space around the words &#8211; without it the menu would take the height of just slightly more than the text. The a:visited is added to make the links stay the same color even if the user has already visited a link.</p>
<pre>
<span class="text">/* style our links */</span>
#menu li a:link, #menu li a:visited
{
	float: left; <span class="text">/* line things up */</span>
	color: #ffffff; <span class="text">/* the color of our linked items */</span>
	padding: 10px 10px; <span class="text">/* spread it out */</span>
	text-decoration: none; <span class="text">/* no underline */</span><span class="text">/* white border to the right of link</span>
	*/
	border-right: 1px solid #ffffff;
}</pre>
<h3>Link Hover</h3>
<p>Now we format how the link will look when our mouse hovers over it.</p>
<pre>
<span class="text">/* style link hover */</span>
<span class="text">/* .active_link class - optional -</span>
styles the current pages link */
#menu li a:hover, #menu li a:active, #menu .active_link
{
	text-decoration: none; <span class="text">/* no underline */</span>
<span class="text">	/* color to change to when we hover over link */</span>
	background: #009900;
}</pre>
<h3>Clear The Left Margin</h3>
<p>We had float: left above so we need to clear out the left margin so the rest of our page items will fall under our menu instead of to the right of it.</p>
<pre>
<span class="text">/* optional - but a good class to have in every stylesheet */</span>
<span class="text">/* we had float:left; above so in order to clear out the</span>
left margin and allow elements on our page to start under
our menu we should clear the left margin after we creat the menu
*/
.clearLeft
{
	clear: left;
}</pre>
<h3>The HTML</h3>
<p>Open a new HTML file and add a link to our style sheet somewhere within the &lt;head&gt;&lt;/head&gt; tags.</p>
<pre>
&lt;head&gt;
&lt;link href="sytle.css" rel="stylesheet" type="text/css"
media="screen" / &gt;
&lt;/head&gt;</pre>
<p>Within the &lt;body&gt; tags we will setup our menu. Remember we are using an unordered list for our menu.</p>
<pre><span class="text">&lt;!-- use an unordered list --&gt;</span>
&lt;ul id="menu"&gt;
	<span class="text">&lt;!-- each link goes in a list element --&gt;
	&lt;!-- class active_link would be moved to the link of
		whatever page you are on --&gt;
	&lt;!-- so if you if this was the About Us page you would
		move the class="active_link"
		within the About Us a href --&gt;</span>
	&lt;li&gt;&lt;a href="csshzmenu.html" class="active_link"&gt;<span class="text">Home</span>&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;<span class="text">About Us</span>&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;<span class="text">Link 3</span>&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;<span class="text">Link 4</span>&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
<span class="text">&lt;-- clear out left margin -
       see stylesheet for more info --&gt;</span>
&lt;div class="clearLeft"&gt;&lt;/div&gt;</pre>
<p>There you have it &#8211; customize it to your liking and add it to your site. Here are the files for download (right-click save as)<br />
<a href="http://freeyourdesign.com/images/files/hzmenu/csshzmenu.html">THE HTML</a><br />
<a href="http://freeyourdesign.com/images/files/hzmenu/style.css">THE CSS</a></p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=23&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/css/css-horizontal-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Basics &#8211; Learning CSS &#8211; Where Styles Go</title>
		<link>http://freeyourdesign.com/the-basics/the-basics-learning-css-where-styles-go/</link>
		<comments>http://freeyourdesign.com/the-basics/the-basics-learning-css-where-styles-go/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 17:57:40 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[the basics]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/the-basics/the-basics-learning-css-where-styles-go/</guid>
		<description><![CDATA[CSS &#8211; Cascading Style Sheets &#8211; it's what you use these days to 'style' your Web pages. CSS is used to change font colors, and backgrounds, borders, format lists, links, etc. It is also used to arrange elements on the page and form certain page layouts. It use to be that Tables or Frames were [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://freeyourdesign.com/the-basics/the-basics-learning-css-where-styles-go/"><img src="http://freeyourdesign.com/images/flag1.gif" class="left" alt="flag" /></a>CSS &#8211; Cascading Style Sheets &#8211; it's what you use these days to 'style' your Web pages. CSS is used to change font colors, and backgrounds, borders, format lists, links, etc. It is also used to arrange elements on the page and form certain page layouts.</p>
<p>It use to be that Tables or Frames were used when making a layout for a Web page, but now CSS is the way to go. Tables really are no longer the accepted way to create web layouts. Every thing can be done with CSS and with cleaner and less code. Plus, CSS makes it very easy to format all the pages in your site. Actually, that's the main purpose of CSS.</p>
<p><span id="more-19"></span></p>
<h3>Where Does CSS Go</h3>
<p>There are three ways to add CSS to your Web page.</p>
<p>CSS can be put into a separate, or external .css file, and be linked to via a statement in the head section of your HTML page</p>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Learning CSS&lt;/title&gt;
&lt;link rel="stylesheet" type="text/css" href="styles.css" /&gt;
&lt;/head&gt;
&lt;body&gt;
...</pre>
<p>You can also have an embedded,  or internal, style sheet which is put right into the head section of the HTML page</p>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Learning CSS&lt;/title&gt;
&lt;style type="text/css"&gt;
your styles go here
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
...</pre>
<p>Or you can use inline styles. These are used inside the body of HTML to style a single element.</p>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Learning CSS&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p style="color:#999999; border: 1px solid #000000;"&gt;
Some paragraph text
&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>We will learn what color and border do later.</p>
<p>You can actually use all three of these methods in a single page. Sometimes you will have elements on a page that you want to be styled differently than all the other pages. That's where the embedded and inline styles can come into play. If you are using all three, you have to pay attention to the order you set things up. So, usually you put in your <strong>external</strong> style sheet link first. Then you do your <strong>embedded</strong> style sheet. Finally, you can add <strong>inline</strong> styles to elements. Basically, the <strong>inline</strong> style will have the <strong>highest</strong> priority &#8211; or it will override anything in the external or embedded style sheet. The <strong>embedded</strong> style sheet will have priority over the external style sheet as long as it is after the link to the external style sheet.</p>
<p>So, now we know where the styles go &#8211; next time we will learn about the syntax of CSS.</p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=19&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/the-basics/the-basics-learning-css-where-styles-go/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

