<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>CSS Juice</title>
	
	<link>http://www.cssjuice.com</link>
	<description>CSS Juice is a design weblog that aims to inspire creativity by sharing innovative resources and websites to bloggers, freelancers and web designers.</description>
	<pubDate>Thu, 11 Sep 2008 15:19:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<image><link>http://cssjuice.com</link><url>http://cssjuice.com/cssjuice-feed.png</url><title>CSS Juice</title></image><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/cssjuice" type="application/rss+xml" /><feedburner:emailServiceId>1057567</feedburner:emailServiceId><feedburner:feedburnerHostname>http://www.feedburner.com</feedburner:feedburnerHostname><item>
		<title>Cheat Sheets</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/389736835/</link>
		<comments>http://www.cssjuice.com/cheat-sheets/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 15:19:00 +0000</pubDate>
		<dc:creator>Derald</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Resources]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/cheat-sheets/</guid>
		<description><![CDATA[Are cheat sheets beneficial to you designers?  So people will say no, while others may say yes.  As a designer should you use cheat sheets?

After finding an article about cheat sheets, I got to thinking, are there any negative effects of using cheat sheets?  Of course the first one that I thought [...]]]></description>
			<content:encoded><![CDATA[<p>Are cheat sheets beneficial to you designers?  So people will say no, while others may say yes.  As a designer should you use cheat sheets?</p>
<p><span id="more-1032"></span><br />
After finding an <a href="http://sixrevisions.com/resources/cheat_sheets_for_web_designers/" title="Cheat Sheets" target="_blank">article</a> about cheat sheets, I got to thinking, are there any negative effects of using cheat sheets?  Of course the first one that I thought of was that as a designer you should really learn the syntax of the language you are designing/coding with.  Cheat sheets can become a crutch which in the long run may hurt you as a designer.  Another negative effect of using a cheat sheet is security issues.  When using languages such as PHP, ASP, and other web based languages a cheat sheet does not provide any information on how secure the syntax is list is.  It can provide information on how secure it is via a ranking system, but that does not show you how much damage can happen if exploited.</p>
<p>Using a cheat sheet is does have it&#8217;s benefits.  There are parts of languages that are not used a lot, for example opacity in CSS.  This can be a very useful attribute if you need to use it.  For attributes that you don&#8217;t use a whole lot cheat sheets can be very beneficial.  They can help you save time when you are looking for a solution to an issue you may have.  Other times, it helps to have cheat sheets that will tell you what browsers support what elements of languages.  Not all browsers are alike, and knowing that Firefox does not support transitions like Internet Explorer does will save you a lot of headaches trying to get it to work.  Another benefit to cheat sheets is that you don&#8217;t have to remember how to remember a lot of stuff, which is why cheat sheets are around in the first place.  Remember all of the HTML code for characters such as a greater than symbol is useful if you them a lot, but if you don&#8217;t it is simpler to just use a cheat sheet.</p>
<p>Over all cheat sheets have their benefits and their negative effects on any designer.  For things that you use everyday you should not use cheat sheets, but for those uncommon attributes that are not used, then a cheat sheet can be beneficial, as long as it does not provide a security exploit.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=Bn0nL"><img src="http://feeds.feedburner.com/~f/cssjuice?i=Bn0nL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=8oTLL"><img src="http://feeds.feedburner.com/~f/cssjuice?i=8oTLL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=Y04qL"><img src="http://feeds.feedburner.com/~f/cssjuice?i=Y04qL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=bKJgl"><img src="http://feeds.feedburner.com/~f/cssjuice?i=bKJgl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=mEndl"><img src="http://feeds.feedburner.com/~f/cssjuice?i=mEndl" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/389736835" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/cheat-sheets/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Fcheat-sheets%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/cheat-sheets/</feedburner:origLink></item>
		<item>
		<title>Basic Select Menus Modifications</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/384158590/</link>
		<comments>http://www.cssjuice.com/basic-select-menus-modifications/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 12:56:05 +0000</pubDate>
		<dc:creator>Derald</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/basic-select-menus-modifications/</guid>
		<description><![CDATA[Select menus, also known as drop down menus, are one of the elements in HTML that most people don&#8217;t modify at all.  I know that some select menus can be confusing as they get longer.  One of the things that I like to do is to alternate the colors of the selections.  [...]]]></description>
			<content:encoded><![CDATA[<p>Select menus, also known as drop down menus, are one of the elements in HTML that most people don&#8217;t modify at all.  I know that some select menus can be confusing as they get longer.  One of the things that I like to do is to alternate the colors of the selections.  This gives the select element a little bit of style especially when you have more then one choice showing, and can be use as color combination to blend into your site&#8217;s theme.</p>
<p><span id="more-1031"></span></p>
<p>This modification is very simple, and can be very effective.  We are going to apply this to a select element that has more then one option showing to take advantage of the effect.  If you only have one option showing, as in a true drop down menu, then the change is not as effective. If you don&#8217;t remember how to show more then one option in a select element, just add a size attribute inside the select element&#8217;s opening tags.  Here is how the select element should appear.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff">&lt;select size=&#8221;4&#8243;&gt;<br />
&lt;option class=&#8221;odd&#8221;&gt;Option 1&lt;/option&gt;<br />
&lt;option class=&#8221;even&#8221;&gt;Option 2&lt;/option&gt;<br />
&lt;option class=&#8221;odd&#8221;&gt;Option 3&lt;/option&gt;<br />
&lt;option class=&#8221;even&#8221;&gt;Option 4&lt;/option&gt;<br />
&lt;option class=&#8221;odd&#8221;&gt;Option 5&lt;/option&gt;<br />
&lt;option class=&#8221;even&#8221;&gt;Option 6&lt;/option&gt;<br />
&lt;/select&gt;</p>
<p>The code should look similar to you if you have used the select tag before, only thing that we have done to this HTML code is to add a class attribute to each of the options, and set a size of five to the select menu.  We see that the classes alternate as either odd or even.  Now all we need to do is create the CSS to apply to the classes.</p>
<p>The CSS will be basic, just like the HTML.  For the even class we are going to have a gray background with a white foreground color, and the opposite for the odd classes.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> &lt;style&gt;<br />
select .even{<br />
background-color: gray;<br />
color: white;<br />
}<br />
select .odd {<br />
background-color: white;<br />
color: gray;<br />
}</p>
<p>That is all we need.  We now have a more professional looking select menu, which can be changed to blend into the style of our website.  You can view the example above, and another example that uses other alternating colors <a href="http://images.ientry.com/cssjuice/basic_select.htm" title="Basic Select Menus Modifications Examples">here</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=g3XJL"><img src="http://feeds.feedburner.com/~f/cssjuice?i=g3XJL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=YT25L"><img src="http://feeds.feedburner.com/~f/cssjuice?i=YT25L" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=Y2xnL"><img src="http://feeds.feedburner.com/~f/cssjuice?i=Y2xnL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=S53Ol"><img src="http://feeds.feedburner.com/~f/cssjuice?i=S53Ol" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=1E91l"><img src="http://feeds.feedburner.com/~f/cssjuice?i=1E91l" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/384158590" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/basic-select-menus-modifications/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Fbasic-select-menus-modifications%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/basic-select-menus-modifications/</feedburner:origLink></item>
		<item>
		<title>Firebug alternatives</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/374574146/</link>
		<comments>http://www.cssjuice.com/firebug-alternatives/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 20:23:41 +0000</pubDate>
		<dc:creator>Derald</dc:creator>
		
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/firebug-alternatives/</guid>
		<description><![CDATA[Most designers have heard about Firebug for Firefox.  But what is you are a designer that does not use Firefox, are there any alternatives for Internet Explorer or Opera?  Well there are alternatives for each.

Internet Explorer
If you are a designer that likes using Internet Explore, or like a lot of designers you are [...]]]></description>
			<content:encoded><![CDATA[<p>Most designers have heard about <a href="https://addons.mozilla.org/en-US/firefox/addon/1843" title="FireBug FireFox add-on">Firebug</a> for Firefox.  But what is you are a designer that does not use Firefox, are there any alternatives for Internet Explorer or Opera?  Well there are alternatives for each.</p>
<p><span id="more-1030"></span></p>
<h2><strong>Internet Explorer</strong></h2>
<p>If you are a designer that likes using Internet Explore, or like a lot of designers you are forced to design for IE since a large amount of web surfers still use it. There are a lot of alternative for Firebug. The Microsoft Developer Network has a blog entry just for such tools. Like most products for anything created by Windows, some of the tools do cost money, but Microsoft has created a similar tool that you can use. The <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&amp;displaylang=en" title="Internet Explore Developer Toolbar">Internet Explorer Developer Toolbar</a> allows you to much of the same things that Firebug does also. Here is a list of things you can use the Internet Explorer Developer Toolbar for according to the download site:</p>
<ul>
<li>Explore and modify the document object model (DOM) of a Web page.</li>
<li>Locate and select specific elements on a Web page through a variety of techniques.</li>
<li>Selectively disable Internet Explorer settings.</li>
<li>View HTML object class names, ID&#8217;s, and details such as link paths, tab index values, and access keys.</li>
<li> Outline tables, table cells, images, or selected tags.</li>
<li>Validate HTML, CSS, WAI, and RSS web feed links.</li>
<li>Display image dimensions, file sizes, path information, and alternate (ALT) text.</li>
<li>Immediately resize the browser window to a new resolution.</li>
<li>Selectively clear the browser cache and saved cookies. Choose from all objects or those associated with a given domain.</li>
<li>Display a fully featured design ruler to help accurately align and measure objects on your pages.</li>
<li>Find the style rules used to set specific style values on an element.</li>
<li>View the formatted and syntax colored source of HTML and CSS.</li>
</ul>
<p>There are reports that this tool was so useful that IE 8 will have it built in, instead of a separate download.  For the full list of similar tools check out the <a href="http://blogs.msdn.com/ie/archive/2007/06/22/from-microsoft-teched-2007-web-development-tools-for-internet-explorer.aspx" title="Alternative Firebug add-ons for Internet Explorer">MSDN Blogsite</a>.</p>
<h2><strong>Opera</strong></h2>
<p>Opera, unlike FireFox and Internet Explorer, has a built in developer tool since version 9.5.  This tool is called <a href="http://www.opera.com/products/dragonfly/" title="Opera's Dragonfly Development tool.">Dragonfly</a>.  To access Dragonfly, you can either press Control+Shift+I  (Mac: Control+Alt+I) or click Tools -&gt; Advance -&gt; Developer Tools.  Dragonfly looks very similar to Firebug, and has some useful features.  Unlike Firebug, Dragonfly will allow you to check sites in all open tabs, from within a single tab. This can help when you are designing a site, and you need to check the position of an elements, or you are reusing some code.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=70fGEK"><img src="http://feeds.feedburner.com/~f/cssjuice?i=70fGEK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=U6ptyK"><img src="http://feeds.feedburner.com/~f/cssjuice?i=U6ptyK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=WqiSOK"><img src="http://feeds.feedburner.com/~f/cssjuice?i=WqiSOK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=wX5nTk"><img src="http://feeds.feedburner.com/~f/cssjuice?i=wX5nTk" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=JrMGJk"><img src="http://feeds.feedburner.com/~f/cssjuice?i=JrMGJk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/374574146" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/firebug-alternatives/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Ffirebug-alternatives%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/firebug-alternatives/</feedburner:origLink></item>
		<item>
		<title>Buttons with Images</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/346028348/</link>
		<comments>http://www.cssjuice.com/buttons-with-images/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 21:15:40 +0000</pubDate>
		<dc:creator>Derald</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/buttons-with-images/</guid>
		<description><![CDATA[If you have used Live.com, one of Microsoft&#8217;s search engines, you may have noticed that the submit button for their search is not a default button in HTML.  There are two different ways you can do this with a little bit of CSS and a graphic.  To start out you may want to [...]]]></description>
			<content:encoded><![CDATA[<p>If you have used Live.com, one of Microsoft&#8217;s search engines, you may have noticed that the submit button for their search is not a default button in HTML.  There are two different ways you can do this with a little bit of CSS and a graphic.  To start out you may want to create a graphic for you to use.  I quickly create similar magnifying glass button, like the one on Live.com.  Here is what mine looks like, and the one we will be using in this tutorial.</p>
<p><img src="http://images1.ientry.com/cssjuice/search.jpg" alt="Search button" height="25" width="25" /></p>
<p><span id="more-1029"></span></p>
<p>In HTML, there are at least four ways to create a button.  There are three input types, submit, reset, and button.  There is also the button tag.  To follow HTML standards we will us both the input type button, and the button tag, although the same practice can be applied to the submit and reset button.  If you do apply the technique to either of those input types remember to  change the value of the buttons to value=&#8221;".   This will keep the words Submit, and Reset from showing up on your button.</p>
<p>Now let us look at the CSS part of the code.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> <span>.search_button{</span><br />
<span>background: url(images/search.jpg) no-repeat;</span><br />
<span>width: 25px;</span><br />
<span>height: 25px;</span><br />
<span>}</span></p>
<p>Yes, the CSS is that simple to create this effect.  The part that is most important to the effect is the background image, which we have located on the server, in this case images/search.jpg. The width and height are not needed to create the effect, but are nice to make for sure you have complete control over the button. Now for the HTML.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> <span>&lt;button class=&#8221;search_button&#8221;&gt;&lt;/button&gt;</span><br />
<span>&lt;input type=&#8221;button&#8221; class=&#8221;search_button&#8221;&gt;</span></p>
<p>Now our buttons will have the image we created on it.  This is a great visual way to direct users to your search bar.  You an also use this for such things a upload buttons where there is an arrow pointing upwards, or for downloads.  It also makes the default buttons not as boring, and allows you to design them to fit into your site.  You no longer have to design around the buttons, but you can design the buttons around your design.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=LJuE4J"><img src="http://feeds.feedburner.com/~f/cssjuice?i=LJuE4J" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=jjb8FJ"><img src="http://feeds.feedburner.com/~f/cssjuice?i=jjb8FJ" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=vCHSNJ"><img src="http://feeds.feedburner.com/~f/cssjuice?i=vCHSNJ" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=oqMfgj"><img src="http://feeds.feedburner.com/~f/cssjuice?i=oqMfgj" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=crq8Yj"><img src="http://feeds.feedburner.com/~f/cssjuice?i=crq8Yj" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/346028348" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/buttons-with-images/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Fbuttons-with-images%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/buttons-with-images/</feedburner:origLink></item>
		<item>
		<title>Hidden Tags.</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/315665752/</link>
		<comments>http://www.cssjuice.com/hidden-tags/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 20:00:12 +0000</pubDate>
		<dc:creator>Derald</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/hidden-tags/</guid>
		<description><![CDATA[When first learning about the CSS display attributes, I thought that they would not be very useful.  Especially the none value.  I thought to myself what is the purpose of coding something that you don&#8217;t want to be displayed.  I was completely wrong by thinking that.  We are going to look [...]]]></description>
			<content:encoded><![CDATA[<p>When first learning about the CSS display attributes, I thought that they would not be very useful.  Especially the none value.  I thought to myself what is the purpose of coding something that you don&#8217;t want to be displayed.  I was completely wrong by thinking that.  We are going to look at how we can use the display attribute, and a little bit of JavaScript to create an element that will hide information until the end user interacts with another element to display the hidden information.</p>
<p><span id="more-1028"></span></p>
<p>You may have seen this type of effect on sites that review movies, or video games.  With a little JavaScript code, we can create an effect that will hide spoilers from users who don&#8217;t want key parts of the movie or video game.  The first thing we need to do is create a class for the spoiler information, and apply a style to that class.  We are also going to create a class for the &#8220;button&#8221; that the user will click to display the spoiler.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"><span>.spoiler{</span><br />
<span>display: none;</span><br />
<span>width: 25%;</span><br />
<span>margin: 1%;</span><br />
<span>}</span><br />
<span>.spoiler_button{</span><br />
<span>border: outset #E4E4E4;</span><br />
<span>background-color: #E4E4E4;</span><br />
<span>}</span></p>
<p>Now that we have that finished, we can go ahead and create the HTML elements with the JavaScript that will allow us to create the effect.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff">&lt;span class=&#8221;spoiler_button&#8221; onclick=&#8221;document.getElementById(&#8217;spoiler&#8217;).style.display = &#8216;block&#8217;&#8221;&gt;Show Spoilers&lt;/span&gt;</p>
<p>If you know about JavaScript events, you can tell we are using the onclick event.  If you don&#8217;t know about JavaScript events, what this event does, is when the element is clicked the value of that element is activated.  In this case we are changing the style of the element that has the HTML ID of spoiler.  What we are changing is the value set to the display attribute, and changing the value to block.  This value will allow us to show the element on the page now.</p>
<p>Finally we need to create the element that contains the spoiler information.   This element is going to be a div tag, which will have it&#8217;s class and id values set to spoiler.  Here is that tag.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff">&lt;div class=&#8221;spoiler&#8221; id=&#8221;spoiler&#8221;&gt;There are parts of the final battles that I really liked.  When Legolas takes down the elephant like animal was really exciting.  I also love how the spirits of the dead army rush into battle at Aragon&#8217;s command.  The fight between Frodo and Gollum was well done also.  From start to finish Return of the King is action packed and entertaining.&lt;/div&gt;</p>
<p>This is a simple code that will allow you to create a very useful effect, and add a Web 2.0 feel to your site also.  If you also want to allow the user to hide the spoiler again, all you have to do is create a second &#8220;button&#8221; just like the show spoiler but instead of setting the display value to block, set the value back to none.</p>
<p>Below is an example of the code.</p>
<p><span style="border: medium outset #e4e4e4; background-color: #e4e4e4; padding-left: 5px; padding-right: 5px" onclick="document.getElementById('spoiler').style.display = 'block'">Show Spoilers</span></p>
<p style="display: none" id="spoiler" onclick="this.style.display= 'none'">There are parts of the final battles that I really liked.  When Legolas takes down the elephant like animal was really exciting.  I also love how the spirits of the dead army rush into battle at Aragon&#8217;s command.  The fight between Frodo and Gollum was well done also.  From start to finish Return of the King is action packed and enteraining.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=ZH9rHI"><img src="http://feeds.feedburner.com/~f/cssjuice?i=ZH9rHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=TVpICI"><img src="http://feeds.feedburner.com/~f/cssjuice?i=TVpICI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=yeA5nI"><img src="http://feeds.feedburner.com/~f/cssjuice?i=yeA5nI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=gcPSai"><img src="http://feeds.feedburner.com/~f/cssjuice?i=gcPSai" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=QzG4gi"><img src="http://feeds.feedburner.com/~f/cssjuice?i=QzG4gi" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/315665752" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/hidden-tags/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Fhidden-tags%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/hidden-tags/</feedburner:origLink></item>
		<item>
		<title>Light JavaScript Rollover</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/311248299/</link>
		<comments>http://www.cssjuice.com/light-javascript-rollover/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 16:15:05 +0000</pubDate>
		<dc:creator>Derald</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/light-javascript-rollover/</guid>
		<description><![CDATA[By combining both JavaScript and CSS, you can create a very nice roller over effect.  This is similar to the CSS rollover effect in previous tutorials, but with this effect, we can even use an image to create a rollover effect.

Before we get into the effect, let&#8217;s go over some of the JavaScript that [...]]]></description>
			<content:encoded><![CDATA[<p>By combining both JavaScript and CSS, you can create a very nice roller over effect.  This is similar to the CSS rollover effect in previous tutorials, but with this effect, we can even use an image to create a rollover effect.</p>
<p><span id="more-1027"></span></p>
<p>Before we get into the effect, let&#8217;s go over some of the JavaScript that we will be using to create the effect.  If you have ever used JavaScript you more then likely know about JavaScript events.  If you haven&#8217;t used JavaScript, the events will allow elements to be interactive.  The JavaScript event that we will be using is onmouseover, and onmouseout.  These events allow the element to interact with the mouse.  If the mouse touches the element, then the event onmouseover is activated.  When the mouse leaves the element then onmouseout is activated.  These events will allow us to control what part of the CSS changes when the mouse interacts with the element.  We can use the onmouseout event to reset the element back to its original state.   If I have lost you, let me give an example of what I mean.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> &lt;span onmouseover=&#8221;this.style.background=&#8217;#0000FF&#8217;&#8221; onmouseout=&#8221;this.style.background=&#8217;#FFFFFF&#8217;&#8221;&gt;When the mouse touched this element the background will turn blue.  When the mouse no longer touches the element the background will be white.&lt;/span&gt;</p>
<p>If you were to copy the code above and place it in a HTML document, when a visitor touched the span element with their mouse the background will turn blue.  When the mouse is no longer touching the span tag, the background will return to white.</p>
<p>What you may have noticed in the example is the this.style.background part of the code.  You may also be asking what does this mean.  JavaScript is what is called an object oriented language, this means that we can tell JavaScript to change elements based on the element&#8217;s name.  The &#8220;this&#8221; part of the code, is a short way of saying this element.  So, &#8220;this.style&#8221; is telling JavaScript to change the style of this element.  Since we are wanting to change the background, we just add &#8220;.background&#8221; to &#8220;this.style&#8221; to change the background.  Now that we know how to change the style of an element based on a JavaScript event, we have created a rollover.  The rollover in the example above can be done with the :hover attribute in CSS.</p>
<p>To create the rollover effect with an image we need to use the CSS opacity attribute.  This attribute allows us to change the opacity of the image without editing the image itself with a image editor.   The value for opacity has to be between 0.0 and 1.0.   The lower the number, the more transparent the image is.</p>
<p>The only issue with using the opacity filter is that Internet Explorer does not support it.  To get around this issue, we will have to use IE&#8217;s filter attribute.  The first thing we need to do is create a class with the opacity set for the &#8220;off&#8221; status of the element.  Here is the code that will do that.   IE&#8217;s filter attribute accepts values between 0 and 100.  The format for this attribute is filter: alpha(opacity=XX) where XX is the value of the opacity.</p>
<p>The first thing we need to do is choose what  opacity the image will have in the &#8220;off&#8221; status.  For this example we will use an opacity of 0.4, or 40 for the IE filter.  Below is the code that will set the opacity to the class menu.  We have also set color to white so that we can see the text that is on top of the image.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff">
<pre>
.menu {
background: url(images/cssjuice_fade.jpg) repeat;
filter: alpha(opacity=40);
opacity: 0.4;
}</pre>
<p>Now the image has a opacity set, we need to look at the JavaScript code.  To change the opacity in a browser that supports opacity other then Internet Explorer, the code would be this.style.opacity=X.  For IE, we have to also add this.style.filter.alpha.opacity=XX.  With our effect we want the opacity completely removed when the user&#8217;s mouse touches our element so we will need to set the values to 1 and 100 for IE.  Here is the JavaScript we will need to add to the tags in order to change the opacity:</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> onmouseover=&#8221;this.style.opacity=&#8217;1&#8242;; this.style.filter.alpha.opacity=&#8217;100&#8242;&#8221;</p>
<p>We also have to reset the opacity to the original &#8220;off&#8221; state.  To do this we will have to set the opacity settings back to their original values with the onmouseoff event.  Here is that code.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> onmouseoff=&#8221;this.style.opacity=&#8217;0.4&#8242;; this.style.filter.alpha.opacity=&#8217;40&#8242;&#8221;</p>
<p>The only thing left to do is join both parts of the JavaScript with the HTML element.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> &lt;span class=&#8221;menu&#8221; onmouseover=&#8221;this.style.opacity=&#8217;1&#8242;; this.style.filter.alpha.opacity=&#8217;100&#8242;&#8221; onmouseoff=&#8221;this.style.opacity=&#8217;0.4&#8242;; this.style.filter.alpha.opacity=&#8217;40&#8242;&#8221;&gt;Put your mouse on this text&lt;/span&gt;</p>
<p>The only issue with this code is that it will be hard to read.  In order to make our code easier to read we can make some changes by making a JavaScript function that we can include in between the head tags of our page, and make a minor change in the HTML element itself.  Here is the JavaScript function, and the changes in the HTML element.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff">
<pre>
&lt;script&gt;function statusOn(element){element.style.opacity=1;element.filters.alpha.opacity=100;}

function statusOff(element){

element.style.opacity=0.4;

element.filters.alpha.opacity=40;

}

&lt;/script&gt;</pre>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> &lt;span class=&#8221;menu&#8221; onmouseover=&#8221;statusOn(this)&#8221; onmouseout=&#8221;statusOff(this)&#8221;&gt;Put your mouse on this text&lt;/span&gt;</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=qy4vzI"><img src="http://feeds.feedburner.com/~f/cssjuice?i=qy4vzI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=7LV1GI"><img src="http://feeds.feedburner.com/~f/cssjuice?i=7LV1GI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=8V5QEI"><img src="http://feeds.feedburner.com/~f/cssjuice?i=8V5QEI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=jRJoCi"><img src="http://feeds.feedburner.com/~f/cssjuice?i=jRJoCi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=5rtRai"><img src="http://feeds.feedburner.com/~f/cssjuice?i=5rtRai" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/311248299" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/light-javascript-rollover/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Flight-javascript-rollover%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/light-javascript-rollover/</feedburner:origLink></item>
		<item>
		<title>Web 2.0 Customized Buttons</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/305538119/</link>
		<comments>http://www.cssjuice.com/web-20-customized-buttons/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 19:41:15 +0000</pubDate>
		<dc:creator>Derald</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/web-20-customized-buttons/</guid>
		<description><![CDATA[With HTML you have very limited control over how input buttons look.  If you want to create a button for a form, when using the just HTML you get the same default browser button.  Most of the time this is a gray button with black text, and does not fit the color scheme [...]]]></description>
			<content:encoded><![CDATA[<p>With HTML you have very limited control over how input buttons look.  If you want to create a button for a form, when using the just HTML you get the same default browser button.  Most of the time this is a gray button with black text, and does not fit the color scheme of your site. If you use CSS, gray buttons are the thing of the past.<span id="more-1026"></span></p>
<p>Just like most HTML elements, you can use CSS to customize the buttons on your site to fit your site&#8217;s design.   As with most elements, you can control almost every aspect of your button&#8217;s look from the font type all the way down to the background.  We are going to use an image with a gradient to create a Web 2.0 style button.  First thing we did was create an image that was four pixels wide, and twenty pixels tall.  We then used the gradient tool to create a fade between two of the main colors on our site.  In our image, we choose the green and blue in the CSS Juice logo. Here is our results.</p>
<p><img src="http://images.ientry.com/cssjuice/web2_button/cssjuice_fade.jpg" alt="Web 2.0 Button Fade Image" height="20" width="4" /></p>
<p>As you can tell by itself, this image is hard to see, and tell what is actually happening.  But with CSS, we can have this image repeat as a background, and thus making the image seem larger.  The benefit to creating the image so small is two-fold.  If we have users with a slower connection, then they do not have to download a very large image.  Our image is only 340 bytes large, this means that users on dial-up will get the same effect, but without the wait.  The second reason is with CSS, we can have the image repeat, if we  use a smaller image we can reuse this image on larger buttons.</p>
<p>Lets look at the CSS code for our buttons now.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> button {<br />
background: url(images/cssjuice_fade.jpg) repeat;<br />
color: white;<br />
}</p>
<p>That is all the CSS code we need to make the faded button.  The image does most of the work for us.  If you don&#8217;t want the fade look, you can use the background attribute to change the background of your buttons.  If you don&#8217;t use the input element instead of button element, you should create a class to apply to the input element.</p>
<p>Here is a before and after &#8220;picture&#8221; of the button.</p>
<p><button>Default Button</button></p>
<p><button style="background: transparent url('http://images.ientry.com/cssjuice/web2_button/cssjuice_fade.jpg') repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: white">Web 2.0 Button With Fade Effect</button></p>
<p><button style="background-color: #3978ba; color: white">Web 2.0 Button Without Fade Effect</button></p>
<p>As you can see the Web 2.0 buttons better fits our site&#8217;s theme than the default button.</p>
<p>One way that you can use this effect is with a form.  You could either make the text or background of a form&#8217;s submit button green, where as the cancel or reset button be red. Similar to the buttons below.</p>
<p><button style="background-color: green; color: white">Submit</button> <button style="background-color: red; color: white">Cancel</button></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=2sLAbI"><img src="http://feeds.feedburner.com/~f/cssjuice?i=2sLAbI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=qMVIVI"><img src="http://feeds.feedburner.com/~f/cssjuice?i=qMVIVI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=9EpLWI"><img src="http://feeds.feedburner.com/~f/cssjuice?i=9EpLWI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=RJIWVi"><img src="http://feeds.feedburner.com/~f/cssjuice?i=RJIWVi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=kDafui"><img src="http://feeds.feedburner.com/~f/cssjuice?i=kDafui" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/305538119" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/web-20-customized-buttons/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Fweb-20-customized-buttons%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/web-20-customized-buttons/</feedburner:origLink></item>
		<item>
		<title>Rounded Corners Using CSS</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/303861517/</link>
		<comments>http://www.cssjuice.com/rounded-corners-using-css/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 16:58:00 +0000</pubDate>
		<dc:creator>Derald</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/rounded-corners-using-css/</guid>
		<description><![CDATA[One of the more popular things to do with CSS is to have elements with rounded corners.  Some designers have even called this the holy grail of CSS.  It is also one of those design elements that give your site a sophisticated and professional look.  Most designers will tell you to achieve [...]]]></description>
			<content:encoded><![CDATA[<p>One of the more popular things to do with CSS is to have elements with rounded corners.  Some designers have even called this the holy grail of CSS.  It is also one of those design elements that give your site a sophisticated and professional look.  Most designers will tell you to achieve this look it is hard work, well don&#8217;t fear we can achieve the same look with a few lines of CSS.</p>
<p>First, we have to create four images which will create the rounded effect.   The images should have a transparent background, but have a rounded edge effect with the color of your site background.   Here is an example of the rounded images we used with a black background instead of a transparent one.</p>
<p><img src="http://images.ientry.com/cssjuice/rounded/corner_example.gif" alt="Rounded Corner -- Example" border="1" height="50" width="50" /><br />
<span id="more-1025"></span><br />
With the images now created, we can start looking at the CSS code to create the effect.  Since we only want the effect on elements that we choose to apply it to, we will need to create a class for the effect.  Lets call this class round.  You can name the class anything you would like, but it is best to try to keep it simple but descriptive.  We will need to use the images that we created, and we are going to use them as background images.  This means we are at least going to use the background attribute in CSS.  In order to use the images, we are going to also have to tell the CSS code where the images are located, to do this we will use url().   So far, our CSS should look like the following.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> .round{<br />
background: url(images/top_right.gif);<br />
}</p>
<p>So far the CSS is simple, but we already have ran into an issue.  If we were to use this CSS, we will have the image top_right.gif repeat, to create the rounded corners we do not want this to happen.  We have to add additional values to the background attribute to stop the image from repeating.  To do this, just add no-repeat after the url() but before the semi colon.  Another issue that we have ran into is that the background starts in the top left corner, but this is the image for the top right corner.  To solve this we need to add &#8220;top right&#8221; after the no-repeat value.  With the added values the CSS code should look like the following now.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> .round{<br />
background: url(images/top_right.gif) no-repeat top right;<br />
}</p>
<p>If we were to apply this style sheet to an element at this point it would just have one rounded corner.   In order to get the top left corner rounded, we have to add a few things to the code, first we need to add the pseudo-element :before.  (Note that Internet Explorer does not support the :before and :after pseudo-elements, and the effect will not appear for Internet Explorer users.) This will apply the style before any element that is in the round element.  Another reason that the pseudo-element is needed, is because we have to use the content attribute.  The content attribute can only be used with the pseudo-elements :before and :after.  This attribute allows us to &#8220;float&#8221; the image for the rounded top left corner into the correct position.  Again to do this we are going to use the url() value.  Here is what the style sheet now looks like with all of this added.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> .round:before{<br />
background: url(images/top_right.gif) no-repeat top right;<br />
content: url(images/top_left.gif)<br />
}</p>
<p>Here again we run into another issue, this code will only make a semi circle instead of a round effect that we want to overcome this issue, we will only need to add the display attribute and set the value to block.  Here is the final style to round both top corners.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> .round:before{<br />
background: url(&#8217;images/top_right.gif&#8217;) no-repeat top right;<br />
display: block;<br />
content: url(images/top_left.gif)<br />
}</p>
<p>Now, if we put any element into the class round, the top two corners will have a rounded effect.  To have the bottom corners rounded we only need to change a few things in the code itself.  We have to change the images that we are using, and change the pseudo-element from :before to :after.  Below is what the style sheet looks like to give the effect to the bottom corners.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> .round:after{<br />
background: url(&#8217;images/bottom_right.gif&#8217;) no-repeat top right;<br />
display: block;<br />
content: url(images/bottom_left.gif)<br />
}</p>
<p>Now, to style the element that we are putting in the round class.  If we were using this in an actual site then we would create an id.  We would then give the element the id, and class.  Remember that ids are used for one element, where classes are used for multiple elements.  If you were wanting all of the element with rounded corners to have the same look, then use a class.  In this example we are going to use both. So lets start with the round class.  Lets make this class 350 pixels wide with a background that is a shade of grey.  Here is the CSS code for that.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> .round{<br />
background: #DCDCDC;<br />
width: 350px;<br />
}</p>
<p>For the id, we will name it corners, and lets make it 150 pixels wide, with a dark green background.  We also want the text to be bold and white.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> #corners{<br />
background: #2F4F4F;<br />
width: 150;<br />
color: #FFFFFF;<br />
font-weight: bold;<br />
}</p>
<p>That is it for the CSS to create this effect.  Lets move on an look at the HTML part of the code.</p>
<p><!--Next Page--></p>
<p>Most of the HTML to create the rounded corner effect is very basic, we are just going to apply a class to the element.  As we stated before, we can also apply an id to the element to create an even more custom feel for each element.  Below is an example of both ways.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> &lt;div class=&#8221;round&#8221;&gt;This is an element in the round class, since we have applied a background, and width attributes to the class, this element will inherit those values.&lt;/div&gt;<br />
&lt;p class=&#8221;round&#8221; id=&#8221;corner&#8221;&gt;This element will have the rounded corner effect, but will also have a different background color, width, and text color since it also has an id value&lt;/p&gt;</p>
<p>Since our images only have the color if the background of the body to create the rounded effect, both elements will have a rounded effect, but with different background colors.</p>
<p>Here is the all of the CSS:</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> .round:before{<br />
background: url(’images/top_right.gif’) no-repeat top right;<br />
display: block;<br />
content: url(images/top_left.gif)<br />
}</p>
<p>.round:after{<br />
background: url(’images/bottom_right.gif’) no-repeat top right;<br />
display: block;<br />
content: url(images/bottom_left.gif)<br />
}</p>
<p>.round{<br />
background: #DCDCDC;<br />
width: 350px;<br />
}</p>
<p>#corners{<br />
background: #2F4F4F;<br />
width: 150;<br />
color: #FFFFFF;<br />
font-weight: bold;<br />
}</p>
<p>You can see an example of this code <a href="http://images.ientry.com/cssjuice/rounded/example.htm">here</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=1pRpWI"><img src="http://feeds.feedburner.com/~f/cssjuice?i=1pRpWI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=kqmyDI"><img src="http://feeds.feedburner.com/~f/cssjuice?i=kqmyDI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=CgvIiI"><img src="http://feeds.feedburner.com/~f/cssjuice?i=CgvIiI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=i8r8Oi"><img src="http://feeds.feedburner.com/~f/cssjuice?i=i8r8Oi" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=th8DTi"><img src="http://feeds.feedburner.com/~f/cssjuice?i=th8DTi" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/303861517" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/rounded-corners-using-css/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Frounded-corners-using-css%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/rounded-corners-using-css/</feedburner:origLink></item>
		<item>
		<title>Rollovers using only CSS</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/294370255/</link>
		<comments>http://www.cssjuice.com/rollovers-using-only-css/#comments</comments>
		<pubDate>Tue, 20 May 2008 16:12:54 +0000</pubDate>
		<dc:creator>Derald</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/rollovers-using-only-css/</guid>
		<description><![CDATA[ In the past we have posted on how to create rollovers using CSS.   To do this, we used a sprite to create the rollover effect.  You can also create a rollover effect by using just CSS.
Let&#8217;s first look at the CSS code that will allow us to create this effect.
 &#60;style&#62;
.menu [...]]]></description>
			<content:encoded><![CDATA[<p> In the past we have posted on how to create rollovers using CSS.   To do this, we used a sprite to create the rollover effect.  You can also create a rollover effect by using just CSS.</p>
<p>Let&#8217;s first look at the CSS code that will allow us to create this effect.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> &lt;style&gt;<br />
.menu a:hover {<br />
display: inline;<br />
color: #3979ba;<br />
background-color: #76b71a;<br />
font-weight: bold;<br />
padding: 5px;<br />
}<br />
.menu a{<br />
display: inline;<br />
color: #76b71a;<br />
background-color: #3979ba;<br />
font-weight: bold;<br />
padding: 5px;<br />
}<br />
.menu li{<br />
display: inline;<br />
}<br />
&lt;/style&gt;</p>
<p>So far we have uses the pseudo-class :hover, and applied the effect to any a tag with in the menu class.  What we did with the :hover is invert the colors of the text and background, everything else says the same.  If the other attributes did not stay the same the rollover effect would not look proper.  We also make all the li elements display in a row with the inline attribute.<br />
<span id="more-1019"></span><br />
Now for the HTML code</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> &lt;ul class=&#8221;menu&#8221;&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link 1&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link 2&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Link 3&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p>As you see the HTML code is just an unordered list that has the class menu applied to it.  In each list element, we have a link for our menu.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=NlyzMH"><img src="http://feeds.feedburner.com/~f/cssjuice?i=NlyzMH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=aX4TwH"><img src="http://feeds.feedburner.com/~f/cssjuice?i=aX4TwH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=G60eeH"><img src="http://feeds.feedburner.com/~f/cssjuice?i=G60eeH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=Ja6MVh"><img src="http://feeds.feedburner.com/~f/cssjuice?i=Ja6MVh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=dj9c9h"><img src="http://feeds.feedburner.com/~f/cssjuice?i=dj9c9h" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/294370255" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/rollovers-using-only-css/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Frollovers-using-only-css%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/rollovers-using-only-css/</feedburner:origLink></item>
		<item>
		<title>Back to Basics: A Beginners guide to starting a CSS Document</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/276988413/</link>
		<comments>http://www.cssjuice.com/back-to-basics-a-beginners-guide-to-starting-a-css-document/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 15:54:09 +0000</pubDate>
		<dc:creator>Rafael</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/back-to-basics-a-beginners-guide-to-starting-a-css-document/</guid>
		<description><![CDATA[Here&#8217;s a tip for you. Never let the browser to decide what your site will look like. What we&#8217;ll go over today is a quick and easy way of defining styles for common html tags that should dramatically cut down on the amount of guess work a browser will have to do to interpret your [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a tip for you. Never let the browser to decide what your site will look like. What we&#8217;ll go over today is a quick and easy way of defining styles for common html tags that should dramatically cut down on the amount of guess work a browser will have to do to interpret your website. As you all know some of our more popular browsers **cough** IE **cough** tend not to display things as well as we want on their own.</p>
<p><span id="more-1024"></span></p>
<p>The good news is that it&#8217;s really simple to fix. The bad news is that it&#8217;ll take a little bit of typing to get it down to the way you want. I hope you&#8217;ve warmed your fingers up a bit so that you don&#8217;t get a cramp. Let&#8217;s get started&#8230;</p>
<p>Now, I like to start with the &lt;body&gt; tag when I&#8217;m creating my style sheet. It really doesn&#8217;t matter what order you go in, but I generally go down the list of what&#8217;s first presented on the page.</p>
<div style="margin: 0px 25px; padding: 5px; border: solid 1px #CCCCCC; color: #0000ff;">
<p><span style="color: #ff00ff;">body {</span></p>
<p><span style="color: #ff00ff;">}</span></p>
</div>
<p>First up let&#8217;s define the margins and the padding of the body so that we&#8217;ll get a nice even border across all browsers.</p>
<div style="margin: 0px 25px; padding: 5px; border: solid 1px #CCCCCC; color: #0000ff;">
<p><span style="color: #ff00ff;">body {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">margin:</span> 0px<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">padding:</span> 0px<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span></p>
</div>
<p>What the above does is tell the browser to make all margins and all padding zero pixels across the entire body (meaning our website can go full screen all the way out to the edges).</p>
<p>Next we&#8217;ll go ahead and define our fonts and background color that we want the browser to use.</p>
<div style="margin: 0px 25px; padding: 5px; border: solid 1px #CCCCCC; color: #0000ff;">
<p><span style="color: #ff00ff;">body {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">margin:</span> 0px<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">padding:</span> 0px<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">background-color:</span> #FFFFFF<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">font:</span> normal 0.92em Arial, Helvetica, sans-serif<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span></p>
</div>
<p>With the font, I&#8217;ve used a little bit of short hand just to keep things compact and simple. If you aren&#8217;t familiar with this, it&#8217;s perfectly ok to do what&#8217;s comfortable for you.</p>
<p>With that out of the way, let&#8217;s move on to our next set of tags. For me this is either a &lt;table&gt; tag with &lt;td&gt; tags within it or a &lt;div&gt;, depending on what type of site I&#8217;m doing. Now is a good time to go ahead and define what we need for these two.</p>
<div style="margin: 0px 25px; padding: 5px; border: solid 1px #CCCCCC; color: #0000ff;">
<p><span style="color: #ff00ff;">td {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">font:</span> normal 0.92em Arial, Helvectica, sans-serif<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span></p>
<p><span style="color: #ff00ff;">div {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">margin:</span> 0px<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">padding:</span> 0px<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">font:</span> normal 0.92em Arial, Helvectica, sans-serif<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span></p>
</div>
<p>You&#8217;ll notice that I&#8217;ve zeroed out the margin and padding on all &lt;div&gt; tags. Why would I do this? Simple, not all browsers use the same settings to display these. Doing this we bend the browsers to our will. I prefer zero when doing all CSS layouts, but you can set them to whatever works best for you.</p>
<p>Next on the list will be our handy dandy links, but before we jump into these I&#8217;d like to say a few things. Links are a little different animal when it comes to redefining them. You could just make a standard &#8220;a&#8221; class in your CSS, but that doesn&#8217;t cover all aspects of the link itself. Instead we&#8217;ll use what&#8217;s called &#8220;pseudo-classes&#8221; for our linking.</p>
<div style="margin: 0px 25px; padding: 5px; border: solid 1px #CCCCCC; color: #0000ff;">
<p><span style="color: #ff00ff;">a:link {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">color:</span> #0000CC<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">text-decoration:</span> underline<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span></p>
<p><span style="color: #ff00ff;">a:hover {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">color:</span> #0000CC<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">text-decoration:</span> none<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span></p>
<p><span style="color: #ff00ff;">a:visited {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">color:</span> #551A8B<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span></p>
</div>
<p>What this basically means is that we&#8217;ll be able to control various states of a link like it&#8217;s normal state (a:link), it&#8217;s mouse over effect (a:hover), and it&#8217;s state after it&#8217;s been clicked (a:visited). I set all my links to default blue with an underline. Then when you put your mouse over them they stay blue, but the underline disappears. Once it&#8217;s been clicked, just so you know you&#8217;ve clicked it before, I chose to use a dark purple. Like always you are free to use whatever effects/colors you&#8217;d like. This is just to give you a starting block to build upon.</p>
<p>Now we&#8217;ll move onto the next tag we&#8217;ll redefine, to make appear standard across all the browsers, the *lt;p&gt; paragraph tag. For some reason there is a huge difference in the margins created by the &lt;p&gt; in FireFox and Internet Explorer. We&#8217;re going to fix that.</p>
<div style="margin: 0px 25px; padding: 5px; border: solid 1px #CCCCCC; color: #0000ff;">
<p><span style="color: #ff00ff;">p {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">margin:</span> 10px 0px<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span></p>
</div>
<p>Finally we&#8217;ll move out to our head tags &lt;h&#8221;x&#8221;&gt;.  The &#8220;x&#8221; would be replaced by a number to suit your needs of course. These aren&#8217;t really used as often as they used to e, but they still hold some value SEO wise. So, just to be sure, we&#8217;ll go ahead and include how we want them to look instead of the greatly oversized bold black text they normally default to.</p>
<div style="margin: 0px 25px; padding: 5px; border: solid 1px #CCCCCC; color: #0000ff;">
<p><span style="color: #ff00ff;">h1, h2, <span style="color: #ff00ff;">h3 {</span></span><br />
&nbsp;&nbsp;	<span style="color: #000099;">margin:</span> 0px<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;	<span style="color: #000099;">padding:</span> 0px<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span></p>
<p><span style="color: #ff00ff;">h1 {</span><br />
&nbsp;&nbsp;	<span style="color: #000099;">font-size:</span> 1.5em<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span></p>
<p><span style="color: #ff00ff;">h2 {</span><br />
&nbsp;&nbsp;	<span style="color: #000099;">font-size:</span> 1.3em<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span></p>
<p><span style="color: #ff00ff;">h3 {</span><br />
&nbsp;&nbsp;	<span style="color: #000099;">font-size:</span> 1.1em<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span></p>
</div>
<p>For the sake of time, and a lot of reading we&#8217;ll end it here. What you should end up with is a very basic CSS document that addresses a few issues that you may encounter when browser checking your new website.</p>
<div style="margin: 0px 25px; padding: 5px; border: solid 1px #CCCCCC; color: #0000ff;">
<p><span style="color: #ff00ff;">body {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">margin:</span> 0px<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">padding:</span> 0px<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">background-color:</span> #FFFFFF<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">font:</span> normal 0.92em Arial, Helvetica, sans-serif<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span><br />
<span style="color: #ff00ff;">td {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">font:</span> normal 0.92em Arial, Helvectica, sans-serif<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span><br />
<span style="color: #ff00ff;">div {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">margin:</span> 0px<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">padding:</span> 0px<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">font:</span> normal 0.92em Arial, Helvectica, sans-serif<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span><br />
<span style="color: #ff00ff;">a:link {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">color:</span> #0000CC<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">text-decoration:</span> underline<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span><br />
<span style="color: #ff00ff;">a:hover {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">color:</span> #0000CC<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">text-decoration:</span> none<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span><br />
<span style="color: #ff00ff;">a:visited {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">color:</span> #551A8B<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span><br />
<span style="color: #ff00ff;">p {</span><br />
&nbsp;&nbsp;  <span style="color: #000099;">margin:</span> 10px 0px<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span><br />
<span style="color: #ff00ff;">h1, h2, <span style="color: #ff00ff;">h3 {</span></span><br />
&nbsp;&nbsp;	<span style="color: #000099;">margin:</span> 0px<span style="color: #ff00ff;">;</span><br />
&nbsp;&nbsp;	<span style="color: #000099;">padding:</span> 0px<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span><br />
<span style="color: #ff00ff;">h1 {</span><br />
&nbsp;&nbsp;	<span style="color: #000099;">font-size:</span> 1.5em<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span><br />
<span style="color: #ff00ff;">h2 {</span><br />
&nbsp;&nbsp;	<span style="color: #000099;">font-size:</span> 1.3em<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span><br />
<span style="color: #ff00ff;">h3 {</span><br />
&nbsp;&nbsp;	<span style="color: #000099;">font-size:</span> 1.1em<span style="color: #ff00ff;">;</span><br />
<span style="color: #ff00ff;">}</span></p>
</div>
<p>There are a lot more HTML tags that we could redefine, but I find that the above is a great first step towards creating a browser friendly site using CSS. I hope this helps all of you out there who are just now getting your feet wet.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=YBcQBHG"><img src="http://feeds.feedburner.com/~f/cssjuice?i=YBcQBHG" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=CT4nOqG"><img src="http://feeds.feedburner.com/~f/cssjuice?i=CT4nOqG" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=aVqDoKG"><img src="http://feeds.feedburner.com/~f/cssjuice?i=aVqDoKG" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=WlL1WUg"><img src="http://feeds.feedburner.com/~f/cssjuice?i=WlL1WUg" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=EC1G5yg"><img src="http://feeds.feedburner.com/~f/cssjuice?i=EC1G5yg" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/276988413" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/back-to-basics-a-beginners-guide-to-starting-a-css-document/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Fback-to-basics-a-beginners-guide-to-starting-a-css-document%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/back-to-basics-a-beginners-guide-to-starting-a-css-document/</feedburner:origLink></item>
		<item>
		<title>Framing your images using CSS</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/261364228/</link>
		<comments>http://www.cssjuice.com/framing-your-images-using-css/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 16:20:08 +0000</pubDate>
		<dc:creator>Rafael</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/framing-your-images-using-css/</guid>
		<description><![CDATA[So you have this awesome autographed picture of Carrot Top that you got after months of waiting from his fan website, and you&#8217;d like to put it up on your website to prove your fanhood. The problem is you don&#8217;t have Photoshop or Fireworks handy to put a nice frame around it, and you&#8217;d like [...]]]></description>
			<content:encoded><![CDATA[<p>So you have this awesome autographed picture of <a href="http://www.carrottop.com/">Carrot Top</a> that you got after months of waiting from his fan website, and you&#8217;d like to put it up on your website to prove your fanhood. The problem is you don&#8217;t have Photoshop or Fireworks handy to put a nice frame around it, and you&#8217;d like to have something to do the job. Well don&#8217;t sweat it my friends, I&#8217;ll show you a simple yet effective CSS trick that you can use to mimic a frame on a picture and all you&#8217;ll need is Notepad to do it.<br />
<span id="more-1023"></span><br />
First up, we&#8217;ll need our picture. Since my autographed picture is locked away in a security vault for safekeeping, we&#8217;ll use a picture of my co-worker, Chris Crum, instead.</p>
<p><center><img src="http://images.ientrymail.com/cssjuice/chris_crum.jpg" alt="Chris Crum" style="border: medium none " /></center>Umm, yeah&#8230; Moving on.</p>
<p>Now that we have our picture, it&#8217;s time to add a class to the image source so that we can begin.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> <span style="color: #990099">&lt;img src=</span>&#8220;Chris URL&#8221; <span style="color: #990099">alt=</span>&#8220;Chris Crum&#8221; <strong style="color: #cc0000">class=&#8221;chris-pic&#8221;</strong><span style="color: #990099">&gt;</span></p>
<p>With that exhausting bit of prep work out of the way it&#8217;s time to move on to the magic.<br />
What you&#8217;ll need to do now is open up your CSS file so we can add a new class. In this case it&#8217;s called &#8220;chris-pic.&#8221;</p>
<p style="border: 1px solid #cccccc; padding: 5px"><span style="color: #ff00ff">.chris-pic {}</p>
<p></span></p>
<p>With our newly created class, it&#8217;s time to fill it in with the appropriate code.</p>
<p style="border: 1px solid #cccccc; padding: 5px; color: #0000ff"> <span style="color: #ff00ff">.chris-pic {</span><br />
<span style="color: #000099">padding:</span> 5px<span style="color: #ff00ff">;</span><br />
<span style="color: #000099">border-right:</span> solid 1px #CCCCCC<span style="color: #ff00ff">;</span><br />
<span style="color: #000099">border-bottom:</span> solid 1px #BEBEBE<span style="color: #ff00ff">;</span><br />
<span style="color: #ff00ff">}</span></p>
<p>Before we go any further, I&#8217;d like to give a brief explanation of what the text above means.</p>
<p>The first line sets the padding around the picture to five pixels on all sides. The second line places a light gray border on the right side with a width of just one pixel. Finally, the third line places a slightly darker gray border on the bottom of the picture also with a width of just one pixel.</p>
<p>You&#8217;ll end up with something like below which has a border only on two sides but gives the effect of a frame.</p>
<p><center><img src="http://images.ientrymail.com/cssjuice/chris_crum.jpg" alt="Chris Crum" style="border-style: none solid solid none; border-color: -moz-use-text-color rgb(204, 204, 204) rgb(190, 190, 190) -moz-use-text-color; border-width: medium 1px 1px medium; padding: 5px" /></center>That&#8217;s it! Now get out there and have some fun.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=VuhMbyF"><img src="http://feeds.feedburner.com/~f/cssjuice?i=VuhMbyF" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=UKUDLGF"><img src="http://feeds.feedburner.com/~f/cssjuice?i=UKUDLGF" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=hsfo8HF"><img src="http://feeds.feedburner.com/~f/cssjuice?i=hsfo8HF" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=htBnlaf"><img src="http://feeds.feedburner.com/~f/cssjuice?i=htBnlaf" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=5ij9yRf"><img src="http://feeds.feedburner.com/~f/cssjuice?i=5ij9yRf" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/261364228" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/framing-your-images-using-css/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Fframing-your-images-using-css%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/framing-your-images-using-css/</feedburner:origLink></item>
		<item>
		<title>How to make Buttons with Hover Load Faster</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/250860177/</link>
		<comments>http://www.cssjuice.com/how-to-make-buttons-with-hover-load-faster/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 16:49:55 +0000</pubDate>
		<dc:creator>Blues</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/how-to-make-buttons-with-hover-load-faster/</guid>
		<description><![CDATA[With CSS we can target the ‘:hover’ child class for links and update their background properties.
 Example
.nav a:link, .nav a:visited {
width: 160px ; height: 30px ; display: block; overflow:hidden;
background: url(’images/nav1.gif’) 0px 0px no-repeat;
}
.nav a:hover, .nav a:active{
background-position: 0px -30px;
}

The Image itself contains both the normal and hover state. This is called a sprite, using this technique [...]]]></description>
			<content:encoded><![CDATA[<p>With CSS we can target the ‘:hover’ child class for links and update their background properties.</p>
<blockquote class="code"><p> <cite><strong>Example</strong></cite><br />
.nav a:link, .nav a:visited {<br />
width: 160px ; height: 30px ; display: block; overflow:hidden;<br />
background: url(’images/nav1.gif’) 0px 0px no-repeat;<br />
}<br />
.nav a:hover, .nav a:active{<br />
background-position: 0px -30px;<br />
}</p></blockquote>
<p><span id="more-1022"></span><br />
The Image itself contains both the normal and hover state. This is called a sprite, using this technique the image needs only be loaded once.</p>
<p><img src="http://images.ientrymail.com/cssjuice/button_example.jpg" title="CSS Hover" alt="CSS Hover Example" align="middle" border="0" /></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=OHUU7NF"><img src="http://feeds.feedburner.com/~f/cssjuice?i=OHUU7NF" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=vmfKURF"><img src="http://feeds.feedburner.com/~f/cssjuice?i=vmfKURF" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=DTOnDmF"><img src="http://feeds.feedburner.com/~f/cssjuice?i=DTOnDmF" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=fknJbXf"><img src="http://feeds.feedburner.com/~f/cssjuice?i=fknJbXf" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=p088vFf"><img src="http://feeds.feedburner.com/~f/cssjuice?i=p088vFf" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/250860177" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/how-to-make-buttons-with-hover-load-faster/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Fhow-to-make-buttons-with-hover-load-faster%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/how-to-make-buttons-with-hover-load-faster/</feedburner:origLink></item>
		<item>
		<title>Custom Textfield Background</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/246881534/</link>
		<comments>http://www.cssjuice.com/custom-textfield-background/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 18:05:07 +0000</pubDate>
		<dc:creator>Blues</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/custom-textfield-background/</guid>
		<description><![CDATA[The benefits to designing your own custom html text fields for use within your site can give you a completely personal look and feel that is totally your own. There are however, also some key  disadvantages to this process. You can create any type of design, then use CSS to replace the actual text [...]]]></description>
			<content:encoded><![CDATA[<p>The benefits to designing your own custom html text fields for use within your site can give you a completely personal look and feel that is totally your own. There are however, also some key  disadvantages to this process. You can create any type of design, then use CSS to replace the actual text field background and have your own designed textfield. It’s easier then most would think. It&#8217;s the simple things that make or break your site.<br />
<span id="more-1021"></span>Now lets look at the code.</p>
<p><strong>HTML</strong>:</p>
<p>&lt;input type=”text” name=”This is the text name” class=”one” /&gt;</p>
<p>You want to give your text field a class so the CSS can format the field the way you want it to look. If you do not do this the custom image will not show.</p>
<p>Now for the CSS control information</p>
<p><strong>CSS:</strong></p>
<p>.one {<br />
width: 180px;<br />
height: 20px;<br />
background: url(../images/custom-textfielddesign/one.gif) no-repeat;<br />
border: none;<br />
padding: 2px 0 0 5px;<br />
}</p>
<p>Simple as that. Now let&#8217;s talk about the advantages. With this CSS code you can give your site it own feel and personality. The site will still be SEO compliant. There are some disadvantages as well. Your design is only as good as your skill and you don&#8217;t want to make the text so hard to read that no visitor wants to return.</p>
<p>Good luck and I hope this helps with making your site exactly what you want.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=i6if08F"><img src="http://feeds.feedburner.com/~f/cssjuice?i=i6if08F" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=26uaAGF"><img src="http://feeds.feedburner.com/~f/cssjuice?i=26uaAGF" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=uEi52LF"><img src="http://feeds.feedburner.com/~f/cssjuice?i=uEi52LF" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=f00Ejmf"><img src="http://feeds.feedburner.com/~f/cssjuice?i=f00Ejmf" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=R6717hf"><img src="http://feeds.feedburner.com/~f/cssjuice?i=R6717hf" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/246881534" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/custom-textfield-background/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Fcustom-textfield-background%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/custom-textfield-background/</feedburner:origLink></item>
		<item>
		<title>Image Rollovers With CSS</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/241064384/</link>
		<comments>http://www.cssjuice.com/image-rollovers-with-css/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 19:57:44 +0000</pubDate>
		<dc:creator>Blues</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/image-rollovers-with-css/</guid>
		<description><![CDATA[In this tutorial you will learn how to make an CSS rollover effect.
Most of you saw how this effect looks like. When you pass over a, in this case graphic button,
it changes shape,color,text…

It’s not necessary to use a graphic object in this effect, but for purpose of this tutorial I will use a graphic button.
First, [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial you will learn how to make an CSS rollover effect.</p>
<p>Most of you saw how this effect looks like. When you pass over a, in this case graphic button,</p>
<p>it changes shape,color,text…<br />
<span id="more-1020"></span></p>
<p>It’s not necessary to use a graphic object in this effect, but for purpose of this tutorial I will use a graphic button.</p>
<p>First, you need to <strong>create a graphic object</strong> which you will use for this effect. You can even use mine if you want to.</p>
<p><img src="http://www.cssjuice.com/rollovergraphic.jpg" alt="rollovergraphic.jpg" /></p>
<p>This graphic object contains 2 buttons which we will use as a normal state and mouse over state.</p>
<p>They are saved in one file.</p>
<p>Dimensions 80×50 pixels</p>
<p><strong>Why do we use one graphic file instead of two?</strong></p>
<p>Well, if you use two graphic files, one for each state (mouse over, normal), this effect gets a bit slower because one graphic, which shows as a normal state</p>
<p>loads at the first page loading, while the other graphic  (mouse over state) loads when we pass with our mouse over our button.</p>
<p>This is not so practical.</p>
<p>But, if we use one graphic file with both states, it loads at the first page loading for both states. That’s why this is quicker and hence better.</p>
<p>Ok. Now lets start coding.</p>
<p>Insert this into your CSS file</p>
<blockquote>
<pre><font color="#ff0000">#button a {   </font><font color="#ff0000">

</font><font color="#ff0000">display: block;   </font><font color="#ff0000">

</font><font color="#ff0000">background:  url(rollovergraphic.gif) top;   </font>

<font color="#ff0000">

</font><font color="#ff0000">width: 80px;   </font>

<font color="#ff0000">

</font><font color="#ff0000">height: 25px;   </font>

<font color="#ff0000">

</font><font color="#ff0000">}</font></pre>
</blockquote>
<blockquote>
<pre><font color="#ff0000">#button a:hover {   </font><font color="#ff0000">

</font><font color="#ff0000">background:  url(rollovergraphic.gif) no-repeat bottom;   </font><font color="#ff0000">

</font><font color="#ff0000">}</font></pre>
</blockquote>
<p>Insert this where you want display the rollover button:</p>
<blockquote>
<pre><font color="#ff0000">&lt;div id="button"&gt;&lt;a href="#"&gt;&lt;/a&gt;&lt;/div&gt;  </font></pre>
</blockquote>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=gj7eL"><img src="http://feeds.feedburner.com/~f/cssjuice?i=gj7eL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=QQACL"><img src="http://feeds.feedburner.com/~f/cssjuice?i=QQACL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=hvd1L"><img src="http://feeds.feedburner.com/~f/cssjuice?i=hvd1L" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=Krxcl"><img src="http://feeds.feedburner.com/~f/cssjuice?i=Krxcl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=gO52l"><img src="http://feeds.feedburner.com/~f/cssjuice?i=gO52l" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/241064384" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/image-rollovers-with-css/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Fimage-rollovers-with-css%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/image-rollovers-with-css/</feedburner:origLink></item>
		<item>
		<title>Highlighted Menu in CSS</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/230448368/</link>
		<comments>http://www.cssjuice.com/highlighted-menu-in-css/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 19:33:27 +0000</pubDate>
		<dc:creator>Blues</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/highlighted-menu-in-css/</guid>
		<description><![CDATA[Here is a quick and easy way to make menus with highlighted sub-links. Minimal code for maximum effect.

CSS Code
#css-target-menu { background: #000;

padding: 5px; width: 300px; }

#css-target-menu ul { font: 11px "Trebuchet MS", Verdana, Arial;

list-style: none;margin: 0;

padding: 0;width: 300px; }

#css-target-menu li {background: #000;

padding: 2px; }#css-target-menu li:hover

{ background: #333; }#css-target-menu li ul

{ width: 224px; }#css-target-menu li ul li [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick and easy way to make menus with highlighted sub-links. Minimal code for maximum effect.<br />
<span id="more-1018"></span><br />
<strong>CSS Code</strong></p>
<pre class="css"><span style="color: #cc00cc">#css-target-menu</span> <span style="color: #66cc66">{</span> <span style="color: #000000; font-weight: bold">background</span>: <span style="color: #cc00cc">#<span style="color: #993333">000</span></span>;

<span style="color: #000000; font-weight: bold">padding</span>: <span style="color: #993333">5px</span>; <span style="color: #000000; font-weight: bold">width</span>: <span style="color: #993333">300px</span>; <span style="color: #66cc66">}</span>

<span style="color: #cc00cc">#css-target-menu</span> ul <span style="color: #66cc66">{</span> <span style="color: #000000; font-weight: bold"></span>font: <span style="color: #993333">11px</span> <span style="color: #ff0000">"Trebuchet MS"</span>, Verdana, Arial;

<span style="color: #000000; font-weight: bold">list-style</span>: <span style="color: #993333">none</span>;<span style="color: #000000; font-weight: bold">margin</span>: <span style="color: #993333">0</span>;

<span style="color: #000000; font-weight: bold">padding</span>: <span style="color: #993333">0</span>;<span style="color: #000000; font-weight: bold">width</span>: <span style="color: #993333">300px</span>; <span style="color: #66cc66">}</span>

<span style="color: #cc00cc">#css-target-menu</span> li <span style="color: #66cc66">{</span><span style="color: #000000; font-weight: bold">background</span>: <span style="color: #cc00cc">#<span style="color: #993333">000</span></span>;

<span style="color: #000000; font-weight: bold">padding</span>: <span style="color: #993333">2px</span>; <span style="color: #66cc66">}</span><span style="color: #cc00cc">#css-target-menu</span> li<span style="color: #3333ff">:hover</span>

<span style="color: #66cc66">{</span> <span style="color: #000000; font-weight: bold">background</span>: <span style="color: #cc00cc">#<span style="color: #993333">333</span></span>; <span style="color: #66cc66">}</span><span style="color: #cc00cc">#css-target-menu</span> li ul

<span style="color: #66cc66">{</span> <span style="color: #000000; font-weight: bold">width</span>: <span style="color: #993333">224px</span>; <span style="color: #66cc66">}</span><span style="color: #cc00cc">#css-target-menu</span> li ul li a

<span style="color: #66cc66">{</span> <span style="color: #000000; font-weight: bold">color</span>: <span style="color: #cc00cc">#<span style="color: #993333">999</span></span>; <span style="color: #66cc66">}</span><span style="color: #cc00cc">#css-target-menu</span> li a

<span style="color: #66cc66">{</span> <span style="color: #000000; font-weight: bold">color</span>: <span style="color: #cc00cc">#cae001</span>; <span style="color: #000000; font-weight: bold"></span>text-decoration: <span style="color: #993333">none</span>; <span style="color: #000000; font-weight: bold"></span>

outline: <span style="color: #993333">none</span>; <span style="color: #000000; font-weight: bold">display</span>: <span style="color: #993333">block</span>; <span style="color: #66cc66">}</span><span style="color: #cc00cc">#css-target-menu</span> li<span style="color: #cc00cc">#css-tutorials</span>, <span style="color: #cc00cc">#css-target-menu</span>

li<span style="color: #cc00cc">#html-tutorials</span> <span style="color: #66cc66">{</span><span style="color: #000000; font-weight: bold">background</span>: <span style="color: #cc00cc">#<span style="color: #993333">000</span></span>;

<span style="color: #000000; font-weight: bold">margin</span>: <span style="color: #993333">0</span>;<span style="color: #000000; font-weight: bold">padding</span>: <span style="color: #993333">2px</span> <span style="color: #993333">6px</span>; <span style="color: #000000; font-weight: bold">display</span>: <span style="color: #993333">none</span>; <span style="color: #66cc66">}</span>

<span style="color: #cc00cc">#css-target-menu</span>li<span style="color: #cc00cc">#css-tutorials</span><span style="color: #3333ff">:target</span>,

<span style="color: #cc00cc">#css-target-menu</span>li<span style="color: #cc00cc">#html-tutorials</span><span style="color: #3333ff">:target</span> <span style="color: #66cc66">{</span>

<span style="color: #000000; font-weight: bold">display</span>: <span style="color: #993333">block</span>; <span style="color: #66cc66">}</span></pre>
<p><strong>HTML Code</strong></p>
<pre>&lt;div id="css-target-menu"&gt;&lt;ul&gt;
<pre> &lt;li&gt;&lt;a href="#css-tutorials"&gt;CSS Tutorials&lt;/a&gt;</pre>
<pre>&lt;/li&gt;&lt;li id="css-tutorials"&gt;</pre>
<p>&lt;ul&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Advanced Concepts&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Box Model Theory&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Cross-Browser Development&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p>&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#html-tutorials&#8221;&gt;(X)HTML Tutorials&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li id=&#8221;html-tutorials&#8221;&gt;<br />
&lt;ul&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Color Theory&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Document Structure&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Layouts&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p>&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p>&lt;/div&gt;</pre>
<p>As you can see the <strong>li ul</strong> will be activated when it’s target is active.<br />
So any link to <strong>#sub-menu</strong> would activate <strong>li#sub-menu</strong>.<br />
Simple CSS for an impressive menu display.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=EAIrL"><img src="http://feeds.feedburner.com/~f/cssjuice?i=EAIrL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=kBcEL"><img src="http://feeds.feedburner.com/~f/cssjuice?i=kBcEL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=TGe6L"><img src="http://feeds.feedburner.com/~f/cssjuice?i=TGe6L" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=mI08l"><img src="http://feeds.feedburner.com/~f/cssjuice?i=mI08l" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=9u4zl"><img src="http://feeds.feedburner.com/~f/cssjuice?i=9u4zl" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/230448368" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/highlighted-menu-in-css/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Fhighlighted-menu-in-css%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/highlighted-menu-in-css/</feedburner:origLink></item>
		<item>
		<title>Basic Concepts using CSS</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/222944313/</link>
		<comments>http://www.cssjuice.com/core-concept-of-css/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 14:27:29 +0000</pubDate>
		<dc:creator>Blues</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Tools]]></category>

		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.cssjuice.com/core-concept-of-css/</guid>
		<description><![CDATA[CSS is simple enough to control a few page elements. CSS is a very powerful tool. Stretch your imagination, with CSS you can create  what you really want your page, layout, or site to look like is only limited to the amount of time you want to spend designing. 
In CSS there is many [...]]]></description>
			<content:encoded><![CDATA[<p>CSS is simple enough to control a few page elements. CSS is a very powerful tool. Stretch your imagination, with CSS you can create  what you really want your page, layout, or site to look like is only limited to the amount of time you want to spend designing. <span id="more-1015"></span></p>
<p>In CSS there is many tricks that will spare you and others some time. Using these tricks will also clean up your code making the code look better and it will save you some time. For instance:</p>
<p class="wp_syntax">&nbsp;</p>
<p class="code">&nbsp;</p>
<pre class="css"><span style="color: #cc00cc">#poor_example</span><span style="color: #66cc66">{</span>

<span style="color: #000000; font-weight: bold">background-image</span>: <span style="color: #993333">url</span><span style="color: #66cc66">(</span><span style="color: #993333">image</span><span style="color: #66cc66">)</span>;

<span style="color: #000000; font-weight: bold">background-color</span>: <span style="color: #cc00cc">#<span style="color: #993333">00000</span></span>;

<span style="color: #000000; font-weight: bold">background-repeat</span>: <span style="color: #993333">repeat-x</span>;

<span style="color: #000000; font-weight: bold">background-position</span>: <span style="color: #000000; font-weight: bold">top</span> <span style="color: #000000; font-weight: bold">left</span>;<span style="color: #66cc66">}</span>

<span style="color: #cc00cc">#great_example</span> <span style="color: #66cc66">{</span> <span style="color: #000000; font-weight: bold">background</span>: <span style="color: #cc00cc">#<span style="color: #993333">000</span></span> <span style="color: #993333">url</span><span style="color: #66cc66">(</span><span style="color: #993333">image</span><span style="color: #66cc66">)</span> <span style="color: #993333">repeat-x</span> <span style="color: #000000; font-weight: bold">top</span> <span style="color: #000000; font-weight: bold">left</span>; <span style="color: #66cc66">}</span></pre>
<p>So if we look at the both examples we can see that the #great_example looks much better and needs only 1 line. The background properties works like this:</p>
<p class="wp_syntax">&nbsp;</p>
<p class="code">&nbsp;</p>
<pre class="css"><span style="color: #000000; font-weight: bold">background</span>: <span style="color: #66cc66">[</span><span style="color: #000000; font-weight: bold">color</span><span style="color: #66cc66">]</span> <span style="color: #66cc66">[</span>image<span style="color: #66cc66">]</span> <span style="color: #66cc66">[</span><span style="color: #993333">repeat</span><span style="color: #66cc66">]</span> <span style="color: #66cc66">[</span><span style="color: #000000; font-weight: bold">position</span><span style="color: #66cc66">]</span> <span style="color: #66cc66">[</span>attachment<span style="color: #66cc66">]</span>;</pre>
<p>There is many other shortcuts so i won’t show everyone, but here’s how margin/padding works:</p>
<p class="wp_syntax">&nbsp;</p>
<p class="code">&nbsp;</p>
<pre class="css"><span style="color: #cc00cc">#poor_example</span><span style="color: #66cc66">{</span>

<span style="color: #000000; font-weight: bold">margin-top</span>: <span style="color: #993333">1px</span>;

<span style="color: #000000; font-weight: bold">margin-right</span>: 2x;

<span style="color: #000000; font-weight: bold">margin-bottom</span>: <span style="color: #993333">3px</span>;

<span style="color: #000000; font-weight: bold">margin-left</span>: <span style="color: #993333">4px</span>;<span style="color: #66cc66">}</span></pre>
<p class="wp_syntax">&nbsp;</p>
<p class="code">&nbsp;</p>
<pre class="css"><span style="color: #cc00cc">#great_exmple</span> <span style="color: #66cc66">{</span> <span style="color: #000000; font-weight: bold">margin</span>: <span style="color: #993333">1px</span> <span style="color: #993333">2px</span> <span style="color: #993333">3px</span> <span style="color: #993333">4px</span>; <span style="color: #66cc66">}</span></pre>
<p>If we look at this one, we can see that the margin/padding works like this:</p>
<p class="wp_syntax">&nbsp;</p>
<p class="code">&nbsp;</p>
<pre class="css"><span style="color: #000000; font-weight: bold">margin</span>: <span style="color: #66cc66">[</span><span style="color: #000000; font-weight: bold">top</span><span style="color: #66cc66">]</span> <span style="color: #66cc66">[</span><span style="color: #000000; font-weight: bold">right</span><span style="color: #66cc66">]</span> <span style="color: #66cc66">[</span><span style="color: #000000; font-weight: bold">bottom</span><span style="color: #66cc66">]</span> <span style="color: #66cc66">[</span><span style="color: #000000; font-weight: bold">left</span><span style="color: #66cc66">]</span>;</pre>
<p>With all off the margin quadrants the same size you will only need to write <strong>margin: [pixels]</strong>. But there’s some other tips you could use with margin:</p>
<p class="wp_syntax">&nbsp;</p>
<p class="code">&nbsp;</p>
<pre class="css"><span style="color: #cc00cc">#margin</span> <span style="color: #66cc66">{</span> <span style="color: #000000; font-weight: bold">margin</span>: <span style="color: #993333">2px</span> <span style="color: #993333">5px</span>; <span style="color: #66cc66">}</span> <span style="color: #808080; font-style: italic">/* [Top/Bottom] [Right/Left] */</span><span style="color: #cc00cc">#margin</span> <span style="color: #66cc66">{</span> <span style="color: #000000; font-weight: bold">margin</span>: <span style="color: #993333">2px</span> <span style="color: #993333">5px</span> <span style="color: #993333">1px</span>; <span style="color: #66cc66">}</span> <span style="color: #808080; font-style: italic">/* [Top] [Right/Left] [Bottom] */</span></pre>
<p><strong>Structured coding</strong></p>
<p>The importances of writing nice looking and structured codes, will make the design simpler to see and edit plus the structed coed is easy on your eyes. A good tip is to block your styles, wich means that you’re nesting the child of an element, like this:</p>
<p class="wp_syntax">&nbsp;</p>
<p class="code">&nbsp;</p>
<pre class="css"><span style="color: #cc00cc">#menu</span> li <span style="color: #66cc66">{</span> <span style="color: #808080; font-style: italic">/* some neat code here */</span> <span style="color: #66cc66">}</span>    <span style="color: #cc00cc"></span></pre>
<pre class="css"><span style="color: #cc00cc">   #menu</span> li a <span style="color: #66cc66">{</span> <span style="color: #808080; font-style: italic">/* this is the child of #menu li }

</span></pre>
<p>This way you can see your corresponding codes better and it will make it easier to edit your code.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=HEomIFD"><img src="http://feeds.feedburner.com/~f/cssjuice?i=HEomIFD" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=FfGTUiD"><img src="http://feeds.feedburner.com/~f/cssjuice?i=FfGTUiD" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=ERJjuTD"><img src="http://feeds.feedburner.com/~f/cssjuice?i=ERJjuTD" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=GjpnUqd"><img src="http://feeds.feedburner.com/~f/cssjuice?i=GjpnUqd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=mhPsLyd"><img src="http://feeds.feedburner.com/~f/cssjuice?i=mhPsLyd" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/222944313" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/core-concept-of-css/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Fcore-concept-of-css%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/core-concept-of-css/</feedburner:origLink></item>
		<item>
		<title>htaccessEditor - Online .htaccess Files Creator</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/193812954/</link>
		<comments>http://www.cssjuice.com/htaccesseditor-online-htaccess-files-creator/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 04:40:31 +0000</pubDate>
		<dc:creator>Wallace</dc:creator>
		
		<category><![CDATA[Web Applications]]></category>

		<guid isPermaLink="false">http://cssjuice.com/htaccesseditor-online-htaccess-files-creator/</guid>
		<description><![CDATA[.htaccess is a text file containing commands that instruct web servers how to behave in certain situations, providing a way for you to make configuration changes on a per-directory basis.
.htaccess Editor enables you to easily create .htaccess files online without having to learn complex .htaccess rules. With the .htaccess editor, you can generate .htaccess code [...]]]></description>
			<content:encoded><![CDATA[<p>.htaccess is a text file containing commands that instruct web servers how to behave in certain situations, providing a way for you to make configuration changes on a per-directory basis.</p>
<p><a href="http://www.htaccesseditor.com/en.shtml">.htaccess Editor</a> enables you to easily create .htaccess files online without having to learn complex .htaccess rules. With the .htaccess editor, you can generate .htaccess code includes:</p>
<ul>
<li><strong>Basic authentication</strong> - used to specify the security restrictions for the particular directory.</li>
<li><strong>Custom error pages</strong> -  redirect visitors to pages that match your site design instead of the standard server error pages.</li>
<li><strong>Password protection</strong> - restrict access to certain directories by requiring a password to view the contents.</li>
<li><strong>Default pages</strong> - set default pages on a directory-by-directory basis.</li>
<li><strong>Redirect directives</strong> - redirect requests for a specific file or directory to a new destination.</li>
<li><strong>Access restrictions</strong> - allowed or denied certain addresses.</li>
</ul>
<p>Creating .htaccess files has never been easier with <a href="http://www.htaccesseditor.com/en.shtml">.htaccess Editor</a>.</p>
<p><img src="http://cssjuice.com/wp-content/uploads/2007/11/htaccesseditor.png" alt="htaccesseditor" /></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=KZro92C"><img src="http://feeds.feedburner.com/~f/cssjuice?i=KZro92C" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=YrQqonC"><img src="http://feeds.feedburner.com/~f/cssjuice?i=YrQqonC" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=OUdnUUC"><img src="http://feeds.feedburner.com/~f/cssjuice?i=OUdnUUC" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=dMgoX1c"><img src="http://feeds.feedburner.com/~f/cssjuice?i=dMgoX1c" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=GYSZjJc"><img src="http://feeds.feedburner.com/~f/cssjuice?i=GYSZjJc" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/193812954" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/htaccesseditor-online-htaccess-files-creator/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Fhtaccesseditor-online-htaccess-files-creator%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/htaccesseditor-online-htaccess-files-creator/</feedburner:origLink></item>
		<item>
		<title>Fresh RSS Button Set</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/193812955/</link>
		<comments>http://www.cssjuice.com/fresh-rss-button-set/#comments</comments>
		<pubDate>Sun, 18 Nov 2007 05:25:23 +0000</pubDate>
		<dc:creator>Wallace</dc:creator>
		
		<category><![CDATA[Icons]]></category>

		<guid isPermaLink="false">http://cssjuice.com/fresh-rss-button-set/</guid>
		<description><![CDATA[If you want to get more RSS readers, besides the content and web design, an attractive RSS button is necessary. Bloggers Journey offered a totally 51 Web 2.0 stylish RSS icons for free to download. Moreover, JackBook has already collected a large list of free beautiful RSS feed icons on the web, of course you [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to get more RSS readers, besides the content and web design, an attractive RSS button is necessary. <a href="http://bloggers-journey.com/blogging-news/51-rss-button-for-your-blog/">Bloggers Journey</a> offered a totally <strong>51</strong> Web 2.0 stylish RSS icons for free to download. Moreover, <a href="http://www.jackbook.com/2007/11/the-most-beautiful-feed-icons-ever-all-available-to-download.html" target="_blank">JackBook</a> has already collected a large list of free beautiful RSS feed icons on the web, of course you will find the best one for your blogs.</p>
<p><img src="http://cssjuice.com/wp-content/uploads/2007/11/rssicons.png" alt="rss_icons" /></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=HxBHRJC"><img src="http://feeds.feedburner.com/~f/cssjuice?i=HxBHRJC" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=FHGJyyC"><img src="http://feeds.feedburner.com/~f/cssjuice?i=FHGJyyC" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=4PxKf2C"><img src="http://feeds.feedburner.com/~f/cssjuice?i=4PxKf2C" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=Enx2vQc"><img src="http://feeds.feedburner.com/~f/cssjuice?i=Enx2vQc" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=0q3BrLc"><img src="http://feeds.feedburner.com/~f/cssjuice?i=0q3BrLc" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/193812955" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/fresh-rss-button-set/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Ffresh-rss-button-set%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/fresh-rss-button-set/</feedburner:origLink></item>
		<item>
		<title>FancyForm - Fancy Checkbox Replacement Script</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/193812956/</link>
		<comments>http://www.cssjuice.com/fancyform-fancy-checkbox-replacement-script/#comments</comments>
		<pubDate>Sat, 17 Nov 2007 10:31:11 +0000</pubDate>
		<dc:creator>Wallace</dc:creator>
		
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://cssjuice.com/fancyform-fancy-checkbox-replacement-script/</guid>
		<description><![CDATA[FancyForm is a fancy checkbox replacement script used to provide the ultimate flexibility in changing the appearance and function of HTML form elements. It&#8217;s easy to use and degrades gracefully on all older web browsers. All you need to setup is markup the fancy scripts to header section and add style class to your current [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://lipidity.com/fancy-form/">FancyForm</a> is a fancy checkbox replacement script used to provide the ultimate flexibility in changing the appearance and function of HTML form elements. It&#8217;s easy to use and degrades gracefully on all older web browsers. All you need to setup is markup the fancy scripts to header section and add style class to your current CSS style file. The script supports checkboxes, radio buttons and numerous advanced customization options. <a href="http://dev.lipidity.com/fancy-form/demo/" target="_blank">Check out</a> the full featured Fancy Form demo page or go straight download the <a href="http://dev.lipidity.com/fancy-form/fancy-form.zip">file</a>.</p>
<p><img src="http://cssjuice.com/wp-content/uploads/2007/11/fancyform.png" alt="fancyform" /></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=mw6Au2C"><img src="http://feeds.feedburner.com/~f/cssjuice?i=mw6Au2C" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=p41oBiC"><img src="http://feeds.feedburner.com/~f/cssjuice?i=p41oBiC" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=1fjxjEC"><img src="http://feeds.feedburner.com/~f/cssjuice?i=1fjxjEC" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=mlqHJMc"><img src="http://feeds.feedburner.com/~f/cssjuice?i=mlqHJMc" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=NmYkH6c"><img src="http://feeds.feedburner.com/~f/cssjuice?i=NmYkH6c" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/193812956" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/fancyform-fancy-checkbox-replacement-script/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Ffancyform-fancy-checkbox-replacement-script%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/fancyform-fancy-checkbox-replacement-script/</feedburner:origLink></item>
		<item>
		<title>Quickly Share Files with Drop.io</title>
		<link>http://feeds.feedburner.com/~r/cssjuice/~3/193812957/</link>
		<comments>http://www.cssjuice.com/quickly-share-files-with-dropio/#comments</comments>
		<pubDate>Sat, 17 Nov 2007 03:05:04 +0000</pubDate>
		<dc:creator>Wallace</dc:creator>
		
		<category><![CDATA[Web Applications]]></category>

		<guid isPermaLink="false">http://cssjuice.com/quickly-share-files-with-dropio/</guid>
		<description><![CDATA[If you have a file such as photos, video, audio, notes or docs you need to share online and keep it private truely, try Drop.io! It&#8217;s a new simple web-based AJAX supported file sharing and free online storage service that lets you store files quickly and privately even without sign up an account. You can [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://cssjuice.com/wp-content/uploads/2007/11/dropio_logo.gif" alt="drop_logo" align="right" />If you have a file such as photos, video, audio, notes or docs you need to share online and keep it private truely, try <a href="http://www.drop.io/">Drop.io</a>! It&#8217;s a new simple web-based AJAX supported file sharing and free online storage service that lets you store files quickly and privately even without sign up an account. You can use <strong>Drop.io</strong> for:</p>
<ul>
<li>Store and share files private</li>
<li>Create as many as storage drops as you want</li>
<li>Add password to any of your drops</li>
<li>Shared drops on &#8220;View Only&#8221;, &#8220;View &amp; Add Notes&#8221;, or &#8220;View, Add Notes &amp; Files&#8221; basis</li>
<li>Use drop_name@drop.io email address to add files (nice idea!)</li>
<li>Supports all major file formats</li>
<li>Automatically deleted drops from 1 day up to 1 year</li>
<li>Add related notes and links to any file</li>
</ul>
<p><a href="http://www.drop.io/">Drop.io</a> also have no any mess, clutter advertisements and easy to use, it&#8217;s definitely my alternative choice after the end of <a href="http://cssjuice.com/juicy-links-october-2007/">Filelime</a>.</p>
<p><img src="http://cssjuice.com/wp-content/uploads/2007/11/drop.png" alt="drop.io" /></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/cssjuice?a=Xe8yh6C"><img src="http://feeds.feedburner.com/~f/cssjuice?i=Xe8yh6C" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=RGAwgDC"><img src="http://feeds.feedburner.com/~f/cssjuice?i=RGAwgDC" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=pOCE1pC"><img src="http://feeds.feedburner.com/~f/cssjuice?i=pOCE1pC" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=hJy0PKc"><img src="http://feeds.feedburner.com/~f/cssjuice?i=hJy0PKc" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/cssjuice?a=8mErqGc"><img src="http://feeds.feedburner.com/~f/cssjuice?i=8mErqGc" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/cssjuice/~4/193812957" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.cssjuice.com/quickly-share-files-with-dropio/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=cssjuice&amp;itemurl=http%3A%2F%2Fwww.cssjuice.com%2Fquickly-share-files-with-dropio%2F</feedburner:awareness><feedburner:origLink>http://www.cssjuice.com/quickly-share-files-with-dropio/</feedburner:origLink></item>
	<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetFeedData?uri=cssjuice</feedburner:awareness></channel>
</rss>
