
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Developer Plus &#187; CSS</title>
	<atom:link href="http://webdeveloperplus.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://webdeveloperplus.com</link>
	<description>The Ultimate Web Developer&#039;s Resource</description>
	<lastBuildDate>Sun, 04 Jul 2010 11:38:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Tips to Write Better CSS Code</title>
		<link>http://webdeveloperplus.com/css/tips-to-write-better-css-code/</link>
		<comments>http://webdeveloperplus.com/css/tips-to-write-better-css-code/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 07:34:46 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css optimization]]></category>
		<category><![CDATA[good practices]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=607</guid>
		<description><![CDATA[CSS is a language that is not difficult to master, but if you use it for a large project, it can be very difficult to manage if you do not follow a defined approach while writing CSS code. Here are few tips that will help you write better and easy to manage CSS code. 1. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/11/better-css-code-tips.jpg" alt="Tips to write better CSS code" title="Tips to write better CSS code" width="500" height="200" class="alignnone size-full wp-image-621" /><br />
CSS is a language that is not difficult to master, but if you use it for a large project, it can be very difficult to manage if you do not follow a defined approach while writing CSS code. Here are few tips that will help you write better and easy to manage CSS code.</p>
<h4>1. Don&#8217;t Use Global Reset</h4>
<p>Using global reset to remove default margin and padding from all HTML elements is a strict no-no. Not only it is slow and inefficient way but you&#8217;ll have to define margin and padding for each element that needs it. Instead use subset of CSS Resets like one from <a href="http://meyerweb.com/eric/tools/css/reset/index.html">Eric Meyer</a>.<span id="more-607"></span><br />
<strong>Not Good</strong></p>
<pre name="code" class="css" >
*{ margin:0; padding:0; }
</pre>
<p><strong>Better</strong></p>
<pre name="code" class="css" >
html, body, div, dl, dt, dd, ul,  h1, h2, h3,  pre, form, label, fieldset, input, p, blockquote, th, td { margin:0; padding:0 }
table { border-collapse:collapse; border-spacing:0 }
fieldset, img { border:0 }
ul { list-style:none }
</pre>
<h4>2. Do not use IE Hacks</h4>
<p>Though CSS hacks might be useful to maintain consistent look of the website over older browsers like IE6, but they can be problematic for newer versions of IE as newer versions like IE8 do support CSS standards to a good level and using hacks might break out the layout. You should use conditional statements instead to target specific versions of Internet Explorer.<br />
For example, using the below lines of code within your <code>&lt;head&gt;</code> tag will load the iestyles.css file only when browser is Internet Explorer version 6 or less.</p>
<pre name="code" class="css" >
&lt;!--[if lte IE 6]&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;styles/ie-styles.css&quot; /&gt;
&lt;![endif]--&gt;
</pre>
<p>For information on conditional comments, refer to the quirksmode article on <a href="http://www.quirksmode.org/css/condcom.html">CSS Conditional Comments</a></p>
<h4>3. Use Meaningful names for IDs and Classes</h4>
<p>Suppose you define your sidebar styles using class <code>.leftbox</code> and after some redesign, you float it to right, then would it be meaningful to have leftbox as name for right floated box. You should put some thought before declaring classes and IDs for elements so that they are meaningful and easy to understand later.</p>
<h4>4. Utilize CSS Inheritance</h4>
<p>If multiple child elements of a parent element use same styles on your web page, it will be better to define them for their parent element and let the CSS inheritance do all the work. You&#8217;ll be able to easily update your code later and it&#8217;ll also reduce the CSS file size considerably.<br />
<strong>Not Good</strong></p>
<pre name="code" class="css" >
#container li{ font-family:Georgia, serif; }
#container p{ font-family:Georgia, serif; }
#container h1{font-family:Georgia, serif; }
</pre>
<p><strong>Better</strong></p>
<pre name="code" class="css" >
#container{ font-family:Georgia, serif; }
</pre>
<h4>5. Combine multiple Selectors</h4>
<p>You can combine multiple CSS selectors into one if they have common style definitions. It&#8217;ll save you time and space.</p>
<p><strong>Not Good</strong></p>
<pre name="code" class="css" >
h1{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }
h2{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }
h3{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }
</pre>
<p><strong>Better</strong></p>
<pre name="code" class="css" >
h1, h2, h3{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }
</pre>
<h4>6. Use Shorthand Properties</h4>
<p>Utilize the shorthand properties of CSS to quickly write CSS code and reduce file size. Shorthand notation can be used for <code> margin, padding, border, font, background</code> and also for color values.<br />
<strong>Not Good</strong></p>
<pre name="code" class="css" >
li{
	font-family:Arial, Helvetica, sans-serif;
	font-size: 1.2em;
	line-height: 1.4em;
	padding-top:5px;
	padding-bottom:10px;
	padding-left:5px;
}
</pre>
<p><strong>Better</strong></p>
<pre name="code" class="css" >
li{
	font: 1.2em/1.4em Arial, Helvetica, sans-serif;
	padding:5px 0 10px 5px;
}
</pre>
<p>Here&#8217;s a complete guide to <a href="http://www.456bereastreet.com/archive/200502/efficient_css_with_shorthand_properties/">CSS shorthand properties</a>.</p>
<h4>7. Organize CSS Code</h4>
<p>Organizing your CSS code in a certain pattern will make it easier to find things at later time and save you a lot of time looking for a specific style definition.<br />
Here is a sample organization that you may use:</p>
<pre name="code" class="css" >
/*-------------------------
	CSS Reset
-------------------------*/

/*-------------------------
	Generic Classes
-------------------------*/

/*-------------------------
	Layout styles
-------------------------*/

/*-------------------------
	Section specific styles
-------------------------*/
</pre>
<h4>8. Make CSS Readable</h4>
<p>Writing readable CSS will make it easier to find and  update a style declaration later. Either group all styles for a selector in one line or each style in its own line with proper indentation. You can also combine these two techniques together.</p>
<pre name="code" class="css" >
/*------------------------
	Each Style on new line
	---------------------*/
div{
	background-color:#3399cc;
	color:#666;
	font: 1.2em/1.4em Arial, Helvetica, sans-serif;
	height:300px;
	margin:10px 5px;
	padding:5px 0 10px 5px;
	width:30%;
	z-index:10;
}

/*------------------------
	All Styles on one line
	---------------------*/
div{ background-color:#3399cc; color:#666; font: 1.2em/1.4em Arial, Helvetica, sans-serif;  height:300px; margin:10px 5px; padding:5px 0 10px 5px; width:30%; z-index:10; }
</pre>
<h4>9. Add proper Comments</h4>
<p>Comments can be used to separate different sections of CSS code</p>
<pre name="code" class="css" >
/*--------------------
	Header
	-----------------*/
#header{ height:145px; position:relative; }
#header h1{ width:324px; margin:45px 0 0 20px; float:left;  height:72px;}

/*--------------------
	Content
	-----------------*/
#content{ background:#fff; width:650px; float:left; min-height:600px; overflow:hidden;}
#content .posts{ overflow:hidden; }
#content .recent{ margin-bottom:20px; border-bottom:1px solid #f3f3f3; position:relative; overflow:hidden; }

/*--------------------
	Footer
	-----------------*/
#footer{ clear:both; padding:50px 5px 0; overflow:hidden;}
#footer h4{ color:#b99d7f; font-family:Arial, Helvetica, sans-serif; font-size:1.1em; }
</pre>
<h4>10. Order CSS Properties Alphabetically</h4 >
This might be a difficult way to write CSS but it&#8217;ll make it easier for you to find out any property easily at a later stage.</p>
<pre name="code" class="css" >
div{
	background-color:#3399cc;
	color:	#666;
	font: 	1.2em/1.4em Arial, Helvetica, sans-serif;
	height:	300px;
	margin:	10px 5px;
	padding:5px 0 10px 5px;
	width:	30%;
	z-index:10;
}
</pre>
<h4>11. Use External Stylesheets</h4>
<p>It is always a good design practice to separate content from presentation. Place all of your CSS code into external stylesheets and use the <code>&lt;link&gt;</code> to reference stylesheets within a web page. By placing CSS into external files, you can easily update your styles later at one place instead of looking into html templates or files for styles.<br />
<strong>Not Good</strong></p>
<pre name="code" class="html" >
&lt;style type=&quot;text/css&quot; &gt;
	#container{ .. }
	#sidebar{ .. }
&lt;/style&gt;

OR

&lt;li style=&quot;font-family:Arial, helvetica, sans-serif; color:#666; &quot; &gt;
</pre>
<p><strong>Better</strong></p>
<pre name="code" class="html" >
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/styles.css&quot; /&gt;
</pre>
<h4>12. Split CSS into multiple files</h4>
<p>If you are working on a large web project that has multiple modules, each with different set of styles and looks, it will be better to split your CSS files into multiple files based on the module they are applied to. You can separate stylesheets like, one for reset, one for layout, one for generic classes and one for module specific styles. This technique will let you organize your code easily in a large project but loading multiple CSS files means more HTTP requests and slower loading time, this is where Bridging CSS files come to rescue. Create a separate CSS file and import other CSS files into it.</p>
<pre name="code" class="css" >
@import &quot;style/css/reset.css&quot;;
@import &quot;style/css/typography.css&quot;;
@import &quot;style/css/layout.css&quot;;
</pre>
<h4>13. Compress CSS code</h4>
<p>Once you are ready to deploy the web design project, compress your CSS code using tools like <a href="http://www.csscompressor.com/">CSS Compressor</a> to reduce file size and improve loading time of webpage.</p>
<h4>14. Be Consistent in Writing CSS</h4>
<p>When you work on multiple web development projects, it&#8217;ll be a wise decision to choose a particular way of organizing and formatting your CSS code and stick to that way for all your projects. </p>
<p>I hope these tips will help you write better and manageable CSS code. If you would like to share a tip or two, feel free to add your comment below.</p>
<p>Related posts:<ol>
<li><a href='http://webdeveloperplus.com/css/25-incredibly-useful-css-tricks-you-should-know/' rel='bookmark' title='25 Incredibly Useful CSS Tricks You Should Know'>25 Incredibly Useful CSS Tricks You Should Know</a></li>
<li><a href='http://webdeveloperplus.com/css/15-time-saving-css-tools/' rel='bookmark' title='15 Time Saving CSS Tools You Should Be Aware Of'>15 Time Saving CSS Tools You Should Be Aware Of</a></li>
<li><a href='http://webdeveloperplus.com/css/css-tooltip-box-without-images/' rel='bookmark' title='CSS Tooltip Box Without Images'>CSS Tooltip Box Without Images</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/css/tips-to-write-better-css-code/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>15 Ways to Improve CSS Techniques Using jQuery</title>
		<link>http://webdeveloperplus.com/css/15-ways-to-improve-css-techniques-using-jquery/</link>
		<comments>http://webdeveloperplus.com/css/15-ways-to-improve-css-techniques-using-jquery/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 01:36:37 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Popular]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[jquery plugins]]></category>
		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=516</guid>
		<description><![CDATA[CSS is great and when it is combined with powerful JavaScript frameworks like jQuery, you can enhance the user experience by providing more intuitive and responsive web interface. Here are 15 ways you can use jQuery to improve CSS techniques.]]></description>
			<content:encoded><![CDATA[<p>CSS is great and when it is combined with powerful JavaScript frameworks like jQuery, you can achieve some really amazing things. Combining these two together will let you enhance the user experience by providing more intuitive and responsive web interface. Here are 15 ways you can use jQuery to improve CSS techniques.</p>
<h4>1. Custom Styled Radio Buttons and Checkboxes</h4>
<p>It is always hard and next to impossible to customize style of radio buttons and checkboxes. But using jQuery we can easily customize the radio buttons and check boxes to make them more user friendly. Here are two different ways to stylize them:</p>
<p><a href="http://www.filamentgroup.com/examples/customInput/" ><strong>Custom Designed Checkbox and Radio Buttons</strong></a><br />
<img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/custom-checkboxes.png" alt="Custom Styled Checkboxes and radio buttons" title="Custom Styled Checkboxes and radio buttons" width="500" height="142" class="alignnone size-full wp-image-520" /><br />
<span id="more-516"></span><br />
<a href="http://www.protofunc.com/scripts/jquery/checkbox-radiobutton/" ><strong>Radio Button and Checkbox replacement.</strong></a><br />
<img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/custom-checkboxes-2.png" alt="radiobutton and check box replacement with jquery" title="radiobutton and check box replacement with jquery" width="500" height="161" class="alignnone size-full wp-image-521" /></p>
<h4>2. Setting Equal Heights with jQuery</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/equal-height-jquery.png" alt="equal height columns using jquery" title="equal height columns using jquery" width="475" height="240" class="alignnone size-full wp-image-524" /><br />
Creating the visual effect of equal-height columns or content boxes has been a challenge ever since we abandoned table-based layouts. Here&#8217;s the jQuery way to set equal height of multiple elements using the <a href="http://www.filamentgroup.com/lab/setting_equal_heights_with_jquery/">equalHeights plugin</a>. With this plugin, you can make equal height columns with just a single line of code.</p>
<pre name="code" class="js" >
$(&quot;someselector&quot;).equalHeights();
</pre>
<h4>3. Styling Select Elements </h4>
<p><code>&lt;select&gt;</code> is another HTML element that is not easy to customize using CSS, but with jQuery at our disposal, we can certainly make them look cool and usable. </p>
<p><a href="http://www.filamentgroup.com/lab/jquery_ui_selectmenu_an_aria_accessible_plugin_for_styling_a_html_select/" ><strong>jQuery UI Selectmenu</strong></a><br />
This is a plugin for jQuery UI that lets you customize select elements easily.<br />
<img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/selectmenu-jquery-ui.png" alt="jquery ui selectmenu plugin" title="jquery ui selectmenu plugin" width="500" height="160" class="alignnone size-full wp-image-526" /></p>
<p><a href="http://marghoobsuleman.com/mywork/jcomponents/image-dropdown/jquery-image-dropdown-2.1/index.html" ><strong>jQuery image dropdown</strong></a><br />
<img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/image-dropdown.png" alt="jQuery image dropdown" title="jQuery image dropdown" width="500" height="186" class="alignnone size-full wp-image-525" /></p>
<h4>4. Current Field Highlighting in Forms</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/current-field-highlight.png" alt="highlight current field in a form" title="highlight current field in a form" width="500" height="107" class="alignnone size-full wp-image-519" /><br />
It is always good to provide a visual feedback to users when they perform any action while using a web form. Highlighting the field in which user is currently typing is one of the usability features you should add to web forms. Though, this can be achieved using the <code>:focus</code> pseudo selector in CSS. But this technique of <a href="http://css-tricks.com/improved-current-field-highlighting-in-forms/" >highlighting the label along with the selected input field</a> from CSS Tricks provides good user experience.</p>
<h4>5. Fix IE Overflow problem</h4>
<p>Internet Explorer has this rather strange problem, when <code>overflow</code> is set to auto or scroll, the scrollbar shows up inside the width of element. This is fine when you have multiple lines of text within that element, but if you just have a single line of text, then scrollbar would cover that and it won&#8217;t be visible. This <a href="http://remysharp.com/2008/01/21/fixing-ie-overflow-problem/">jQuery technique</a> from Remy Sharp will fix that IE bug.</p>
<h4>6. Block Hover Effect</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/jquery-biggerlink.png" alt="jquery biggerlink" title="jquery biggerlink" width="500" height="160" class="alignnone size-full wp-image-527" /><br />
Creating block hover effect with CSS using <code>display:block</code> is possible but when you have some other content inside a box alongside the link, then it is not possible to create a semantically correct block hover effect using CSS. Here&#8217;s a nice jQuery plugin &#8211; <a href="http://www.ollicle.com/eg/jquery/biggerlink/" ><strong>Bigger Link</strong></a> to achieve that.</p>
<h4>7. Rounded Corners</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/jquery-curvy-corners.png" alt="jQuery Curvy Corners" title="jQuery Curvy Corners" width="500" height="160" class="alignnone size-full wp-image-530" /><br />
CSS Rounded corners are now supported by most browsers like Firefox, Safari but some browsers like IE do not support them. For those unsupported browsers, you can use <a href="http://blue-anvil.com/jquerycurvycorners/test.html" ><strong>jQuery Curvy Corners</strong></a>.</p>
<h4>8. Attractive Menus with jQuery</h4>
<p>Creating a CSS based navigational menu that displays hover state separately is not difficult, but with a little amount of jQuery you can achieve some really nice effects. Check out these two example menus that use jQuery to produce a very subtle hover effect.<br />
<a href="http://www.queness.com/post/411/create-an-attractive-jquery-menu-with-fadein-and-fadeout-effect" ><strong>Create an Attractive jQuery Menu with Fade In and Fade Out Effect</strong></a><br />
<img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/jquery-attractive-menu.png" alt="Attractive menu with jQuery" title="Attractive menu with jQuery" width="500" height="89" class="alignnone size-full wp-image-532" /><br />
<a href="http://www.shopdev.co.uk/blog/animated-menus-using-jquery/" ><strong>Animated Menu Using jQuery</strong></a><br />
<img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/jquery-animated-menu.png" alt="Animated menu with jQuery" title="Animated menu with jQuery" width="500" height="100" class="alignnone size-full wp-image-531" /></p>
<h4>9. Creating a Floating HTML Menu Using jQuery and CSS</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/live-floating-menu.png" alt="Live Floating Menu" title="Live Floating Menu" width="500" height="190" class="alignnone size-full wp-image-535" /><br />
You can fix the position of an element using the <code>position:fixed</code> property but that won&#8217;t provide as rich user experience as <a href="http://net.tutsplus.com/html-css-techniques/creating-a-floating-html-menu-using-jquery-and-css/">Live floating menu using jQuery</a>. It creates a floating menu on the page and as you scroll down, menu also follows your mouse  scroll.</p>
<h4>10. Splitting Content over multiple columns</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/columnizer-jquery-plugin.png" alt="Split content into multiple columns" title="Split content into multiple columns" width="500" height="250" class="alignnone size-full wp-image-536" /><br />
Ever thought of splitting text of a page into multiple columns just like newspaper. With CSS, this will take a lot of effort but this <a href="http://welcome.totheinter.net/columnizer-jquery-plugin/"><strong>Columnizer jQuery plugin</strong></a> will do all the effort for you to split content into multiple columns with a single line of code.</p>
<h4>11. Semantic Blockquotes with jQuery</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/blockquotes.jpg" alt="Semantic Blockquoteswith jQuery" title="Semantic Blockquoteswith jQuery" width="500" height="141" class="alignnone size-full wp-image-537" /><br />
If you use blockquotes in your design to highlight important points of an article, then you also duplicate the content within blockquotes as it is also there in the article. Here&#8217;s a <a href="http://www.thewebsqueeze.com/web-design-tutorials/semantic-blockquotes-with-jquery.html">nice jquery way</a> to do this leaving the duplication of content to jQuery by specifying which content to show as blockquote.</p>
<h4>12. Text Shadows</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/text-shadow-ie.png" alt="Text Shadow in IE" title="Text Shadow in IE" width="500" height="170" class="alignnone size-full wp-image-538" /><br />
CSS3 includes a nice property of text-shadow that allows you to set a text-shadow generate nice text-effects without using any images. But IE does not support this feature till date. <a href="http://kilianvalkhof.com/2008/javascript/text-shadow-in-ie-with-jquery/" ><strong>Text-shadow in IE</strong></a> adds this support to Internet Explorer using jQuery.</p>
<h4>13. Border Image</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/10/border-image.png" alt="CSS3 border-image" title="CSS3 border-image" width="465" height="177" class="alignnone size-full wp-image-539" /><br />
CSS3 lets you use images as border backgrounds in addition to just colors. But since it is not supported my many browsers, you&#8217;ll need jQuery to come to rescue. <a href="http://www.lrbabe.com/sdoms/borderImage/index.html"><strong>jQuery.borderimage</strong></a> provides cross-browser support for <code>border-image</code> property.</p>
<h4>14. Opacity</h4>
<p>Opacity is one such CSS property which is supported by most browsers including IE but each has a different way to implement it, though CSS3 standard defines a property <code>opacity</code> to be used for setting opacity of elements, but you end up writing many lines of CSS code just to make opacity cross-browser compatible. jQuery can make this easier too.</p>
<pre name="code" class="js" >
$(&quot;someselectoe&quot;).css(&quot;opacity&quot;, 0.5);
</pre>
<h4>15. Super CSS Selector Support with jQuery</h4>
<p>CSS 2.1 supports various types of selectors including <code>:focus, :first-child, nth-child</code> but not all browsers(IE!) support these selectors. but with <a href=" http://skulljackpot.com/2009/04/19/super-css-selector-support-with-jquery/"><strong>Super CSS Selector</strong></a>, you can be sure to have support for those selectors even in IE.</p>
<p>Related posts:<ol>
<li><a href='http://webdeveloperplus.com/css/21-amazing-css-techniques-you-should-know/' rel='bookmark' title='21 Amazing CSS Techniques You Should Know'>21 Amazing CSS Techniques You Should Know</a></li>
<li><a href='http://webdeveloperplus.com/jquery/21-brilliant-jquery-image-galleryslideshow-plugins/' rel='bookmark' title='21 Brilliant jQuery Image Gallery/Slideshow Plugins'>21 Brilliant jQuery Image Gallery/Slideshow Plugins</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/css/15-ways-to-improve-css-techniques-using-jquery/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>15 Time Saving CSS Tools You Should Be Aware Of</title>
		<link>http://webdeveloperplus.com/css/15-time-saving-css-tools/</link>
		<comments>http://webdeveloperplus.com/css/15-time-saving-css-tools/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 06:14:32 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css optimization]]></category>
		<category><![CDATA[layout generator]]></category>
		<category><![CDATA[speed optimization]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=448</guid>
		<description><![CDATA[CSS is the essential component of modern web design. But writing the CSS code from scratch for each web design project is a tiring and time-consuming job. Here are 15 CSS tools ranging from layout generators, form generators to code compressors that will save you a lot of time writing the CSS code for your [...]]]></description>
			<content:encoded><![CDATA[<p>CSS is the essential component of modern web design. But writing the CSS code from scratch for each web design project is a tiring and time-consuming job. Here are 15 CSS tools ranging from layout generators, form generators to code compressors that will save you a lot of time writing the CSS code for your next web design.</p>
<h4>1. <a href="http://csstypeset.com/" target="_blank">CSS Typeset</a></h4>
<p><img class="largepostimage" title="CSS Typeset" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/css-typeset.png" alt="" width="605" height="344" /></p>
<p>CSS Typeset is a handy tool that allows to test different font-styles on a piece of text and provides with the CSS code for chosen font-style that you can copy paste into your stylesheet quickly.</p>
<h4>2. <a href="http://www.typetester.org/" target="_blank">TypeTester</a></h4>
<p><img class="largepostimage" title="Type Tester" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/Typetester.jpg" alt="" width="613" height="204" /></p>
<p>TypeTester is similar to CSS Typeset but with this, you can compare three different font-styles simultaneously and choose the one you find suitable. It also lets you specify the base font-size to adjust the <em>em</em> values.</p>
<h4>3. <a href="http://lab.xms.pl/css-generator/" target="_blank">CSS Frame Generator</a></h4>
<p><img class="largepostimage" title="CSS Frame Generator" src="http://webdeveloperplus.com/wp-content/uploads/2009/10/css-frame-generator.jpg" alt="CSS Frame Generator" width="600" height="292" /></p>
<p>CSS Frame Generator generates an empty CSS frame for provided HTML elements. Just copy paste the XHTML content and it&#8217;ll create a CSS Frame and then you can add styles to the CSS frame which will save you a lot of time.</p>
<h4>4. <a href="http://developer.yahoo.com/yui/grids/builder/" target="_blank">CSS Grid Builder</a></h4>
<p><img class="largepostimage" title="CSS Grid Builder" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/css-grid-buider.png" alt="" width="600" height="317" /></p>
<p>With CSS Grid Builder, you can quickly create a CSS-based, standards compliant web page layout. It uses the YUI Grids CSS framework which supports more than 1000 types of layouts.</p>
<h4>5. <a href="http://builder.yaml.de/" target="_blank">YAML Builder</a></h4>
<p><img class="largepostimage" title="YAML Builder" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/yaml-builder.jpg" alt="" width="600" height="251" /></p>
<p>YAML Builder is another layout generation tool that uses YAML framework to create grid layouts.</p>
<h4>6. <a href="http://www.spiffycorners.com" target="_blank">Spiffy Corners</a></h4>
<p><img class="largepostimage" title="Spiffy Corners" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/spiffy-corners.jpg" alt="" width="498" height="307" /></p>
<p>Spiffy Corners lets you create rounded corner flexible boxes without any images. With just few clicks you can add nice looking rounded corner box to your web page.</p>
<h4>7. <a href="http://www.jotform.com/" target="_blank">JotForm</a></h4>
<p><img class="largepostimage" title="Jot Form" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/Jotform.png" alt="" width="604" height="302" /></p>
<p>JotForm makes creating HTML forms a breeze. With its Visual drag drop interface, you can quickly create HTML forms. Also there are pre-built templates like registration form, feedback form which you can use to set up your web forms in almost no time.</p>
<h4>8. <a href="http://www.askthecssguy.com/kotatsu" target="_blank">Kotatsu</a></h4>
<p><img class="largepostimage" title="Kotastu Table Generator" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/kotatsu.png" alt="" width="399" height="192" /></p>
<p>Kotatsu lets you easily and quickly create HTML tables and attach CSS classes to rows, columns and cells of table.</p>
<h4>9. <a href="http://spritegen.website-performance.org/" target="_blank">CSS Sprite Generator</a></h4>
<p>CSS Sprite Generator is a big time saver. Just upload a zip file containing all the images you want to convert into CSS sprite, it&#8217;ll not only create the sprite image but will also provide you with CSS styles which you can quickly use in your web page to utilize CSS sprites.</p>
<h4>10. <a href="http://jigsaw.w3.org/css-validator/" target="_blank">W3C CSS Validator</a></h4>
<p><img class="largepostimage" title="W3C CSS Validator" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/w3c-css-validation.png" alt="" width="600" height="279" /></p>
<p>W3C CSS validator is perhaps the most widely used CSS validator. It is a great time saver in the sense as it points out various errors within your stylesheet so that you can create better and more accessible web pages.</p>
<h4>11. <a href="http://www.lonniebest.com/FormatCSS/" target="_blank">Format CSS</a></h4>
<p><img class="largepostimage" title="Format CSS" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/format-css.png" alt="" width="601" height="237" /></p>
<p>With FormatCSS, you can upload your CSS code and select from the options available to achieve code formatting the way you want. For example you can convert a compact CSS code into readable form with proper line-breaks and indentation or vice-versa.</p>
<h4>12. <a href="https://addons.mozilla.org/en-US/firefox/addon/5392" target="_blank">Dust-Me Selectors</a></h4>
<p>Dust-Me Selectors is a firefox add-on that analyzes the opened web page&#8217;s HTML content and CSS code to find out those style definitions that are not used.</p>
<h4>13. <a href="http://www.cssoptimiser.com/" target="_blank">CSS Optimizer</a></h4>
<p>CSS Optimizer is a tool for optimizing the file size of CSS files. It extracts every whitespace character out of CSS file to considerably reduce the file size.</p>
<h4>14. <a href="http://services.immike.net/css-checker/" target="_blank">CSS Redundancy Checker</a></h4>
<p><img class="largepostimage" title="CSS Redundency Checker" src="http://static.webdeveloperplus.com/uploads/2009/10/CSS-Tools/css-redundency-checker.png" alt="" width="555" height="355" /></p>
<p>CSS Redundancy Checker finds out redundant CSS styles that are no longer in use on your web pages so that you can remove them from the stylesheet to reduce CSS file size.</p>
<h4>15. <a href="http://csstidy.sourceforge.net/" target="_blank">CSSTidy</a></h4>
<p>CSSTidy is an open source CSS optimizer and parser that cleans up unnecessary white space within CSS file, modifies the color values to reduce the file size and optimizes margin, padding values and removes the last semi-colon from style definitions to reduce the file size.</p>
<p>If you know of some other CSS tool that you think should be listed here, do tell us in comments below.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/css/15-time-saving-css-tools/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>25 Incredibly Useful CSS Tricks You Should Know</title>
		<link>http://webdeveloperplus.com/css/25-incredibly-useful-css-tricks-you-should-know/</link>
		<comments>http://webdeveloperplus.com/css/25-incredibly-useful-css-tricks-you-should-know/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 05:48:59 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Popular]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=317</guid>
		<description><![CDATA[Here are 25 incredibly useful CSS tricks that will help you design great web interfaces. You might be aware of some or all of these techniques, but this can be your handy resource to nifty CSS tricks that you should know. 1. Change Text Highlight Color You might not have known this before! With CSS [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/09/useful-css-tricks.png" alt="Useful CSS Tricks" title="Useful CSS Tricks" width="567" height="232" class="largepostimage" /><br />
Here are 25 incredibly useful CSS tricks that will help you design great web interfaces. You might be aware of some or all of these techniques, but this can be your handy resource to nifty CSS tricks that you should know.</p>
<h4>1. Change Text Highlight Color</h4>
<p>You might not have known this before! With CSS you can control the colors of selected test at least for <del>standards compliant</del> cutting edge browsers like Safari or Firefox.</p>
<pre name="code" class="css" >
::selection{ /* Safari and Opera */
	background:#c3effd;
	color:#000;
}
::-moz-selection{ /* Firefox */
	background:#c3effd;
	color:#000;
}
</pre>
<h4>2. Prevent Firefox Scrollbar Jump</h4>
<p>Firefox usually hides the vertical scrollbar if size of the content is less than the visible window but you can fix that using this simple CSS trick.</p>
<pre name="code" class="css" >
html{ overflow-y:scroll; }
</pre>
<h4>3. Print Page Breaks</h4>
<p>While most of the internet users prefer to read content online but some of your users might like to print your article. With CSS you can control the page breaks within content just add this CSS class to your stylesheet and add this class to any tag which you would like to print on next page.</p>
<pre name="code" class="css" >
.page-break{ page-break-before:always; }
</pre>
<h4>4. Using !important</h4>
<p>Experienced CSS programmers are usually aware of this but beginners do miss out on this <code>!important</code> CSS rule. By adding !important to your CSS rule, you can increase its precedence over other subsequent rules. e.g. in below code, background-color will be blue and not red due to <code>!important</code>.</p>
<pre name="code" class="css" >
.page { background-color:blue !important;   background-color:red;}
</pre>
<h4>5. Replace Text With Image</h4>
<p>This is a nice SEO trick that lets you show a nice fancy image instead of simple boring text to your visitors but search engines will see only the text.</p>
<pre name="code" class="css" >
.header{
	text-indent:-9999px;
	background:url('someimage.jpg') no-repeat;
	height: 100px; /*dimensions equal to image size*/
	width:500px;
}
</pre>
<h4>6. Cross Browser Minimum Height</h4>
<p>Internet Explorer does not understand the min-height property but here&#8217;s the CSS trick to accomplish that in IE.</p>
<pre name="code" class="css" >
#container{
	height:auto !important;/*all browsers except ie6 will respect the !important flag*/
	min-height:500px;
	height:500px;/*Should have the same value as the min height above*/
}
</pre>
<h4>7. Highlight links that open in a new window</h4>
<p>This piece of CSS code will highlight links that open in a new window so that user knows before hand that link will pop open in a new tab or window.</p>
<pre name="code" class="css" >
a[target=&quot;_blank&quot;]:before,
a[target=&quot;new&quot;]:before {
	margin:0 5px 0 0;
	padding:1px;
	outline:1px solid #333;
	color:#333;
	background:#ff9;
	font:12px &quot;Zapf Dingbats&quot;;
	content: &quot;\279C&quot;;
}
</pre>
<h4>8. Style Your Ordered List</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/09/ordered-list-style.png" alt="Style Ordered List" title="Style Ordered List" width="102" height="93" class="alignleft size-full wp-image-333" style="border:1px solid #eee;" /><br />
Style numbers of an ordered list in different way than the content of each list item.<br />
<br class="clear" /></p>
<pre name="code" class="css" >
ol {
	font: italic 1em Georgia, Times, serif;
	color: #999999;
}
ol p {
	font: normal .8em Arial, Helvetica, sans-serif;
	color: #000000;
}
</pre>
<h4>9. Drop Caps Using CSS</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/09/drop-caps.png" alt="Drop Caps using CSS" title="Drop Caps using CSS" width="428" height="106" class="largepostimage" /><br />
You can create a drop caps effect like those in newspapers or magazines using the <em>:first-letter</em> pseudo element.</p>
<pre name="code" class="css" >
p:first-letter{
display:block;
margin:5px 0 0 5px;
float:left;
color:#FF3366;
font-size:3.0em;
font-family:Georgia;
}
</pre>
<h4>10. Cross Browser Opacity</h4>
<p>Though CSS3 standard includes the opacity property, but not every browser supports it, here&#8217;s the CSS trick for cross browser transparency.</p>
<pre name="code" class="css" >
.transparent_class {
	filter:alpha(opacity=50);
	-moz-opacity:0.5;
	-khtml-opacity: 0.5;
	opacity: 0.5;
}
</pre>
<h4>11. Vertical centering with line-height</h4>
<p>If you are using fixed height container and need to vertically center the text, use the line-height property to do that perfectly.</p>
<pre name="code" class="css" >
line-height:30px;
</pre>
<h4>12. Center Fixed Width layout</h4>
<p>If you use fixed width layout, you should center the layout so that if somebody views it on larger screen, the page displays in the center of the screen and not on left side.</p>
<pre name="code" class="css" >
body{
	width:1000px;
	margin:0 auto;
}
</pre>
<h4>13. Remove vertical textarea scrollbar in IE</h4>
<p>IE adds a vertical scrollbar to textarea input fields regardless of the height of content in it. You can fix that with this simple CSS trick.</p>
<pre name="code" class="css" >
textarea{
	overflow:auto;
}
</pre>
<h4>14. Remove active link borders</h4>
<p>Some browsers like Firefox and IE add a dotted outline border over the link user clicked. It is a useful accessibility feature that lets user know which link he clicked or is in focus. But sometimes you need to get rid of this, here&#8217;s the CSS you need to use.</p>
<pre name="code" class="css" >
a:active, a:focus{ outline:none; }
</pre>
<h4>15. Prevent Elements from disappearing in IE</h4>
<p>Sometimes IE behaves in a peculiar way and makes some elements disappear, which appear when you try to make a selection. It is due to some IE issues with float elements. This can be fixed by adding <code>position:relative;</code> to elements that disappears.</p>
<h4>16. Attribute-Specific Icons</h4>
<p>CSS Attribute selectors are very powerful giving you many options to control styles of different elements e.g. you can add an icon based on the <code>href</code> attribute of the <code>a</code> tag to let the user know whether link points to an image, pdf, doc file etc.</p>
<pre name="code" class="css" >
a[href$='.doc'] {
	padding:0 20px 0 0;
	background:transparent url(/graphics/icons/doc.gif) no-repeat center right;
}
</pre>
<h4>17. CSS Pointer Cursors</h4>
<p>This trend has caught up lately. All user interface elements on a web page that can be clicked by user have their cursor similar to that of hyperlink. Here&#8217;s the CSS trick to do that.</p>
<pre name="code" class="css" >
input[type=submit],label,select,.pointer { cursor:pointer; }
</pre>
<h4>18. Capitalize Text</h4>
<p>This trick is especially useful for displaying title of an article on a web page with all its words starting with capital letter.</p>
<pre name="code" class="css" >
text-transform: capitalize;
</pre>
<h4>19. Small Caps Text</h4>
<p>This is one of the lesser used but useful CSS property. It capitalizes all the letters of text but the size of letters following the first letter of each word is smaller than the first letter.</p>
<pre name="code" class="css" >
font-variant:small-caps;
</pre>
<h4>20. Highlight Text Input Fields</h4>
<p>This CSS trick lets you highlight the input field currently in focus. This trick does not work in IE though.</p>
<pre name="code" class="css" >
input[type=text]:focus, input[type=password]:focus{
	border:2px solid #000;
}
</pre>
<h4>21. Remove Image Border</h4>
<p>Image hyperlinks usually get a ugly blue border that makes your image hyperlinks look horrible. It&#8217;s better to remove border on all hyperlinked images and add individually to those you want using CSS classes.</p>
<pre name="code" class="css" >
a img{ border:none; }
</pre>
<h4>22. Tableless Forms Using labels</h4>
<p><img src="http://webdeveloperplus.com/wp-content/uploads/2009/09/tableless-forms.png" alt="Tableless Forms using labels and CSS" title="Tableless Forms using labels and CSS" width="302" height="80" class="largepostimage" /><br />
Gone are the days when tables were used to layout Forms. CSS lets you make accessible forms with table like layout using label tags. Using label tags makes sure your forms are more accessible. Here&#8217;s sample html and css code for tableless form using labels.</p>
<pre name="code" class="html" >
&lt;form method=&quot;post&quot; action=&quot;#&quot; &gt;
	&lt;p&gt;&lt;label for=&quot;username&quot; &gt;Username&lt;/label&gt;
		&lt;input type=&quot;text&quot; id=&quot;username&quot; name=&quot;username&quot; /&gt;
	&lt;/p&gt;
	&lt;p&gt;&lt;label for=&quot;password&quot; &gt;Username&lt;/label&gt;
		&lt;input type=&quot;password&quot; id=&quot;password&quot; name=&quot;pass&quot; /&gt;
	&lt;/p&gt;
	&lt;p&gt;&lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;&lt;/p&gt;
&lt;/form&gt;
</pre>
<pre name="code" class="css" >
p label{
	width:100px;
	float:left;
	margin-right:10px;
	text-align:right;
}
</pre>
<h4>23. Set a Consistent Base Font Size</h4>
<p>Setting the font-size property to 62.5% in body tag makes 1em equal to 10px. This lets you use em easily as you can find out the font-size in pixels from em values.</p>
<pre name="code" class="css" >
body{ font-size:62.5%; }
</pre>
<h4>24. Highlight Acronym and Abbr Tags</h4>
<p><code>acronym</code> and <code>abbr</code> tags provide useful information to users, browsers and search engines about acronyms and abbreviations, but most of the browsers except Firefox do not highlight them. Here&#8217;s the CSS trick to highlight acronym and abbr tags within your web page.</p>
<pre name="code" class="css" >
acronym, abbr{
	border-bottom:1px dotted #333;
	cursor:help;
}
</pre>
<h4>25. CSS Reset by <a href="http://meyerweb.com/eric/tools/css/reset/" target="_blank">Eric Meyer</a></h4>
<p>This piece of CSS code resets all the browser default styles preventing any browser inconsistencies in your CSS styles.</p>
<pre name="code" class="css" >
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}

/* remember to define focus styles! */
:focus {
outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
text-decoration: none;
}
del {
text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
}
</pre>
<p>Related posts:<ol>
<li><a href='http://webdeveloperplus.com/css/21-amazing-css-techniques-you-should-know/' rel='bookmark' title='21 Amazing CSS Techniques You Should Know'>21 Amazing CSS Techniques You Should Know</a></li>
<li><a href='http://webdeveloperplus.com/css/15-ways-to-improve-css-techniques-using-jquery/' rel='bookmark' title='15 Ways to Improve CSS Techniques Using jQuery'>15 Ways to Improve CSS Techniques Using jQuery</a></li>
<li><a href='http://webdeveloperplus.com/css/css-tooltip-box-without-images/' rel='bookmark' title='CSS Tooltip Box Without Images'>CSS Tooltip Box Without Images</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/css/25-incredibly-useful-css-tricks-you-should-know/feed/</wfw:commentRss>
		<slash:comments>71</slash:comments>
		</item>
		<item>
		<title>21 Amazing CSS Techniques You Should Know</title>
		<link>http://webdeveloperplus.com/css/21-amazing-css-techniques-you-should-know/</link>
		<comments>http://webdeveloperplus.com/css/21-amazing-css-techniques-you-should-know/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 08:16:51 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Popular]]></category>
		<category><![CDATA[animated menus]]></category>
		<category><![CDATA[typeface]]></category>
		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=159</guid>
		<description><![CDATA[Cascading Style Sheets(CSS) is one of the building blocks of modern web design without which websites would have been ugly just like they were a decade ago. With time, the quality of CSS tutorials out there on the web has increased considerably. Here are 21 amazing CSS Techniques that you might not have thought could [...]]]></description>
			<content:encoded><![CDATA[<p>Cascading Style Sheets(CSS) is one of the building blocks of modern web design without which websites would have been ugly just like they were a decade ago. With time, the quality of CSS tutorials out there on the web has increased considerably. Here are 21 amazing CSS Techniques that you might not have thought could be done by CSS.</p>
<h4>1. <a href="http://www.cssplay.co.uk/menu/slide_show" target="_blank">Cross Browser CSS SlideShow</a></h4>
<p><img class="largepostimage" title="Cross Browser CSS Slideshow" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/cross-browser-slide-show.jpg" alt="" width="589" height="390" /></p>
<p>Amazing demonstration of how to create a cross browser image gallery  using just CSS.</p>
<h4>2. <a href="http://www.frankmanno.com/ideas/css-imagemap/" target="_blank">CSS Based Image Maps</a></h4>
<p><img class="largepostimage" title="CSS Based Image Map" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/CSS-only-image-map.jpg" alt="" width="341" height="261" /></p>
<p>This tutorial demonstrates a crazy way to create an image map using just CSS.</p>
<h4>3. <a href="http://www.cssplay.co.uk/menu/lightbox-hover.html" target="_blank">No JavaScript LightBox Using CSS</a></h4>
<p><img class="largepostimage" title="No JavaScript LightBox using CSS" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/Css-Only-LightBox.jpg" alt="" width="574" height="293" /></p>
<p>Create a lighbox using just CSS with no JavaScript required.</p>
<h4>4. <a href="http://www.ampsoft.net/webdesign-l/image-button.html" target="_blank">Image Replacement for Buttons</a></h4>
<p><img class="largepostimage" title="Replace Submit Button With Image" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/image-replacement-submit-button.jpg" alt="" width="439" height="99" /></p>
<p>Replace the submit buttons with images using CSS, degrades back to submit button if CSS is disabled.</p>
<h4>5. <a href="http://www.pmob.co.uk/pob/animated.htm" target="_blank">Animated Navigation Menu using CSS</a></h4>
<p><img class="largepostimage" title="CSS Animated navigation menu" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/animated-navigation-menu.jpg" alt="" width="318" height="71" /></p>
<p>Amazing tutorial on how to create an animated navigation menu using just CSS.</p>
<h4>6. <a href="http://www.zabdesign.de/pro/public/sitemap/sitemap-styled.html" target="_blank">Tree Like Navigation Using CSS</a></h4>
<p><img class="largepostimage" title="Tree like navigation using CSS" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/tree-like-navigation.png" alt="" width="334" height="247" /></p>
<p>Create a tree like navigation from nested lists of links. Very useful for creating sitemaps.</p>
<h4>7. <a href="http://www.webdesignerwall.com/tutorials/css-gradient-text-effect/" target="_blank">CSS Gradient Text Effect</a></h4>
<p><img class="largepostimage" title="CSS Gradient Text Effect" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/css-gradient-effect.jpg" alt="" width="477" height="147" /></p>
<p>Create eye-catching titles with nice gradient effect using just CSS.</p>
<h4>8. <a href="http://www.webdesignerwall.com/tutorials/css-menu-list-design/" target="_blank">CSS Menu List Design</a></h4>
<p><img class="largepostimage" title="CSS Menu List" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/CSS-Menu-List.png" alt="" width="549" height="186" /></p>
<p>Very easy to understand tutorial on how to create a menu list using either CSS border-style or background-image property.</p>
<h4>9. <a href="http://www.alistapart.com/articles/negativemargins/" target="_blank">Creating Liquid Layouts With Negative Margins</a></h4>
<p><img class="largepostimage" title="Liquid Web Layout using CSS" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/liquid-web-layout-css.jpg" alt="" width="590" height="210" /></p>
<p>Amazing way to create a liquid layout using negative margins</p>
<h4>10. <a href="http://fortysevenmedia.com/blog/archives/making_your_footer_stay_put_with_css/" target="_blank">Making Your Footer Stay Put With CSS</a></h4>
<p>This might occur to you some time when a content page has not enough content to fill the page, so footer also moves up due to this. This tutorial shows you how to deal with this and make footer stay at bottom even when content is not enough.</p>
<h4>11. <a href="http://veerle.duoh.com/blog/comments/simple_scalable_css_based_breadcrumbs/" target="_blank">Simple, Scalable CSS Based BreadCrumbs</a></h4>
<p><img class="largepostimage" title="Simple &amp; Scalable Breadcrumb navigation" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/scalable-breadcrumb-navigation.jpg" alt="" width="356" height="45" /></p>
<p>Create a nice scalable breadcrumb navigation</p>
<h4>12. <a href="http://www.pearsonified.com/2006/09/snazzy_pullquotes_for_your_blo.php" target="_blank">Snazzy Pullquotes for Your Blog</a></h4>
<p><img class="largepostimage" title="Snazzy Pullquotes" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/pullquotes-css.png" alt="" width="517" height="163" /></p>
<p>Make the blockquotes in your content or blog posts standout from rest of content. Very useful to highlight major points in long content pages.</p>
<h4>13. <a href="http://www.thewojogroup.com/2008/12/css-stacked-bar-graphs/" target="_blank">CSS Stacked Bar Graphs</a></h4>
<p><img class="largepostimage" title="CSS Stacked Bar Graph" src="http://webdeveloperplus.com/wp-content/uploads/2009/07/stacked-bar-graph.jpg" alt="CSS Stacked Bar Graph" width="444" height="305" /></p>
<p>Display graphs on your website using just CSS without any JavaScript or other heavy plugins.</p>
<h4>14. <a href="http://www.smileycat.com/miaow/archives/000230.php" target="_blank">How To Create a Block Hover Effect For List of Links</a></h4>
<p><img class="largepostimage" title="CSS Block Hover List" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/Block-Hover-CSS-List.png" alt="" width="414" height="286" /></p>
<h4>15. <a href="http://www.alistapart.com/articles/multicolumnlists" target="_blank">Multi-Column Lists</a></h4>
<p><img class="largepostimage" title="Multi Column Lists Using CSS" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/Multi-Column-Lists.png" alt="" width="458" height="133" /></p>
<p>This article shows all possible ways you can use to stack up an unordered list into multiple columns.</p>
<h4>16. <a href="http://css-tricks.com/date-display-with-sprites/" target="_blank">Date Display Technique with Sprites</a></h4>
<p><img class="largepostimage" title="Display Date using CSS Sprites" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/Display-Date-Using-Sprites.png" alt="" width="417" height="165" /></p>
<p>If you have ever visited <a href="http://www.learningjquery.com" target="_blank">Learning jQuery</a> then you might have noticed the awesome date display next to each blog post. This tutorial will show you how to achieve that using CSS Sprites.</p>
<h4>17. <a href="http://css-tricks.com/date-badges-and-comment-bubbles-for-your-blog/" target="_blank">Date Badges and Comment Bubbles for your Blog</a></h4>
<p><img class="largepostimage" title="Date &amp; Comment Badge For Blogs" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/date-comment-badges.jpg" alt="" width="269" height="172" /></p>
<p>Display date and comments on your blog posts in a nice way that takes less space.</p>
<h4>18. <a href="http://www.devirtuoso.com/2009/07/how-to-build-a-css-image-viewer-the-clever-way/" target="_blank">How To Build a CSS Image Viewer The Clever Way</a></h4>
<p><img class="largepostimage" title="CSS Image Viewer" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/CSS-Image-viewer.jpg" alt="" width="591" height="350" /></p>
<p>Create a nice image viewer using CSS that will work even if user has disabled flash and JavaScript in the browser.</p>
<h4>19. <a href="http://www.devirtuoso.com/2009/07/creating-a-css-image-preloader/" target="_blank">Creating a CSS Image Preloader</a></h4>
<p>Use the CSS background-image property to preload images without any javascript required.</p>
<h4>20. <a href="http://css-tricks.com/css-trick-fade-out-the-bottom-of-pages-with-a-fixed-position-image/" target="_blank">Fade Out The Bottom of Pages</a></h4>
<p><img class="largepostimage" title="Fade out Content into bottom" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/Fade-Out-Bottom.jpg" alt="" width="596" height="282" /></p>
<p>This tutorial shows you how to make page content fade away into the bottom of the page just like the <a href="http://fortuito.us/" target="_blank">fortuito.us blog</a>.</p>
<h4>21.  <a href="http://www.cssnewbie.com/12-creative-and-cool-uses-for-the-css-border-property/" target="_blank">Creative and Cool Uses of the CSS Border Property</a></h4>
<p><img class="largepostimage" title="Creative and Cool Uses of CSS Border Property" src="http://static.webdeveloperplus.com/uploads/2009/07/css-amazing-techniques/CSS-Border-Property.jpg" alt="" width="537" height="189" /></p>
<p>This article shows you how the CSS Border property can be used to achieve some cool effects. You&#8217;ll be surprised to know how cool the CSS Border property is.</p>
<p>Related posts:<ol>
<li><a href='http://webdeveloperplus.com/css/15-ways-to-improve-css-techniques-using-jquery/' rel='bookmark' title='15 Ways to Improve CSS Techniques Using jQuery'>15 Ways to Improve CSS Techniques Using jQuery</a></li>
<li><a href='http://webdeveloperplus.com/jquery/30-fresh-amazing-jquery-plugins-tutorials/' rel='bookmark' title='30+ Fresh &amp; Amazing jQuery Plugins &amp; Tutorials'>30+ Fresh &#038; Amazing jQuery Plugins &#038; Tutorials</a></li>
<li><a href='http://webdeveloperplus.com/flash/25-amazing-free-flash-based-image-galleries/' rel='bookmark' title='25 Amazing &amp; Free Flash Based Image Galleries'>25 Amazing &#038; Free Flash Based Image Galleries</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/css/21-amazing-css-techniques-you-should-know/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
		<item>
		<title>CSS Tooltip Box Without Images</title>
		<link>http://webdeveloperplus.com/css/css-tooltip-box-without-images/</link>
		<comments>http://webdeveloperplus.com/css/css-tooltip-box-without-images/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 14:34:55 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[tooltip box]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/?p=33</guid>
		<description><![CDATA[The tooltip boxes you see on many websites are though created using background images but there&#8217;s another way out using just CSS  without requiring any background images. To create the tooltip box, create one outer div that encapsulates the information and the pointer div. Here&#8217;s the html code you need to use: &#60;div class="tooltip"&#62; Tooltip [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-38" title="Tooltip box Using CSS" src="http://webdeveloperplus.com/wp-content/uploads/2009/03/tooltip-box.jpg" alt="Tooltip box Using CSS" width="301" height="182" /><br />
The tooltip boxes you see on many websites are though created using background images but there&#8217;s another way out using just CSS  without requiring any background images. To create the tooltip box, create one outer div that encapsulates the information and the pointer div.</p>
<p>Here&#8217;s the html code you need to use:</p>
<pre name="code" class="html" >
&lt;div class="tooltip"&gt;
Tooltip content goes here...
&lt;div class="pointer"&gt;
&lt;div class="inner-pointer"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>Now we need to absolutely or relatively position the tooltip div so that we can control the position of pointers in the div. The pointer div acts as outer body of pointer and inner-pointer acts as inner body. Both these div are sizeless but have border. The transparent border property is used to form the pointer shapes.</p>
<p>You can match the border-color of inner pointer to that of tooltip div background color and pointer div to that of border color to get a uniform look of the pointer.</p>
<p>Here&#8217;s the CSS to use:</p>
<pre name="code" class="css" >
&lt;style type="text/css"&gt;
body{ background:#333; }
.tooltip {
padding: .8em;
width: 12em; background:#ff3311;
border-width: 2px !important;
border-color:#999;
position: absolute;
}
.tooltip .pointer, .tooltip .inner-pointer {
position: absolute;
width:0;
height:0;
border-bottom-width: 0;
background: none;
}
.tooltip .pointer {
border-left: 7px solid transparent;
border-right: 7px solid transparent;
border-top: 14px solid #999;
bottom:    -14px;
right: auto;
left: 5%;
margin-left: -7px;
}
.tooltip .inner-pointer {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #ff3311;
bottom:    auto;
top: -14px;
left: -5px;
}
&lt;/style&gt;
</pre>
<p>You can play with different border style and positioning of the pointer div to control the look of your tooltip box.</p>
<p><img class="alignnone size-full wp-image-39" title="CSS tooltip box without images" src="http://webdeveloperplus.com/wp-content/uploads/2009/03/css-tooltip-box-without-images.jpg" alt="CSS tooltip box without images" width="256" height="140" /></p>
<p>Without any use of images, these tooltip boxes will be easy on bandwidth and will load faster.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/css/css-tooltip-box-without-images/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Text Shadow Property in CSS3</title>
		<link>http://webdeveloperplus.com/css/text-shadow-property-in-css3/</link>
		<comments>http://webdeveloperplus.com/css/text-shadow-property-in-css3/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 15:03:57 +0000</pubDate>
		<dc:creator>Satbir</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[text-shadow]]></category>

		<guid isPermaLink="false">http://webdeveloperplus.com/css/text-shadow-property-in-css3/</guid>
		<description><![CDATA[With CSS3, creating nice looking titles or headers won’t require Photoshop as it includes a nice text-shadow property to create text-shadows with just a single line of code. To apply text shadow onto an element, add this CSS property in its style definition. text-shadow: 3px 3px 4px #999; The text-shadow property looks cool, but it [...]]]></description>
			<content:encoded><![CDATA[<p>With CSS3, creating nice looking titles or headers won’t require Photoshop as it includes a nice text-shadow property to create text-shadows with just a single line of code. To apply text shadow onto an element, add this CSS property in its style definition.</p>
<pre name="code" class="css">text-shadow: 3px 3px 4px #999;</pre>
<p>The text-shadow property looks cool, but it is currently not supported by major browsers including Firefox 3.0, but will be supported in Firefox 3.1 beta. Browsers that support this CSS3 property are Safari 3+, Konquerer, Opera9.5+ and iCab.</p>
<p>For example,</p>
<p style="text-shadow: 2px 1px 3px #999;">This text will show a drop shadow in Safari, Opera or other supported browsers.</p>
<p>Here first two values are offset of shadow from original text corresponding to right and top offset respectively while third numeric value is the amount of blur radius that causes pixels of the shadow text to stretch by the specified amount.</p>
<p>Positive values for right and top offset will position your shadow to right and bottom while negative values will change it accordingly. </p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="CSS3 Text-Shadow" border="0" alt="CSS3 Text-Shadow" src="http://webdeveloperplus.com/wp-content/uploads/2009/03/css3textshadow.jpg" width="304" height="77" /> </p>
<p>You can play with offset and blur values to create really nice looking <a href="http://www.kremalicious.com/2008/04/make-cool-and-clever-text-effects-with-css-text-shadow/#examples" target="_blank">text effects just with CSS</a>. If you have been using this property for a while and created some really nice looking effects, let us know in comments below.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://webdeveloperplus.com/css/text-shadow-property-in-css3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

