<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8440708341142545117</id><updated>2011-12-26T08:43:16.578-08:00</updated><title type='text'>Designerprasad</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-7594988003839538698</id><published>2011-09-08T08:18:00.001-07:00</published><updated>2011-09-08T08:18:38.623-07:00</updated><title type='text'>Jquery – A logo fixed position is positioned relative to the browser window.</title><content type='html'>$(function() {&lt;br /&gt;var offset = $(“#logo”).offset();&lt;br /&gt;var topPadding = 15;&lt;br /&gt;$(window).scroll(function() {&lt;br /&gt;if ($(window).scrollTop() &amp;gt; offset.top) {&lt;br /&gt;$(“#logo”).stop().animate({&lt;br /&gt;marginTop: $(window).scrollTop() – offset.top + topPadding&lt;br /&gt;});&lt;br /&gt;} else {&lt;br /&gt;$(“#logo”).stop().animate({&lt;br /&gt;marginTop: 0&lt;br /&gt;});&lt;br /&gt;};&lt;br /&gt;});&lt;br /&gt;});&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-7594988003839538698?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/7594988003839538698/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2011/09/jquery-logo-fixed-position-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/7594988003839538698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/7594988003839538698'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2011/09/jquery-logo-fixed-position-is.html' title='Jquery – A logo fixed position is positioned relative to the browser window.'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-4064640497279415325</id><published>2011-09-08T08:18:00.000-07:00</published><updated>2011-09-08T08:18:06.452-07:00</updated><title type='text'>Google Chrome to Phone Extension</title><content type='html'>&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: arial,sans-serif; font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre id="cx-desc-text" style="font: normal normal normal 100%/normal arial, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: pre-wrap; word-wrap: break-word;"&gt;This extension adds a button to Chrome that lets you seamlessly pushes links, maps, and currently selected text and phone numbers to your Android device. &lt;br /&gt;&lt;br /&gt;You also need to install the Chrome to Phone Android application on your phone. The application can be downloaded from Market (search for 'Chrome to Phone'). Requires a mobile phone running Android 2.2 ("Froyo") or later. &lt;br /&gt;&lt;br /&gt;Note: By installing this extension, you agree to these terms - &lt;a href="http://chrome.google.com/extensions/intl/en/gallery_tos.html" style="color: #4272db; text-decoration: none;"&gt;http://chrome.google.com/extensions/intl/en/gallery_tos.html&lt;/a&gt;. The source code for this product is available under the Apache 2.0 license from the Developer website.&lt;br /&gt;&lt;br /&gt;Version history:&lt;br /&gt;2.0.0 - First release&lt;br /&gt;2.1.0 - i18n version&lt;br /&gt;2.1.1 - bug fix for es_419&lt;br /&gt;2.1.2 - bug fix for context menu in Chrome 7&lt;br /&gt;2.1.3 - i18n translation fix for ja&lt;br /&gt;2.3.0 - OAuth - login once only&lt;br /&gt;2.3.1 - Fix character encoding issue&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-4064640497279415325?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/4064640497279415325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2011/09/google-chrome-to-phone-extension.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/4064640497279415325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/4064640497279415325'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2011/09/google-chrome-to-phone-extension.html' title='Google Chrome to Phone Extension'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-7093535096745797770</id><published>2011-08-11T13:12:00.000-07:00</published><updated>2011-08-11T13:12:24.807-07:00</updated><title type='text'>Resize Any image While Maintaining Aspect Ratio and Maximum width &amp; Height</title><content type='html'>It works well for resizing but changing the aspect ratio of the original image squashes the new image.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Example :&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;Convert a 150*100 image into a 150*150 image.&lt;br /&gt;The extra 50 pixels of the height need to be padded with a white background color.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;public void ResizeImage(string OriginalFile, string NewFile, int NewWidth, int MaxHeight, bool OnlyResizeIfWider)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Drawing.Image FullsizeImage = System.Drawing.Image.FromFile(OriginalFile);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Prevent using images internal thumbnail&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FullsizeImage.RotateFlip(System.Drawing.RotateFlipType.Rotate180FlipNone);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FullsizeImage.RotateFlip(System.Drawing.RotateFlipType.Rotate180FlipNone);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (OnlyResizeIfWider)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (FullsizeImage.Width &amp;lt;= NewWidth)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; NewWidth = FullsizeImage.Width;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int NewHeight = FullsizeImage.Height * NewWidth / FullsizeImage.Width;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (NewHeight &amp;gt; MaxHeight)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Resize with height instead&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; NewWidth = FullsizeImage.Width * MaxHeight / FullsizeImage.Height;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; NewHeight = MaxHeight;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Drawing.Image NewImage = FullsizeImage.GetThumbnailImage(NewWidth, NewHeight, null, IntPtr.Zero);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Clear handle to original file so that we can overwrite it if necessary&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FullsizeImage.Dispose();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Save resized picture&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewImage.Save(NewFile);&lt;br /&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-7093535096745797770?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/7093535096745797770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2011/08/resize-any-image-while-maintaining.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/7093535096745797770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/7093535096745797770'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2011/08/resize-any-image-while-maintaining.html' title='Resize Any image While Maintaining Aspect Ratio and Maximum width &amp; Height'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-5873294069044228567</id><published>2011-08-02T02:41:00.000-07:00</published><updated>2011-08-02T02:41:41.483-07:00</updated><title type='text'>Jquery – A logo fixed position is positioned relative to the browser window.</title><content type='html'>&lt;pre&gt;$(function() {&lt;br /&gt;            var offset = $("#logo").offset();&lt;br /&gt;            var topPadding = 15;&lt;br /&gt;            $(window).scroll(function() {&lt;br /&gt;                if ($(window).scrollTop() &amp;gt; offset.top) {&lt;br /&gt;                    $("#logo").stop().animate({&lt;br /&gt;                        marginTop: $(window).scrollTop() - offset.top + topPadding&lt;br /&gt;                    });&lt;br /&gt;                } else {&lt;br /&gt;                    $("#logo").stop().animate({&lt;br /&gt;                        marginTop: 0&lt;br /&gt;                    });&lt;br /&gt;                };&lt;br /&gt;            });&lt;br /&gt;        });&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-5873294069044228567?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/5873294069044228567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2011/08/jquery-logo-fixed-position-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/5873294069044228567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/5873294069044228567'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2011/08/jquery-logo-fixed-position-is.html' title='Jquery – A logo fixed position is positioned relative to the browser window.'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-1313071002535685467</id><published>2010-11-04T00:56:00.000-07:00</published><updated>2010-11-04T00:56:57.476-07:00</updated><title type='text'>Comprehensive List of Browser-Specific CSS Hacks</title><content type='html'>/***** Selector Hacks ******/&lt;br /&gt; &lt;br /&gt;&lt;i&gt;&lt;b&gt;/* IE6 and below */&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;* html #uno  { color: red }&lt;br /&gt; &lt;br /&gt;&lt;i&gt;&lt;b&gt;/* IE7 */&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;*:first-child+html #dos { color: red } &lt;br /&gt; &lt;br /&gt;&lt;b&gt;/* IE7, FF, Saf, Opera  */&lt;i&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;html&gt;body #tres { color: red }&lt;br /&gt; &lt;br /&gt;&lt;i&gt;&lt;b&gt;/* IE8, FF, Saf, Opera (Everything but IE 6,7) */&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;html&gt;/**/body #cuatro { color: red }&lt;br /&gt; &lt;br /&gt;&lt;i&gt;&lt;b&gt;/* Opera 9.27 and below, safari 2 */&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;html:first-child #cinco { color: red }&lt;br /&gt; &lt;br /&gt;&lt;b&gt;&lt;i&gt;/* Safari 2-3 */&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;html[xmlns*=""] body:last-child #seis { color: red }&lt;br /&gt; &lt;br /&gt;&lt;i&gt;&lt;b&gt;/* safari 3+, chrome 1+, opera9+, ff 3.5+ */&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;body:nth-of-type(1) #siete { color: red }&lt;br /&gt; &lt;br /&gt;&lt;i&gt;&lt;b&gt;/* safari 3+, chrome 1+, opera9+, ff 3.5+ */&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;body:first-of-type #ocho {  color: red }&lt;br /&gt; &lt;br /&gt;&lt;i&gt;&lt;b&gt;/* saf3+, chrome1+ */&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;@media screen and (-webkit-min-device-pixel-ratio:0) {&lt;br /&gt; #diez  { color: red  }&lt;br /&gt;}&lt;br /&gt; &lt;i&gt;&lt;br /&gt;&lt;b&gt;/* iPhone / mobile webkit */&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;@media screen and (max-device-width: 480px) {&lt;br /&gt; #veintiseis { color: red  }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;i&gt;&lt;b&gt;/* Safari 2 - 3.1 */&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;html[xmlns*=""]:root #trece  { color: red  }&lt;br /&gt; &lt;br /&gt;&lt;i&gt;&lt;b&gt;/* Safari 2 - 3.1, Opera 9.25 */&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;*|html[xmlns*=""] #catorce { color: red  }&lt;br /&gt; &lt;br /&gt;&lt;b&gt;/* Everything but IE6-8 */&lt;/b&gt;&lt;br /&gt;:root *&gt; #quince { color: red  }&lt;br /&gt; &lt;br /&gt;&lt;b&gt;/* IE7 */&lt;/b&gt;&lt;br /&gt;*+html #dieciocho {  color: red }&lt;br /&gt; &lt;br /&gt;&lt;b&gt;/* Firefox only. 1+ */&lt;/b&gt;&lt;br /&gt;#veinticuatro,  x:-moz-any-link  { color: red }&lt;br /&gt;&lt;br /&gt;&lt;b&gt;/* Firefox 3.0+ */&lt;/b&gt;&lt;br /&gt;#veinticinco,  x:-moz-any-link, x:default  { color: red  }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;/***** Attribute Hacks ******/&lt;br /&gt; &lt;br /&gt;&lt;b&gt;/* IE6 */&lt;/b&gt;&lt;br /&gt;#once { _color: blue }&lt;br /&gt; &lt;br /&gt;&lt;b&gt;/* IE6, IE7 */&lt;/b&gt;&lt;br /&gt;#doce { *color: blue; /* or #color: blue */ }&lt;br /&gt; &lt;br /&gt;&lt;b&gt;/* Everything but IE6 */&lt;/b&gt;&lt;br /&gt;#diecisiete { color/**/: blue }&lt;br /&gt; &lt;br /&gt;&lt;b&gt;/* IE6, IE7, IE8 */&lt;/b&gt;&lt;br /&gt;#diecinueve { color: blue\9; }&lt;br /&gt; &lt;br /&gt;&lt;b&gt;/* IE7, IE8 */&lt;/b&gt;&lt;br /&gt;#veinte { color/*\**/: blue\9; }&lt;br /&gt; &lt;br /&gt;&lt;b&gt;/* IE6, IE7 -- acts as an !important */&lt;/b&gt;&lt;br /&gt;#veintesiete { color: blue !ie; } /* string after ! can be anything */&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-1313071002535685467?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/1313071002535685467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2010/11/comprehensive-list-of-browser-specific.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/1313071002535685467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/1313071002535685467'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2010/11/comprehensive-list-of-browser-specific.html' title='Comprehensive List of Browser-Specific CSS Hacks'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-5571108212871292233</id><published>2010-10-22T04:45:00.000-07:00</published><updated>2010-10-22T04:45:28.601-07:00</updated><title type='text'>CSS Hack for transparent images in IE6</title><content type='html'>/*///Start code for PNG Image////*/&lt;br /&gt;&lt;br /&gt;* html img,&lt;br /&gt;&lt;br /&gt;* html .png {&lt;br /&gt;&lt;br /&gt;azimuth: expression(&lt;br /&gt;&lt;br /&gt;this.pngSet?&lt;br /&gt;&lt;br /&gt;this.pngSet=true :&lt;br /&gt;&lt;br /&gt;(this.nodeName == "IMG" ?&lt;br /&gt;&lt;br /&gt;(this.src.toLowerCase().indexOf('.png')&gt;-1 ?&lt;br /&gt;&lt;br /&gt;(this.runtimeStyle.backgroundImage = "none", this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='image')",&lt;br /&gt;&lt;br /&gt;this.src = "images/blank.gif") :&lt;br /&gt;&lt;br /&gt;'') :&lt;br /&gt;&lt;br /&gt;(this.currentStyle.backgroundImage.toLowerCase().indexOf('.png')&gt;-1) ?&lt;br /&gt;&lt;br /&gt;(this.origBg = (this.origBg) ?&lt;br /&gt;&lt;br /&gt;this.origBg :&lt;br /&gt;&lt;br /&gt;this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),&lt;br /&gt;&lt;br /&gt;this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "', sizingMethod='crop')",&lt;br /&gt;&lt;br /&gt;this.runtimeStyle.backgroundImage = "none") :&lt;br /&gt;&lt;br /&gt;''&lt;br /&gt;&lt;br /&gt;), this.pngSet=true&lt;br /&gt;&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/*///end code for PNG Image////*/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-5571108212871292233?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/5571108212871292233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2010/10/css-hack-for-transparent-images-in-ie6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/5571108212871292233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/5571108212871292233'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2010/10/css-hack-for-transparent-images-in-ie6.html' title='CSS Hack for transparent images in IE6'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-2395891847714051601</id><published>2010-09-20T07:12:00.000-07:00</published><updated>2010-09-20T07:16:13.810-07:00</updated><title type='text'>Html5 ready reset</title><content type='html'>&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Plenty of you will have used Eric Meyer’s css reset before now. It is  included in many frameworks and so on, like 960.gs. This is a revamped  version of that reset, that brings it into the present with full support  for html5. It sets all the new structural tags as block level, and  resets all their default styling as expected.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;height:10px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class="brush: css;" style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="color: #666666; font-size: small;"&gt;/*   html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="brush: css;" style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="color: #666666; font-size: small;"&gt; v1.4 2009-07-27 | Authors: Eric Meyer &amp;amp; Richard Clark  html5doctor.com/html-5-reset-stylesheet/*/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #cc0000;"&gt;&lt;span style="color: #990000;"&gt;html, body, div, span, object, iframe,&lt;br /&gt;h1, h2, h3, h4, h5, h6, p, blockquote, pre,&lt;br /&gt;abbr, address, cite, code,&lt;br /&gt;del, dfn, em, img, ins, kbd, q, samp,&lt;br /&gt;small, strong, sub, sup, var,&lt;br /&gt;b, i,&lt;br /&gt;dl, dt, dd, ol, ul, li,&lt;br /&gt;fieldset, form, label, legend,&lt;br /&gt;table, caption, tbody, tfoot, thead, tr, th, td,&lt;br /&gt;article, aside, figure, footer, header, hgroup, menu, nav, section, menu,&lt;br /&gt;time, mark, audio, video&lt;/span&gt; &lt;span style="color: #444444;"&gt;{&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #444444;"&gt;margin:0;&lt;br /&gt;padding:0;&lt;br /&gt;border:0;&lt;br /&gt;outline:0;&lt;br /&gt;font-size:100%;&lt;br /&gt;vertical-align:baseline;&lt;br /&gt;background:transparent;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #cc0000;"&gt;article, aside, figure, footer, header,&lt;br /&gt;hgroup, nav, section&lt;/span&gt; { display:block; }&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;nav ul &lt;/span&gt;{ list-style:none; }&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #cc0000;"&gt;blockquote, q &lt;/span&gt;{ quotes:none; }&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;blockquote:before, blockquote:after,&lt;br /&gt;q:before, q:after &lt;/span&gt;{ content:''; content:none; }&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;a&lt;/span&gt; { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;ins &lt;/span&gt;{ background-color:#ff9; color:#000; text-decoration:none; }&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;mark &lt;/span&gt;{ background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;del&lt;/span&gt; { text-decoration: line-through; }&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;abbr[title], dfn[title]&lt;/span&gt; { border-bottom:1px dotted #000; cursor:help; }&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #444444;"&gt;/* tables still need cellspacing="0" in the markup */&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #990000;"&gt;table &lt;/span&gt;{ border-collapse:collapse; border-spacing:0; }&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;hr&lt;/span&gt; { display:block; height:1px; border:0; border-top:1px solid #ccc; margin:1em 0; padding:0; }&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;input, select&lt;/span&gt; { vertical-align:middle; }&lt;br /&gt;/* END RESET CSS */&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-2395891847714051601?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/2395891847714051601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2010/09/html5-ready-reset.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/2395891847714051601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/2395891847714051601'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2010/09/html5-ready-reset.html' title='Html5 ready reset'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-3211968178828901783</id><published>2010-07-01T01:29:00.000-07:00</published><updated>2010-07-01T01:29:06.899-07:00</updated><title type='text'>png behavior</title><content type='html'>&lt;div style="color: #660000;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;PNG Behavior&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Below is the complete source for the behavior. Notice that the behavior  will only do anything if the user is using IE55+ on a Win32 platform.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;&lt;b&gt;CODE:&lt;/b&gt;&lt;/div&gt;&lt;div style="color: #0c343d;"&gt;&amp;lt;public:component&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;public:attach event="oncontentready" onevent="filterImage()" /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script language="jscript"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var original = element.src; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var spacer = "images/blank.gif"; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var htc = /MSIE ((5\.5)|[6])/.test(navigator.userAgent) &amp;amp;&amp;amp; navigator.platform == "Win32"; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function filterImage() { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(/\.png$/.test(original) &amp;amp;&amp;amp; htc) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; element.style.visibility = 'hidden';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var preload = new Image();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; preload.onload = function() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; element.style.height = element.style.height ? element.style.height : this.height;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; element.style.width = element.style.width ? element.style.width : this.width;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; element.src = spacer;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + original + ", sizingMethod='scale', enabled='true')"; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; element.style.visibility = 'visible';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; preload.src = element.src;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;} &lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/public:component&amp;gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;h2 style="color: #cc0000;"&gt;Usage&lt;/h2&gt;&lt;h2&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;The usage is really simple. All you need to do is to add the png  behavior to the image element.&lt;/span&gt;&lt;/span&gt; &lt;/h2&gt;&lt;h2&gt;&lt;/h2&gt;&lt;pre&gt;&lt;span style="color: #0c343d;"&gt;&amp;lt;style type="text/css"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0c343d;"&gt;img {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0c343d;"&gt;   behavior: url("pngbehavior.htc");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0c343d;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0c343d;"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;b&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-3211968178828901783?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/3211968178828901783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2010/07/png-behavior.html#comment-form' title='20 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/3211968178828901783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/3211968178828901783'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2010/07/png-behavior.html' title='png behavior'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><thr:total>20</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-8965549893630091245</id><published>2010-04-30T02:29:00.000-07:00</published><updated>2010-04-30T02:29:18.064-07:00</updated><title type='text'>CSS hacks</title><content type='html'>Most in-CSS hacks deal with selector bugs. The following is a list of browser version ranges and the beginnings of selectors that are known to select elements in them. Note that because these hacks rely on browser bugs or missing features, results may vary in some lesser-known or future browsers. All of these selectors use valid CSS.&lt;br /&gt;&lt;br /&gt;IE 6 and below&lt;br /&gt;* html {}&lt;br /&gt;IE 7 and below&lt;br /&gt;*:first-child+html {} * html {}&lt;br /&gt;IE 7 only&lt;br /&gt;*:first-child+html {}&lt;br /&gt;IE 7 and modern browsers only&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*:first-child+html {}&lt;br /&gt;============================&lt;br /&gt;sup,sub {&lt;br /&gt;height: 0; &lt;br /&gt;line-height: 1; &lt;br /&gt;vertical-align: baseline; &lt;br /&gt;_vertical-align: bottom; &lt;br /&gt;position: relative; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;sup { &lt;br /&gt;bottom: 1ex;&lt;br /&gt;}&lt;br /&gt;sub { &lt;br /&gt;top: .5ex;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;sup.reg {&lt;br /&gt;height: 0; &lt;br /&gt;line-height: 1;&lt;br /&gt;bottom: 1.2ex; &lt;br /&gt;vertical-align: baseline; &lt;br /&gt;position: relative; &lt;br /&gt;text-decoration:none;&lt;br /&gt;font-size:110%;&lt;br /&gt;}&lt;br /&gt;============================&lt;br /&gt;@media print{}&lt;br /&gt;============================&lt;br /&gt;html&gt;/**/body #divid{ &lt;br /&gt; margin:280px auto 0px 50px;&lt;br /&gt;}&lt;br /&gt;============================&lt;br /&gt;Reset:&lt;br /&gt;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,&lt;br /&gt;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 &lt;br /&gt;{&lt;br /&gt; margin: 0;&lt;br /&gt; padding: 0;&lt;br /&gt; border: 0;&lt;br /&gt; outline: 0;&lt;br /&gt; font-size: 100%;&lt;br /&gt; vertical-align: baseline;&lt;br /&gt; background: transparent;&lt;br /&gt;}&lt;br /&gt;body {&lt;br /&gt; line-height: 1;&lt;br /&gt;}&lt;br /&gt;ol, ul {&lt;br /&gt; list-style: none;&lt;br /&gt;}&lt;br /&gt;blockquote, q {&lt;br /&gt; quotes: none;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/* remember to define focus styles! */&lt;br /&gt;:focus {&lt;br /&gt; outline: 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/* remember to highlight inserts somehow! */&lt;br /&gt;ins {&lt;br /&gt; text-decoration: none;&lt;br /&gt;}&lt;br /&gt;del {&lt;br /&gt; text-decoration: line-through;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/* tables still need 'cellspacing="0"' in the markup */&lt;br /&gt;table {&lt;br /&gt; border-collapse: collapse;&lt;br /&gt; border-spacing: 0;&lt;br /&gt;}&lt;br /&gt;============================&lt;br /&gt;IE 6 and below&lt;br /&gt;    * html {}&lt;br /&gt;IE 7 and below&lt;br /&gt;    *:first-child+html {}, * html {}&lt;br /&gt;IE 7 only&lt;br /&gt;    *:first-child+html {}&lt;br /&gt;IE 7 and modern browsers only&lt;br /&gt;    html&gt;body {}&lt;br /&gt;Modern browsers only (not IE 7)&lt;br /&gt;    html&gt;/**/body {}&lt;br /&gt;Recent Opera versions 9 and below&lt;br /&gt;    html:first-child {} &lt;br /&gt;============================&lt;br /&gt;"" ------ &amp;#8220;&amp;#8221;&lt;br /&gt;&gt;&gt; ------ &amp;raquo;&lt;br /&gt;-  ------- &amp;#8212;&lt;br /&gt;'  ------- &amp;#8217;&lt;br /&gt;&amp;  ------- &amp;#38;&lt;br /&gt;============================&lt;br /&gt;img { -ms-interpolation-mode: bicubic; }  //scaling of the images&lt;br /&gt;============================&lt;br /&gt;&lt;br /&gt;============================&lt;br /&gt;http://www.csszengarden.com/&lt;br /&gt;http://www.meyerweb.com/&lt;br /&gt;http://www.alistapart.com/&lt;br /&gt;http://www.css3.info/&lt;br /&gt;http://positioniseverything.net/&lt;br /&gt;http://css-tricks.com/&lt;br /&gt;http://cssmania.com/&lt;br /&gt;http://cssremix.com/&lt;br /&gt;http://www.css-website.com/&lt;br /&gt;http://cssvault.com/&lt;br /&gt;http://dezwozhere.com/links.html&lt;br /&gt;http://www.w3schools.com/&lt;br /&gt;============================&lt;br /&gt;&lt;br /&gt;html&gt;body {}&lt;br /&gt;Modern browsers only (not IE 7)&lt;br /&gt;html&gt;/**/body {}&lt;br /&gt;Recent Opera versions 9 and below&lt;br /&gt;html:first-child {}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-8965549893630091245?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/8965549893630091245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2010/04/css-hacks.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/8965549893630091245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/8965549893630091245'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2010/04/css-hacks.html' title='CSS hacks'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-7745092722954959434</id><published>2010-03-04T05:57:00.000-08:00</published><updated>2010-03-04T06:01:55.178-08:00</updated><title type='text'>css rounded buttons</title><content type='html'>&lt;u&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;css &lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;&lt;br /&gt;/*Credits: Dynamic Drive CSS Library */&lt;br /&gt;/*URL: http://www.dynamicdrive.com/style/ */&lt;br /&gt;&lt;br /&gt;a.ovalbutton{&lt;br /&gt;background: transparent url('media/oval-gray-left.gif') no-repeat top left;&lt;br /&gt;display: block;&lt;br /&gt;float: left;&lt;br /&gt;font: normal 13px Tahoma; /* Change 13px as desired */&lt;br /&gt;line-height: 16px; /* This value + 4px + 4px (top and bottom padding of SPAN) must equal height of button background (default is 24px) */&lt;br /&gt;height: 24px; /* Height of button background height */&lt;br /&gt;padding-left: 11px; /* Width of left menu image */&lt;br /&gt;text-decoration: none;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;a:link.ovalbutton, a:visited.ovalbutton, a:active.ovalbutton{&lt;br /&gt;color: #494949; /*button text color*/&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;a.ovalbutton span{&lt;br /&gt;background: transparent url('media/oval-gray-right.gif') no-repeat top right;&lt;br /&gt;display: block;&lt;br /&gt;padding: 4px 11px 4px 0; /*Set 11px below to match value of 'padding-left' value above*/&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;a.ovalbutton:hover{ /* Hover state CSS */&lt;br /&gt;background-position: bottom left;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;a.ovalbutton:hover span{ /* Hover state CSS */&lt;br /&gt;background-position: bottom right;&lt;br /&gt;color: black;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.buttonwrapper{ /* Container you can use to surround a CSS button to clear float */&lt;br /&gt;overflow: hidden; /*See: http://www.quirksmode.org/css/clearing.html */&lt;br /&gt;width: 100%;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note:&lt;/b&gt; The image paths referenced in the CSS above assumes you're  using the gray ovals. If you're using another, be sure to update the  image paths accordingly.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;HTML &lt;/b&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;h4&amp;gt;Single button:&amp;lt;/h4&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div class="buttonwrapper"&amp;gt;&lt;br /&gt;&amp;lt;a class="ovalbutton" href="http://www.dynamicdrive.com/style/"&amp;gt;&amp;lt;span&amp;gt;Dynamic Drive CSS Library&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;h4&amp;gt;Side by Side:&amp;lt;/h4&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div class="buttonwrapper"&amp;gt;&lt;br /&gt;&amp;lt;a class="ovalbutton" href="#"&amp;gt;&amp;lt;span&amp;gt;Submit&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt; &amp;lt;a class="ovalbutton" href="#" style="margin-left: 6px"&amp;gt;&amp;lt;span&amp;gt;Reset&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;u&gt;&lt;b&gt;IMAGES&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator"&gt;&lt;a href="http://3.bp.blogspot.com/_vXpJMpavQ8A/S4-7ZSx8uzI/AAAAAAAAAhw/f9hOY8lBVQQ/s1600-h/oval-blue-left.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_vXpJMpavQ8A/S4-7ZSx8uzI/AAAAAAAAAhw/f9hOY8lBVQQ/s320/oval-blue-left.gif" /&gt;&lt;/a&gt;&lt;a href="http://3.bp.blogspot.com/_vXpJMpavQ8A/S4-7bOeFuJI/AAAAAAAAAh4/yD47zsWOmW8/s1600-h/oval-blue-right.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_vXpJMpavQ8A/S4-7bOeFuJI/AAAAAAAAAh4/yD47zsWOmW8/s320/oval-blue-right.gif" /&gt;&lt;/a&gt;&lt;span id="goog_1267710543906"&gt;&lt;/span&gt;&lt;span id="goog_1267710543907"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" &gt;&lt;a href="http://1.bp.blogspot.com/_vXpJMpavQ8A/S4-7crZ13nI/AAAAAAAAAiA/mrrVHIE3tCU/s1600-h/oval-gray-left.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_vXpJMpavQ8A/S4-7crZ13nI/AAAAAAAAAiA/mrrVHIE3tCU/s320/oval-gray-left.gif" /&gt;&lt;/a&gt;&lt;a href="http://2.bp.blogspot.com/_vXpJMpavQ8A/S4-7eIBg36I/AAAAAAAAAiI/7DD62I8pzwQ/s1600-h/oval-gray-right.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_vXpJMpavQ8A/S4-7eIBg36I/AAAAAAAAAiI/7DD62I8pzwQ/s320/oval-gray-right.gif" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" &gt;&lt;a href="http://1.bp.blogspot.com/_vXpJMpavQ8A/S4-7f9y4LQI/AAAAAAAAAiQ/DqGARj8h2-g/s1600-h/oval-green-left.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_vXpJMpavQ8A/S4-7f9y4LQI/AAAAAAAAAiQ/DqGARj8h2-g/s320/oval-green-left.gif" /&gt;&lt;/a&gt;&lt;a href="http://4.bp.blogspot.com/_vXpJMpavQ8A/S4-7hA72L8I/AAAAAAAAAiY/SFUjgZ8CvSM/s1600-h/oval-green-right.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_vXpJMpavQ8A/S4-7hA72L8I/AAAAAAAAAiY/SFUjgZ8CvSM/s320/oval-green-right.gif" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_vXpJMpavQ8A/S4-7iq_4SZI/AAAAAAAAAig/RImdxjPG7yM/s1600-h/oval-orange-left.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_vXpJMpavQ8A/S4-7iq_4SZI/AAAAAAAAAig/RImdxjPG7yM/s320/oval-orange-left.gif" /&gt;&lt;/a&gt;&lt;a href="http://3.bp.blogspot.com/_vXpJMpavQ8A/S4-7jpH_j4I/AAAAAAAAAio/rOc0Uo5_nWM/s1600-h/oval-orange-right.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_vXpJMpavQ8A/S4-7jpH_j4I/AAAAAAAAAio/rOc0Uo5_nWM/s320/oval-orange-right.gif" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_vXpJMpavQ8A/S4-7k9YnAiI/AAAAAAAAAiw/0qSUa8fepn8/s1600-h/oval-red-left.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_vXpJMpavQ8A/S4-7k9YnAiI/AAAAAAAAAiw/0qSUa8fepn8/s320/oval-red-left.gif" /&gt;&lt;/a&gt;&lt;a href="http://2.bp.blogspot.com/_vXpJMpavQ8A/S4-7lwItCaI/AAAAAAAAAi4/KRwptux6LLk/s1600-h/oval-red-right.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_vXpJMpavQ8A/S4-7lwItCaI/AAAAAAAAAi4/KRwptux6LLk/s320/oval-red-right.gif" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-7745092722954959434?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/7745092722954959434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2010/03/css-rounded-buttons.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/7745092722954959434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/7745092722954959434'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2010/03/css-rounded-buttons.html' title='css rounded buttons'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_vXpJMpavQ8A/S4-7ZSx8uzI/AAAAAAAAAhw/f9hOY8lBVQQ/s72-c/oval-blue-left.gif' height='72' width='72'/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-2415933156611986654</id><published>2009-12-11T22:23:00.000-08:00</published><updated>2009-12-11T22:23:12.141-08:00</updated><title type='text'>Rounded Corner Boxes the CSS3 Way</title><content type='html'>&lt;div class="article" id="content"&gt;&lt;div id="article"&gt;To create a CSS3 rounded corner box, simply start with your box element and apply your 4 corner images, separated by commas.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_vXpJMpavQ8A/SyM2u79lMYI/AAAAAAAAAaM/NqSzIMex3Pc/s1600-h/rounded.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_vXpJMpavQ8A/SyM2u79lMYI/AAAAAAAAAaM/NqSzIMex3Pc/s320/rounded.gif" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;ol class="code"&gt;&lt;li&gt;&lt;code&gt;.box {&lt;/code&gt;&lt;/li&gt;&lt;li class="tab1"&gt;&lt;code&gt;background-image: url(top-left.gif), url(top-right.gif), url(bottom-left.gif), url(bottom-right.gif);&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;}&lt;/code&gt;&lt;/li&gt;&lt;/ol&gt;We don’t want these background images to repeat, which is the normal behaviour, so lets set all their background-repeat properties to no-repeat.&lt;br /&gt;&lt;ol class="code"&gt;&lt;li&gt;&lt;code&gt;.box {&lt;/code&gt;&lt;/li&gt;&lt;li class="tab1"&gt;&lt;code&gt;background-image: url(top-left.gif), url(top-right.gif), url(bottom-left.gif), url(bottom-right.gif);&lt;/code&gt;&lt;/li&gt;&lt;li class="tab1"&gt;&lt;code&gt;background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;}&lt;/code&gt;&lt;/li&gt;&lt;/ol&gt;Lastly, we need to define the positioning of each corner image.&lt;br /&gt;&lt;ol class="code"&gt;&lt;li&gt;&lt;code&gt;.box {&lt;/code&gt;&lt;/li&gt;&lt;li class="tab1"&gt;&lt;code&gt;background-image: url(top-left.gif), url(top-right.gif), url(bottom-left.gif), url(bottom-right.gif);&lt;/code&gt;&lt;/li&gt;&lt;li class="tab1"&gt;&lt;code&gt;background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;&lt;/code&gt;&lt;/li&gt;&lt;li class="tab1"&gt;&lt;code&gt;background-position: top left, top right, bottom left, bottom right;&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;}&lt;/code&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-2415933156611986654?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/2415933156611986654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2009/12/rounded-corner-boxes-css3-way.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/2415933156611986654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/2415933156611986654'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2009/12/rounded-corner-boxes-css3-way.html' title='Rounded Corner Boxes the CSS3 Way'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_vXpJMpavQ8A/SyM2u79lMYI/AAAAAAAAAaM/NqSzIMex3Pc/s72-c/rounded.gif' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-6284511071025867653</id><published>2009-12-09T03:55:00.001-08:00</published><updated>2009-12-09T03:58:56.044-08:00</updated><title type='text'>Advanced CSS Text Effects Tips</title><content type='html'>&lt;div class="entry-content entry"&gt;&lt;h2&gt;1. &lt;a href="http://line25.com/tutorials/create-a-letterpress-effect-with-css-text-shadow" target="_blank"&gt;Create a Letterpress Effect with CSS Text-Shadow&lt;/a&gt;&lt;/h2&gt;&lt;a href="http://line25.com/tutorials/create-a-letterpress-effect-with-css-text-shadow" target="_blank"&gt;&lt;img alt="letterpress-css-text-effects-typography" height="178" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/letterpress-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://line25.s3.amazonaws.com/wp-content/uploads/2009/letterpress/demo/demo.html" target="_blank"&gt;View Demo&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;2. &lt;a href="http://snook.ca/archives/html_and_css/css-text-rotation" target="_blank"&gt;Text Rotation with CSS&lt;/a&gt;&lt;/h2&gt;&lt;a href="http://snook.ca/archives/html_and_css/css-text-rotation" target="_blank"&gt;&lt;img alt="snook-rotation-css-text-effects-typography" height="165" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/snook-rotation-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;3. &lt;a href="http://css-tricks.com/date-display-with-sprites/" target="_blank"&gt;Date Display Technique with Sprites&lt;/a&gt;&lt;/h2&gt;&lt;a href="http://css-tricks.com/date-display-with-sprites/" target="_blank"&gt;&lt;img alt="display-sprites-css-text-effects-typography" height="138" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/display-sprites-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;4. &lt;a href="http://www.webdesignerwall.com/tutorials/css-gradient-text-effect/" target="_blank"&gt;CSS Gradient Text Effect&lt;/a&gt;&lt;/h2&gt;&lt;a href="http://www.webdesignerwall.com/tutorials/css-gradient-text-effect/" target="_blank"&gt;&lt;img alt="gradient-css-text-effects-typography" height="297" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/gradient-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.webdesignerwall.com/demo/css-gradient-text/" target="_blank"&gt;View Demo&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;5. &lt;a href="http://cssglobe.com/lab/textgradient/" target="_blank"&gt;CSS Text Gradients&lt;/a&gt;&lt;/h2&gt;Yet another very similar tutorial about text gradients, but maybe you’ll like both variants trying to explain really how CSS text gradient effects work.&lt;br /&gt;&lt;a href="http://cssglobe.com/lab/textgradient/" target="_blank"&gt;&lt;img alt="gradient-cssglobe-rotation-css-text-effects-typography" height="160" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/gradient-cssglobe-rotation-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;6. &lt;a href="http://www.jankoatwarpspeed.com/post/2008/08/09/Add-grunge-effect-to-text-using-simple-CSS.aspx" target="_blank"&gt;Add grunge effect to text using simple CSS&lt;/a&gt;&lt;/h2&gt;Article is based on the same technique as CSS text gradients using it to add grunge type effect to your typo!&lt;br /&gt;&lt;a href="http://www.jankoatwarpspeed.com/post/2008/08/09/Add-grunge-effect-to-text-using-simple-CSS.aspx" target="_blank"&gt;&lt;img alt="grunge-css-text-effects-typography" height="71" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/grunge-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.jankoatwarpspeed.com/examples/grunge-text-effect/" target="_blank"&gt;View Demo&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;7. &lt;a href="http://www.jankoatwarpspeed.com/post/2009/06/11/text-embossing-effect.aspx" target="_blank"&gt;Two simple ways to create text embossing effect&lt;/a&gt;&lt;/h2&gt;&lt;a href="http://www.jankoatwarpspeed.com/post/2009/06/11/text-embossing-effect.aspx" target="_blank"&gt;&lt;img alt="embosing-two-tips-css-text-effects-typography" height="157" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/embosing-two-tips-css-text-effects-typography.jpg" width="570" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;8. &lt;a href="http://www.reynoldsftw.com/2009/03/text-embossing-technique-with-css/" target="_blank"&gt;Text Embossing Technique With CSS&lt;/a&gt;&lt;/h2&gt;Example from &lt;a href="http://www.alexbuga.com/v8/" target="_blank"&gt;AlexBuga homepage&lt;/a&gt;.&lt;br /&gt;&lt;a href="http://www.reynoldsftw.com/2009/03/text-embossing-technique-with-css/" target="_blank"&gt;&lt;img alt="embossing-technique-css-text-effects-typography" height="173" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/embossing-technique-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;9. &lt;a href="http://labs.dragoninteractive.com/rainbows.php" target="_blank"&gt;Codename Rainbows&lt;/a&gt;&lt;/h2&gt;Beautiful CSS&amp;amp;Javascript code offered by DragonInteractive teaching how to get two-color gradient text effects, shadows and highlights.&lt;br /&gt;&lt;a href="http://labs.dragoninteractive.com/rainbows.php" target="_blank"&gt;&lt;img alt="rainbows-css-text-effects-typography" height="176" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/rainbows-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://labs.dragoninteractive.com/rainbows_demo.php" target="_blank"&gt;View Demo&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;10. &lt;a href="http://www.designmeme.com/articles/dropshadows/" target="_blank"&gt;CSS Drop Shadows&lt;/a&gt;&lt;/h2&gt;&lt;a href="http://www.designmeme.com/articles/dropshadows/" target="_blank"&gt;&lt;img alt="dropshadow-css-text-effects-typography" height="45" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/dropshadow-css-text-effects-typography.jpg" width="570" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;11. &lt;a href="http://www.kremalicious.com/2008/04/make-cool-and-clever-text-effects-with-css-text-shadow/" target="_blank"&gt;Text-Shadow Exposed&lt;/a&gt;&lt;/h2&gt;Make cool and clever text effects with css text-shadow. Very detailed article teaching you a lot of hidden tips how to achieve text glowing, embossing,shadowing with just few steps.&lt;br /&gt;&lt;a href="http://www.kremalicious.com/2008/04/make-cool-and-clever-text-effects-with-css-text-shadow/" target="_blank"&gt;&lt;img alt="cool-clever-shadow-css-text-effects-typography" height="120" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/cool-clever-shadow-css-text-effects-typography.jpg" width="570" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;12. &lt;a href="http://www.tankedup-imaging.com/css_dev/css-gradient.html" target="_blank"&gt;Background gradients and CSS&lt;/a&gt;&lt;/h2&gt;Pretty cool CSS background effect, which can be applied on hover giving a lot of options use it in creative way!&lt;br /&gt;&lt;a href="http://www.tankedup-imaging.com/css_dev/css-gradient.html" target="_blank"&gt;&lt;img alt="background-css-text-effects-typography" height="85" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/background-css-text-effects-typography.jpg" width="570" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;13. &lt;a href="http://maettig.com/code/css/text-shadow.html" target="_blank"&gt;CSS Text-Shadow in Safari, Opera, Firefox and more&lt;/a&gt;&lt;/h2&gt;&lt;a href="http://maettig.com/code/css/text-shadow.html" target="_blank"&gt;&lt;img alt="multiple-shadows-css-text-effects-typography" height="202" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/multiple-shadows-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;14. &lt;a href="http://www.css3.info/preview/text-overflow/" target="_blank"&gt;Text-overflow&lt;/a&gt;&lt;/h2&gt;&lt;a href="http://www.css3.info/preview/text-overflow/" target="_blank"&gt;&lt;img alt="overflow-css-text-effects-typography" height="108" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/overflow-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;15. &lt;a href="http://net.tutsplus.com/javascript-ajax/how-to-implement-sifr3-into-your-website/" target="_blank"&gt;How To Implement sIFR3 Into Your Website&lt;/a&gt;&lt;/h2&gt;&lt;a href="http://net.tutsplus.com/javascript-ajax/how-to-implement-sifr3-into-your-website/" target="_blank"&gt;&lt;img alt="sifr-how-to-css-text-effects-typography" height="136" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/sifr-how-to-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;16. &lt;a href="http://net.tutsplus.com/javascript-ajax/how-to-use-any-font-you-wish-with-flir/" target="_blank"&gt;How To Use Any Font You Wish With FLIR&lt;/a&gt;&lt;/h2&gt;&lt;a href="http://net.tutsplus.com/javascript-ajax/how-to-use-any-font-you-wish-with-flir/" target="_blank"&gt;&lt;img alt="flir-css-text-effects-typography" height="172" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/flir-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://net.tutsplus.com/demos/flir-demo/index.html" target="_blank"&gt;View Demo&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;For Further Reading – More Typography Tips In Sucessful Web Designs&lt;/h2&gt;&lt;h2&gt;17. &lt;a href="http://cssglobe.com/post/1213/how-to-use-headings-in-html" target="_blank"&gt;How to use headings in HTML&lt;/a&gt;&lt;/h2&gt;&lt;h2&gt;&lt;a href="http://cssglobe.com/post/1213/how-to-use-headings-in-html" target="_blank"&gt;&lt;img alt="headings-how-to-css-text-effects-typography" height="220" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/headings-how-to-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h2&gt;18. &lt;a href="http://www.3point7designs.com/blog/2006/09/advanced-typography-techniques-using-css/" target="_blank"&gt;Advanced Typography techniques using CSS&lt;/a&gt;&lt;/h2&gt;&lt;h2&gt;&lt;a href="http://www.3point7designs.com/blog/2006/09/advanced-typography-techniques-using-css/" target="_blank"&gt;&lt;img alt="advanced-typography-css-text-effects-typography" height="148" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/advanced-typography-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h2&gt;19. &lt;a href="http://www.3point7designs.com/blog/2008/06/10-examples-of-beautiful-css-typography-and-how-they-did-it/" target="_blank"&gt;10 Examples of Beautiful CSS Typography and how they did it…&lt;/a&gt;&lt;/h2&gt;Beautiful article explaining simple but very effective CSS tricks how to achieve beautiful typography effects with just a few lines of code.&lt;br /&gt;&lt;a href="http://www.3point7designs.com/blog/2008/06/10-examples-of-beautiful-css-typography-and-how-they-did-it/" target="_blank"&gt;&lt;img alt="10-typography-tips-css-text-effects-typography" height="163" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/10-typography-tips-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;20. &lt;a href="http://www.webdesignerwall.com/tutorials/typographic-contrast-flow/" target="_blank"&gt;Typographic Contrast and Flow&lt;/a&gt;&lt;/h2&gt;Nick La teaches how to apply right contrasts and flow in your webdesigns explaining why and what works and how to achieve that effect.&lt;br /&gt;&lt;a href="http://www.webdesignerwall.com/wp-content/uploads/2007/12/typographic-contrast.gif" target="_blank"&gt;&lt;img alt="typographic-contrast-css-text-effects-typography" height="221" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/typographic-contrast-css-text-effects-typography.jpg" width="320" /&gt;View Demo Overview&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;21. &lt;a href="http://webtypography.net/toc/" target="_blank"&gt;The Elements of Typographic Style applied in Webdesign&lt;/a&gt;&lt;/h2&gt;&lt;a href="http://webtypography.net/toc/" target="_blank"&gt;&lt;img alt="elements-typography-css-text-effects-typography" height="250" src="http://www.1stwebdesigner.com/wp-content/uploads/2009/12/css-tutorials-typography-tips/elements-typography-css-text-effects-typography.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;22. &lt;a href="http://www.smashingmagazine.com/2008/04/23/5-principles-and-ideas-of-setting-type-on-the-web/" target="_blank"&gt;5 Principles And Ideas Of Setting Type On The Web&lt;/a&gt;&lt;/h2&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_vXpJMpavQ8A/Sx-Ok0h9UJI/AAAAAAAAAXQ/kjgwxckqW_U/s1600-h/5-principles-type-css-text-effects-typography.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_vXpJMpavQ8A/Sx-Ok0h9UJI/AAAAAAAAAXQ/kjgwxckqW_U/s320/5-principles-type-css-text-effects-typography.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2&gt;&amp;nbsp;&lt;/h2&gt;&lt;a href="http://www.3point7designs.com/blog/2008/06/10-examples-of-beautiful-css-typography-and-how-they-did-it/"&gt; &lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-6284511071025867653?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/6284511071025867653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2009/12/advanced-css-text-effects-tips_09.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/6284511071025867653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/6284511071025867653'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2009/12/advanced-css-text-effects-tips_09.html' title='Advanced CSS Text Effects Tips'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_vXpJMpavQ8A/Sx-Ok0h9UJI/AAAAAAAAAXQ/kjgwxckqW_U/s72-c/5-principles-type-css-text-effects-typography.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-2375454061733168419</id><published>2009-12-09T03:31:00.000-08:00</published><updated>2009-12-09T03:31:28.462-08:00</updated><title type='text'>Text Rotation with CSS</title><content type='html'>&lt;div class="article inside"&gt;Once again, after reading &lt;a href="http://css-tricks.com/date-display-with-sprites/"&gt;somebody else's article&lt;/a&gt;, I felt inspired to put together an alternative example. In this case: Text Rotation.&lt;br /&gt;Within the article I linked to, the example uses an image sprite and a sprinkle of CSS to get things positioned right. Well, maybe not so much a sprinkle. It's like the top fell off the pepper shaker and you've suddenly got a large pile of pepper on your food. It makes me want to sneeze.&lt;br /&gt;Thankfully, many of the popular browsers of today support the ability to rotate HTML elements. Even better? We can make it work in Internet Explorer (back to version 5.5 even). How you might ask? Okay, let's look at the HTML.&lt;br /&gt;&lt;pre&gt;&lt;div class="example-date"&gt;31 &lt;br /&gt;  July &lt;br /&gt;  2009&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt;Nice and clean without too many extras. I conscientiously chose the date order I did to avoid having to use a comma. Otherwise, an extra span would be required to remove the comma from our final design.&lt;br /&gt;&lt;h2&gt;The Magical CSS&lt;/h2&gt;For Webkit and Firefox (as of 3.5), you can take advantage of the proposed &lt;code&gt;transform&lt;/code&gt; property to handle the rotation. Each browser requires its property prefix for now.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;-webkit-transform: rotate(-90deg); &lt;br /&gt;-moz-transform: rotate(-90deg); &lt;/code&gt;&lt;/pre&gt;In order to perform a transformation, the element has to be set to &lt;code&gt;display:block&lt;/code&gt;. In this case, just add the declaration to the span that you want to rotate.&lt;br /&gt;When it comes to effects in Internet Explorer, there is a surprising amount of power (and untapped at that, I'd say) in using filters. Although misleading, there is a filter called BasicImage that offers up the ability to rotate any element that has layout.&lt;br /&gt;&lt;pre&gt;filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);&lt;/pre&gt;The rotation property of the BasicImage filter can accept one of four values: 0, 1, 2, or 3 which will rotate the element 0, 90, 180 or 270 degress respectively.&lt;br /&gt;The &lt;a href="http://msdn.microsoft.com/en-us/library/ms532972%28VS.85%29.aspx"&gt;BasicImage filter&lt;/a&gt; has other properties that can be set such as mirroring, masking, greyscale and others. Alternatively, you can take advantage of the &lt;a href="http://msdn.microsoft.com/en-us/library/ms533014%28VS.85%29.aspx"&gt;Matrix filter&lt;/a&gt; but the coordinates still don't make any sense to me.&lt;br /&gt;&lt;h2&gt;In action&lt;/h2&gt;&lt;style&gt;  body { font-family: Arial, Helvetica, sans-serif; }     .example-date {    background-color:#987;    float:right;   position:relative;   padding:45px 5px 0px;   margin-left:10px;   }    .example-date .example-month {      text-transform: uppercase;      font-size:25px;   }  .example-date .example-day {   font-size:45px;line-height:45px;   position:absolute; left:5px; top:0px;   }     .example-date .example-year {    display:block;    position:absolute; right:-5px; top:15px;   -webkit-transform: rotate(-90deg);    -moz-transform: rotate(-90deg);      } &lt;/style&gt;      &lt;br /&gt;&lt;div&gt;&lt;div class="example-date"&gt;31 July 2009&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;What does this look like in action? Take a look at this page in Safari, Firefox or Internet Explorer and you should see something that looks like the following image. Probably the biggest downfall is the lack of consistency in text rendering. Internet Explorer will drop ClearType on any text that has a filter applied to it. You can also see the spacing between the day and the year is different between Safari and Firefox. The differences in text rendering make it more difficult to create "pixel perfect" layout. &lt;br /&gt;&lt;img src="http://snook.ca/technical/text-rotation/text-rotation.png" /&gt;&lt;br /&gt;Here's hoping the article has offered up a little inspiration and shown that even IE has a few tricks up its sleeve, allowing us to pull off some layout fun.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-2375454061733168419?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/2375454061733168419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2009/12/text-rotation-with-css.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/2375454061733168419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/2375454061733168419'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2009/12/text-rotation-with-css.html' title='Text Rotation with CSS'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-579154949614585125</id><published>2009-12-09T03:24:00.000-08:00</published><updated>2009-12-09T03:25:31.746-08:00</updated><title type='text'>Date Display Technique with Sprites</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_vXpJMpavQ8A/Sx-HIWBKbaI/AAAAAAAAAWQ/Q5dvPCOAoSM/s1600-h/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_vXpJMpavQ8A/Sx-HIWBKbaI/AAAAAAAAAWQ/Q5dvPCOAoSM/s320/1.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;The typeface and the year being vertical should tip you off right away that images are being used to accomplish this. But also note that the date information is presented as text, as it should be, in the markup:&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://4.bp.blogspot.com/_vXpJMpavQ8A/Sx-HSBtyVmI/AAAAAAAAAWY/BUC_s-PZDM4/s1600-h/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_vXpJMpavQ8A/Sx-HSBtyVmI/AAAAAAAAAWY/BUC_s-PZDM4/s320/2.png" /&gt;&lt;/a&gt;&lt;br /&gt;A quick peak in Firebug reveals the beautiful simplicity!&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_vXpJMpavQ8A/Sx-HXseyNzI/AAAAAAAAAWg/YGhPEWij8dU/s1600-h/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_vXpJMpavQ8A/Sx-HXseyNzI/AAAAAAAAAWg/YGhPEWij8dU/s320/3.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3&gt;Sprites at Their Best&lt;/h3&gt;Hopefully it’s fairly obvious that each date doesn’t have it’s own unique graphic. The dates are pieced together from a single graphic (&lt;a href="http://css-tricks.com/css-sprites/"&gt;css sprites!&lt;/a&gt;), where different smaller parts of the graphic are shown in the three different regions: day, month, and year. Perhaps you’ll recognize this from a similar technique &lt;a href="http://css-tricks.com/date-badges-and-comment-bubbles-for-your-blog/"&gt;Joost de Valk posted about&lt;/a&gt; nearly a year ago.&lt;br /&gt;Take a look at this beauty:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_vXpJMpavQ8A/Sx-Hf-f6PeI/AAAAAAAAAWo/d4GbRirP6Ms/s1600-h/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_vXpJMpavQ8A/Sx-Hf-f6PeI/AAAAAAAAAWo/d4GbRirP6Ms/s320/4.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3&gt;The HTML:&lt;/h3&gt;The end result HTML is going to be like this:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_vXpJMpavQ8A/Sx-Izr9bxSI/AAAAAAAAAXI/i9-odFg4PAU/s1600-h/q.GIF" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_vXpJMpavQ8A/Sx-Izr9bxSI/AAAAAAAAAXI/i9-odFg4PAU/s320/q.GIF" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;We have a wrapper, and three regions. This gives us what we need to match these schematics:&lt;span id="goog_1260357361279"&gt;&lt;/span&gt;&lt;span id="goog_1260357361280"&gt;&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_vXpJMpavQ8A/Sx-Hpmhj8WI/AAAAAAAAAWw/8gVNNgr1Ttc/s1600-h/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_vXpJMpavQ8A/Sx-Hpmhj8WI/AAAAAAAAAWw/8gVNNgr1Ttc/s320/5.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;In a CMS like WordPress, the backend code to produce that would be like this:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_vXpJMpavQ8A/Sx-Iuzy3DHI/AAAAAAAAAXA/knTskd-i3bQ/s1600-h/t.GIF" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_vXpJMpavQ8A/Sx-Iuzy3DHI/AAAAAAAAAXA/knTskd-i3bQ/s320/t.GIF" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3&gt;The CSS&lt;/h3&gt;The CSS is where the sprite action really happens. With those special class names that we have set up in the HTML, we can set which portions of the image to use. &lt;br /&gt;First, we set relative positioning on the parent. Then we absolutely position each of the three regions within. We set all three of them to use the same background image (our sprite), set their respective widths and heights, and kick the text off the page. &lt;br /&gt;Then, we set each of the months (12 possibilities), days (31 possibilities), and years (goes 10 years out) with the specific background positioning needed to show the specific region we need.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code class="css"&gt;.postdate {&lt;br /&gt;  position: relative;&lt;br /&gt;  width: 50px;&lt;br /&gt;  height: 50px;&lt;br /&gt;  float: left;&lt;br /&gt;}&lt;br /&gt;.month, .day, .year {&lt;br /&gt;  position: absolute;&lt;br /&gt;  text-indent: -1000em;&lt;br /&gt;  background-image: url(/wp-content/themes/ljq/images/dates.png);&lt;br /&gt;  background-repeat: no-repeat;&lt;br /&gt;}&lt;br /&gt;.month { top: 2px; left: 0; width: 32px; height: 24px;}&lt;br /&gt;.day { top: 25px; left: 0; width: 32px; height: 25px;}&lt;br /&gt;.year { bottom: 0; right: 0; width: 17px; height: 48px;}&lt;br /&gt;&lt;br /&gt;.m-01 { background-position: 0 4px;}&lt;br /&gt;.m-02 { background-position: 0 -28px;}&lt;br /&gt;.m-03 { background-position: 0 -57px;}&lt;br /&gt;... more like this ...&lt;br /&gt;&lt;br /&gt;.d-01 { background-position: -50px 0;}&lt;br /&gt;.d-02 { background-position: -50px -31px;}&lt;br /&gt;.d-03 { background-position: -50px -62px;}&lt;br /&gt;... more like this ...&lt;br /&gt;&lt;br /&gt;.y-2006 { background-position: -150px 0;}&lt;br /&gt;.y-2007 { background-position: -150px -50px;}&lt;br /&gt;.y-2008 { background-position: -150px -100px;}&lt;br /&gt;... more like this&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code class="css"&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_vXpJMpavQ8A/Sx-H28LmDyI/AAAAAAAAAW4/wljkZinjFU8/s1600-h/awesometechnique-dateposition.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_vXpJMpavQ8A/Sx-H28LmDyI/AAAAAAAAAW4/wljkZinjFU8/s320/awesometechnique-dateposition.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre&gt;&lt;code class="css"&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-579154949614585125?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/579154949614585125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2009/12/date-display-technique-with-sprites.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/579154949614585125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/579154949614585125'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2009/12/date-display-technique-with-sprites.html' title='Date Display Technique with Sprites'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_vXpJMpavQ8A/Sx-HIWBKbaI/AAAAAAAAAWQ/Q5dvPCOAoSM/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-163778846616533761</id><published>2009-12-07T21:43:00.000-08:00</published><updated>2009-12-07T21:43:21.773-08:00</updated><title type='text'>CSS Menus</title><content type='html'>&lt;div class="clearfix"&gt;&lt;div&gt;&lt;h2&gt;Vertical Menu&lt;/h2&gt;&lt;/div&gt;&lt;div class="clearfix"&gt;&lt;br /&gt;&lt;div class="home_page_post"&gt;&lt;br /&gt;&lt;a class="thumb_link" href="http://www.onlycssmenu.com/blue-panel-with-menu.html"&gt;&lt;img alt="Blue Panel With Menu" height="101" src="http://www.onlycssmenu.com/wp-content/themes/new_cssmenu/images/sp.gif" title="Blue Panel With Menu" width="234" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="thumb_img"&gt;&lt;a href="http://www.onlycssmenu.com/blue-panel-with-menu.html"&gt;&lt;img alt="Blue Panel With menu" class="alignnone size-full wp-image-153" height="92" src="http://www.onlycssmenu.com/wp-content/uploads/2009/08/Blue_Panel_With_menu.jpg" title="Blue Panel With menu" width="233" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="more-link" href="http://www.onlycssmenu.com/blue-panel-with-menu.html#more-150"&gt;Read the rest of this entry »&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="thumb_name"&gt;&lt;a href="http://www.onlycssmenu.com/blue-panel-with-menu.html" title="Blue Panel With Menu"&gt;Blue Panel With Menu&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="home_page_post"&gt;&lt;br /&gt;&lt;a class="thumb_link" href="http://www.onlycssmenu.com/vertical-blue-and-orange-menu-with-panel.html"&gt;&lt;img alt="Vertical Blue and orange menu" height="101" src="http://www.onlycssmenu.com/wp-content/themes/new_cssmenu/images/sp.gif" title="Vertical Blue and orange menu" width="234" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="thumb_img"&gt;&lt;a href="http://www.onlycssmenu.com/vertical-blue-and-orange-menu-with-panel.html"&gt;&lt;img alt="Vertical Blue and orange menu" class="alignnone size-full wp-image-85" height="92" src="http://www.onlycssmenu.com/wp-content/uploads/2009/07/Vertical_Blue_and_orange_menu.gif" title="Vertical Blue and orange menu" width="233" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="more-link" href="http://www.onlycssmenu.com/vertical-blue-and-orange-menu-with-panel.html#more-84"&gt;Read the rest of this entry »&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="thumb_name"&gt;&lt;a href="http://www.onlycssmenu.com/vertical-blue-and-orange-menu-with-panel.html" title="Vertical Blue and orange menu"&gt;Vertical Blue and orange menu&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="home_page_post"&gt;&lt;br /&gt;&lt;a class="thumb_link" href="http://www.onlycssmenu.com/gray-verticalmenu.html"&gt;&lt;img alt="Gray Vertical Menu" height="101" src="http://www.onlycssmenu.com/wp-content/themes/new_cssmenu/images/sp.gif" title="Gray Vertical Menu" width="234" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="thumb_img"&gt;&lt;a href="http://www.onlycssmenu.com/gray-verticalmenu.html"&gt;&lt;img alt="gray v menu" class="alignnone size-full wp-image-8" height="184" src="http://www.onlycssmenu.com/wp-content/uploads/2009/07/gray_v_menu.gif" title="gray v menu" width="206" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="more-link" href="http://www.onlycssmenu.com/gray-verticalmenu.html#more-7"&gt;Read the rest of this entry »&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="thumb_name"&gt;&lt;a href="http://www.onlycssmenu.com/gray-verticalmenu.html" title="Gray Vertical Menu"&gt;Gray Vertical Menu&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="Viewmore_menu"&gt;&lt;a href="http://www.onlycssmenu.com/category/vertical-menu"&gt;More...&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-163778846616533761?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/163778846616533761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2009/12/css-menus.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/163778846616533761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/163778846616533761'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2009/12/css-menus.html' title='CSS Menus'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-6827502295583207636</id><published>2009-12-01T04:21:00.000-08:00</published><updated>2009-12-01T04:23:49.110-08:00</updated><title type='text'>CSS Effects/Solutions to Make JavaScript Angry</title><content type='html'>&lt;h4&gt;1. CSS Hover Effect&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://veerle.duoh.com/blog/comments/css_hover_effect/" rel="nofollow" target="_blank"&gt;&lt;img alt="css1" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css1.png" style="display: inline;" title="css1" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Learn how to use CSS to make hover effects for your content boxes.&lt;br /&gt;&lt;a href="http://veerle.duoh.com/blog/comments/css_hover_effect/" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;2. CSS Gradient Text Effect&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://www.webdesignerwall.com/tutorials/css-gradient-text-effect/" rel="nofollow" target="_blank"&gt;&lt;img alt="css2" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css2.png" style="display: inline;" title="css2" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Here is a simple CSS trick to show you how to create gradient text effect with a PNG image (pure CSS, no Javascript or Flash).&lt;br /&gt;&lt;a href="http://www.webdesignerwall.com/tutorials/css-gradient-text-effect/" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;3. Blurry Background Effect&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://css-tricks.com/blurry-background-effect/" rel="nofollow" target="_blank"&gt;&lt;img alt="css3" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css3.png" style="display: inline;" title="css3" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Utilizing two images and CSS background-attachment property you can make a great CSS effect easily.&lt;br /&gt;&lt;a href="http://css-tricks.com/blurry-background-effect/" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;4. The CSS letterpress effect&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://line25.com/tutorials/create-a-letterpress-effect-with-css-text-shadow" rel="nofollow" target="_blank"&gt;&lt;img alt="css4" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css4.jpg" style="display: inline;" title="css4" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;This effect is getting so popular in today web design. With the help of the text-shadow CSS property you can easily implement this effect in your website/blog.&lt;br /&gt;&lt;a href="http://line25.com/tutorials/create-a-letterpress-effect-with-css-text-shadow" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;5. 3-state Button using CSS&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://line25.com/tutorials/how-to-build-a-simple-button-with-css-image-sprites" rel="nofollow" target="_blank"&gt;&lt;img alt="css5" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css5.jpg" style="display: inline;" title="css5" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Learn how to create a 3-state button using pure CSS image sprites.&lt;br /&gt;&lt;a href="http://line25.com/tutorials/how-to-build-a-simple-button-with-css-image-sprites" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;6. Pure CSS Polaroid Photo Gallery&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://line25.com/tutorials/how-to-create-a-pure-css-polaroid-photo-gallery" rel="nofollow" target="_blank"&gt;&lt;img alt="css6" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css6.jpg" style="display: inline;" title="css6" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Make the beautiful photo gallery above just using CSS properties.&lt;br /&gt;&lt;a href="http://line25.com/tutorials/how-to-create-a-pure-css-polaroid-photo-gallery" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;7. Pure CSS Animated Progress Bar&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://cssglobe.com/post/1468/pure-css-animated-progress-bar" rel="nofollow" target="_blank"&gt;&lt;img alt="css7" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css7.jpg" style="display: inline;" title="css7" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Here’s a simple demonstration of how you can create animated progress bar using pure css.&lt;br /&gt;&lt;a href="http://cssglobe.com/post/1468/pure-css-animated-progress-bar" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;8. CSS Text Gradient&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://cssglobe.com/post/1227/css-text-gradient" rel="nofollow" target="_blank"&gt;&lt;img alt="css8" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css8.jpg" style="display: inline;" title="css8" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Improve your site appearance by using this technique by CSSG which uses a transparent PNG and some lines of pure CSS!&lt;br /&gt;&lt;a href="http://cssglobe.com/post/1227/css-text-gradient" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;9. 4 Uber Cool CSS Techniques For Links&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://cssglobe.com/post/1614/4-uber-cool-css-techniques-for-links" rel="nofollow" target="_blank"&gt;&lt;img alt="css9" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css9.jpg" style="display: inline;" title="css9" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Including &lt;b&gt;Pure CSS Tooltip&lt;/b&gt;,&lt;b&gt; Pure CSS Image Gallery&lt;/b&gt;, &lt;b&gt;Pure CSS Image Resizer&lt;/b&gt;, and &lt;b&gt;3d Button Effect.&lt;/b&gt;&lt;br /&gt;&lt;a href="http://cssglobe.com/post/1614/4-uber-cool-css-techniques-for-links" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;10. Bubble Effect with CSS&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://aext.net/2009/11/bubble-effect-with-css/" rel="nofollow" target="_blank"&gt;&lt;img alt="css10" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css10.jpg" style="display: inline;" title="css10" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;In this tutorial you will learn how to make bubble effect with CSS something like apple dock.&lt;br /&gt;&lt;a href="http://aext.net/2009/11/bubble-effect-with-css/" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;11. Create Resizing Thumbnails Using CSS&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://cssglobe.com/post/1305/create-resizing-thumbnails-using-overflow-property" rel="nofollow" target="_blank"&gt;&lt;img alt="css11" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css11.jpg" style="display: inline;" title="css11" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;“This tutorial is aimed at controlling the size of the thumbnails appearing on your page. Sometimes we don’t have enough space to spare to fit in large thumbnails and yet we would like to avoid small and barely recognizable images. Using this trick we limit the default dimensions of the thumb, and show it in full size when user mouse-overs it.”&lt;br /&gt;&lt;a href="http://cssglobe.com/post/1305/create-resizing-thumbnails-using-overflow-property" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;12. Pure Css Line Graph&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://cssglobe.com/post/4175/pure-css-line-graph" rel="nofollow" target="_blank"&gt;&lt;img alt="css12" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css12.jpg" style="display: inline;" title="css12" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Learn how to make line graphs with CSS and definition list elements (DL).&lt;br /&gt;&lt;a href="http://cssglobe.com/post/4175/pure-css-line-graph" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;13. Pure CSS Data Chart&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://cssglobe.com/post/1272/pure-css-data-chart" rel="nofollow" target="_blank"&gt;&lt;img alt="css13" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css13.jpg" style="display: inline;" title="css13" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Data visualization is mostly achieved with flash applications or with help of some programming languages. But this tutorial will teach you create one by pure CSS.&lt;br /&gt;&lt;a href="http://cssglobe.com/post/1272/pure-css-data-chart" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;14. CSS for Bar Graphs&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://applestooranges.com/blog/post/css-for-bar-graphs/" rel="nofollow" target="_blank"&gt;&lt;img alt="css14" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css14.jpg" style="display: inline;" title="css14" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;In this tutorial, you will use CSS &amp;amp; XHTML to make beautiful bar graphs both vertical and horizontal. &lt;a href="http://www.thewojogroup.com/2008/12/css-stacked-bar-graphs/" rel="nofollow" target="_blank"&gt;Another CSS Graph&lt;/a&gt;.&lt;br /&gt;&lt;a href="http://applestooranges.com/blog/post/css-for-bar-graphs/" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;15. CSS Image Maps&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://www.frankmanno.com/ideas/css-imagemap/" rel="nofollow" target="_blank"&gt;&lt;img alt="css15" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css15.jpg" style="display: inline;" title="css15" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Above is a sample image map that’s built entirely using CSS and XHTML&lt;br /&gt;&lt;a href="http://www.frankmanno.com/ideas/css-imagemap/" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;16. Pure CSS Lightbox&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://www.studiomoh.com/fun/csslightbox/" rel="nofollow" target="_blank"&gt;&lt;img alt="css16" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css16.jpg" style="display: inline;" title="css16" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Yes, it’s a CSS-only lightbox effect right click on the demo page and view it’s source.&lt;br /&gt;&lt;a href="http://www.studiomoh.com/fun/csslightbox/" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;17. Change Text Selection Color With CSS&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://css-tricks.com/overriding-the-default-text-selection-color-with-css/" rel="nofollow" target="_blank"&gt;&lt;img alt="css17" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css17.jpg" style="display: inline;" title="css17" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Learn how to override the default text selection color using CSS.&lt;br /&gt;&lt;a href="http://css-tricks.com/overriding-the-default-text-selection-color-with-css/" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;18. CSS Bubble Tooltips&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://trentrichardson.com/examples/csstooltips/" rel="nofollow" target="_blank"&gt;&lt;img alt="css18" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css18.jpg" style="display: inline;" title="css18" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Avoid cross-browser javascript when you can use css to make tooltips with less code. More Pure CSS Tooltips: &lt;a href="http://www.fijiwebdesign.com/fiji-web-design-blog/css-tooltips-floating-html-elements.html" rel="nofollow" target="_blank"&gt;1&lt;/a&gt; , &lt;a href="http://css.experiments.severnsolutions.co.uk/dhtml/tooltips/" rel="nofollow" target="_blank"&gt;2&lt;/a&gt; , &lt;a href="http://www.filamentgroup.com/lab/image_free_css_tooltip_pointers_a_use_for_polygonal_css/" rel="nofollow" target="_blank"&gt;3&lt;/a&gt;&lt;br /&gt;&lt;a href="http://trentrichardson.com/examples/csstooltips/" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;19. CSS Hover Effect&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://purecssmenu.com/" rel="nofollow" target="_blank"&gt;&lt;img alt="css19" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css19.jpg" style="display: inline;" title="css19" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Multi-level drop-down menu that’s built entirely with CSS (without any JS).&lt;br /&gt;More:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.alistapart.com/articles/horizdropdowns" target="_blank"&gt;Drop-Down Menus, Horizontal Style&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://aext.net/2009/09/elegant-drop-menu-with-css-only/" target="_blank"&gt;Elegant Drop Menu with CSS only&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.grc.com/menu2/invitro.htm" target="_blank"&gt;GRC’s Script-Free Pure-CSS Menuing System&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://thesisthemetools.com/tutorial-css-multilevel-dropdown-menu/" target="_blank"&gt;Tutorial: CSS Multilevel Dropdown Menu&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;a href="http://purecssmenu.com/" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;20. How to Create CSS Menu using Image Sprites&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://line25.com/tutorials/how-to-create-a-css-menu-using-image-sprites" target="_blank"&gt;&lt;img alt="css20" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css20.jpg" style="display: inline;" title="css20" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;The number 19 was for multi-level CSS Menu, here you will learn how to create on-level image-based CSS menu with hover effect.&lt;br /&gt;&lt;a href="http://line25.com/tutorials/how-to-create-a-css-menu-using-image-sprites" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;21. CSS Tabs&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://www.3point7designs.com/blog/2007/09/css-tabs-css-only-dom-tabs/" target="_blank"&gt;&lt;img alt="css21" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css21.jpg" style="display: inline;" title="css21" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;DOM tabs which will still work for javascript-disabled browsers&lt;br /&gt;&lt;a href="http://www.3point7designs.com/blog/2007/09/css-tabs-css-only-dom-tabs/" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;22. The CSS-Only Accordion Effect&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://www.cssnewbie.com/css-only-accordion/" rel="nofollow" target="_blank"&gt;&lt;img alt="css22" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css22.jpg" style="display: inline;" title="css22" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;Most JavaScript frameworks make such an effect fairly easy to pull off – heck, &lt;a href="http://mootools.net/"&gt;MooTools&lt;/a&gt; even built their reputation on it in the early days. So what makes &lt;i&gt;this &lt;/i&gt;accordion effect special? &lt;b&gt;It doesn’t require a single line of JavaScript.&lt;/b&gt;&lt;br /&gt;&lt;a href="http://www.cssnewbie.com/css-only-accordion/" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;23. Cross-browser drop shadows using pure CSS&lt;/h4&gt;&lt;h4&gt;&lt;a href="http://nick-dunn.co.uk/article/cross-browser-drop-shadows-using-pure-css/" rel="nofollow" target="_blank"&gt;&lt;img alt="css23" height="201" src="http://webanthology.net/wp-content/uploads/2009/11/css23.jpg" style="display: inline;" title="css23" width="515" /&gt;&lt;/a&gt;&lt;/h4&gt;This tutorial tries to provide a solution to make a cross-browser drop shadows using CSS. There are some advantages and disadvantages using the technique.&lt;br /&gt;&lt;a href="http://nick-dunn.co.uk/article/cross-browser-drop-shadows-using-pure-css/" rel="nofollow" target="_blank"&gt;Visit Article&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-6827502295583207636?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/6827502295583207636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2009/12/css-effectssolutions-to-make-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/6827502295583207636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/6827502295583207636'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2009/12/css-effectssolutions-to-make-javascript.html' title='CSS Effects/Solutions to Make JavaScript Angry'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-1689427536320476571</id><published>2009-11-05T22:59:00.000-08:00</published><updated>2009-11-05T23:05:37.038-08:00</updated><title type='text'>Approximate Conversion from Points to Pixels (and Ems and %)</title><content type='html'>Here's a chart that converts points to pixels (and ems and %). It's an approximation, which will depend on font, browser and OS, but it's a good starting point.&lt;br /&gt;&lt;br /&gt;&lt;table border="1" cellpadding="0" cellspacing="0"&gt;&lt;tr bgcolor="#c0c0c0"&gt;  &lt;td&gt;&lt;b&gt;Points&lt;/b&gt;&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;&lt;b&gt;Pixels&lt;/b&gt;&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;&lt;b&gt;Ems&lt;/b&gt;&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;&lt;b&gt;Percent&lt;/b&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;6pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;8px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;0.5em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;50%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;7pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;9px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;0.55em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;55%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;7.5pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;10px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;0.625em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;62.5%&lt;br /&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;8pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;11px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;0.7em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;70%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;9pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;12px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;0.75em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;75%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;10pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;13px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;0.8em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;80%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;10.5pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;14px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;0.875em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;87.5%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;11pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;15px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;0.95em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;95%&lt;br /&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;12pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;16px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;1em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;100%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;13pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;17px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;1.05em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;105%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;13.5pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;18px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;1.125em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;112.5%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;14pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;19px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;1.2em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;120%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;14.5pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;20px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;1.25em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;125%&lt;br /&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;15pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;21px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;1.3em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;130%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;16pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;22px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;1.4em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;140%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;17pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;23px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;1.45em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;145%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;18pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;24px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;1.5em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;150%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;20pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;26px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;1.6em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;160%&lt;br /&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;22pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;29px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;1.8em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;180%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;24pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;32px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;2em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;200%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;26pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;35px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;2.2em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;220%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;27pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;36px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;2.25em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;225%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;28pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;37px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;2.3em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;230%&lt;br /&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;29pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;38px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;2.35em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;235%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;30pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;40px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;2.45em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;245%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;32pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;42px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;2.55em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;255%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;34pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;45px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;2.75em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;275%&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;  &lt;td&gt;36pt&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;48px&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;3em&lt;br /&gt;&lt;/td&gt;  &lt;td&gt;300%&lt;br /&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-1689427536320476571?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/1689427536320476571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2009/11/approximate-conversion-from-points-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/1689427536320476571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/1689427536320476571'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2009/11/approximate-conversion-from-points-to.html' title='Approximate Conversion from Points to Pixels (and Ems and %)'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-3357366998366514691</id><published>2009-10-08T23:04:00.000-07:00</published><updated>2009-10-08T23:44:50.426-07:00</updated><title type='text'>CSS CODING</title><content type='html'>&lt;h3 id="CSS-Basics1" style="text-align: left;"&gt;1. Padding vs. Margin&lt;/h3&gt;&lt;div style="text-align: left;"&gt;Most beginners get &lt;a href="http://www.w3schools.com/css/css_padding.asp"&gt;padding&lt;/a&gt; and &lt;a href="http://www.w3schools.com/CSS/css_margin.asp"&gt;margins&lt;/a&gt; mixed up and use them incorrectly. Practices such as using the &lt;code&gt;height&lt;/code&gt; to create padding or margins also lead to bugs and inconsistencies. Understanding padding and margins is fundamental to using CSS.&lt;br /&gt;&lt;/div&gt;&lt;h4 style="text-align: left;"&gt;What Is Padding and Margin?&lt;/h4&gt;&lt;div style="text-align: left;"&gt;Padding is the &lt;b&gt;inner&lt;/b&gt; space of an element, and margin is the &lt;b&gt;outer&lt;/b&gt; space of an element.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;The difference becomes clear once you apply backgrounds and borders to an element. Unlike padding, margins are not covered by either the background or border because they are the space outside of the actual element.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Take a look at the visual below:&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7VLMR1HhI/AAAAAAAAARY/uS652bc4zAM/s1600-h/1_a.gif.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7VLMR1HhI/AAAAAAAAARY/uS652bc4zAM/s320/1_a.gif.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;i&gt;Margin and padding values are set clockwise, starting from the top.&lt;/i&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;b&gt;Practical example&lt;/b&gt;: Here is an &lt;code&gt;&lt;/code&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style="text-align: left;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;heading between two paragraphs. As you can see, the margin creates white space between the paragraphs, and the padding (where you see the background gray color) gives it some breathing room.  &lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://1.bp.blogspot.com/_vXpJMpavQ8A/Ss7VdAjop3I/AAAAAAAAARg/a5QS0JQDWRk/s1600-h/1_b.gif.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_vXpJMpavQ8A/Ss7VdAjop3I/AAAAAAAAARg/a5QS0JQDWRk/s320/1_b.gif.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style="text-align: left;"&gt;&lt;br /&gt;&lt;/h2&gt;&lt;h4 style="text-align: left;"&gt;Margin and Padding Values&lt;/h4&gt;&lt;div style="text-align: left;"&gt;In the above example of the heading, the values for the margin and padding would be:&lt;br /&gt;&lt;/div&gt;&lt;div class="dp-highlighter" style="text-align: left;"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt"&gt;margin:&amp;nbsp;15px&amp;nbsp;0&amp;nbsp;15px&amp;nbsp;0;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;padding:&amp;nbsp;15px&amp;nbsp;15px&amp;nbsp;15px&amp;nbsp;15px;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class="css" name="code" style="display: none;"&gt;margin: 15px 0 15px 0;&lt;br /&gt;padding: 15px 15px 15px 15px;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;To optimize this line of code further, we use an optimization technique called “&lt;a href="http://www.smashingmagazine.com/2008/08/18/7-principles-of-clean-and-optimized-css-code/"&gt;shorthand&lt;/a&gt;,” which cuts down on repetitive code. Applying the shorthand technique would slim the code down to this:&lt;br /&gt;&lt;/div&gt;&lt;div class="dp-highlighter" style="text-align: left;"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt"&gt;margin:&amp;nbsp;15px&amp;nbsp;0;&amp;nbsp;/*--top&amp;nbsp;and&amp;nbsp;bottom&amp;nbsp;=&amp;nbsp;15px&amp;nbsp;|&amp;nbsp;right&amp;nbsp;and&amp;nbsp;left&amp;nbsp;=&amp;nbsp;0&amp;nbsp;--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;padding:&amp;nbsp;15px;&amp;nbsp;/*--top,&amp;nbsp;right,&amp;nbsp;bottom&amp;nbsp;and&amp;nbsp;left&amp;nbsp;=&amp;nbsp;15px&amp;nbsp;--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;pre class="css" name="code" style="display: none;"&gt;margin: 15px 0; /*--top and bottom = 15px | right and left = 0 --*/&lt;br /&gt;padding: 15px; /*--top, right, bottom and left = 15px --*/&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Here is what the &lt;b&gt;complete CSS&lt;/b&gt; would look like for this heading:&lt;br /&gt;&lt;/div&gt;&lt;div class="dp-highlighter" style="text-align: left;"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt"&gt;h2&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;background:&amp;nbsp;#f0f0f0;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;border:&amp;nbsp;1px&amp;nbsp;solid&amp;nbsp;#ddd;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;margin:&amp;nbsp;15px&amp;nbsp;0;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;padding:&amp;nbsp;15px;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;pre class="css" name="code" style="display: none;"&gt;h2 {&lt;br /&gt;background: #f0f0f0;&lt;br /&gt;border: 1px solid #ddd;&lt;br /&gt;margin: 15px 0;&lt;br /&gt;padding: 15px;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 style="text-align: left;"&gt;Quick Tip&lt;/h4&gt;&lt;div style="text-align: left;"&gt;Keep in mind that padding &lt;b&gt;adds to the total width&lt;/b&gt; of your element. For example, if you had specified that the element should be 100 pixels wide, and you had a left and right padding of 10 pixels, then you would end up with 120 pixels in total.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;100px (content) + 10px (left padding) + 10px (right padding) = 120px (total width of element)&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Margin, however, expands the box model but does not directly affect the element itself. This tip is especially handy when lining up columns in a layout!&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Additional resources:&lt;br /&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;a href="http://www.w3.org/TR/CSS2/box.html"&gt;Box Model&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://htmldog.com/guides/cssbeginner/margins/"&gt;Margins and Padding&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.smashingmagazine.com/2009/07/27/the-definitive-guide-to-using-negative-margins/"&gt;The Definitive Guide to Using Negative Margins&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.dustindiaz.com/css-shorthand/"&gt;CSS Shorthand Guide&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.tizag.com/cssT/margin.php"&gt;CSS Margin&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.tizag.com/cssT/padding.php"&gt;CSS Padding&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt;&lt;h3 id="CSS-Basics2" style="text-align: left;"&gt;2. Floats&lt;/h3&gt;&lt;div style="text-align: left;"&gt;Floats are a fundamental element in building CSS-based websites and can be used to align images and build layouts and columns. If you recall how to align elements left and right in HTML, floating works in a similar way.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;According to &lt;a href="http://htmldog.com/reference/cssproperties/float/"&gt;HTML Dog&lt;/a&gt;, the &lt;code&gt;float&lt;/code&gt; property “specifies whether a fixed-width box should float, shifting it to the right or left, with surrounding content flowing around it.”&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_vXpJMpavQ8A/Ss7Xs-21lKI/AAAAAAAAARo/O7b3-2MkgrM/s1600-h/2_a.jpg.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_vXpJMpavQ8A/Ss7Xs-21lKI/AAAAAAAAARo/O7b3-2MkgrM/s320/2_a.jpg.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;The &lt;code&gt;float: left&lt;/code&gt; value aligns elements to the left and can also be used as a solid container to create layouts and columns. Let’s look at a practical situation in which you can use &lt;code&gt;float: left&lt;/code&gt;.&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_vXpJMpavQ8A/Ss7X9YuxiUI/AAAAAAAAARw/Syn7EJgVieg/s1600-h/2_b.jpg.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_vXpJMpavQ8A/Ss7X9YuxiUI/AAAAAAAAARw/Syn7EJgVieg/s320/2_b.jpg.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;The &lt;code&gt;float: right&lt;/code&gt; value aligns elements to the right, with surrounding elements flowing to the left. &lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_vXpJMpavQ8A/Ss7YTmB54bI/AAAAAAAAASA/-I5mDFK0IOY/s1600-h/2_c.gif.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_vXpJMpavQ8A/Ss7YTmB54bI/AAAAAAAAASA/-I5mDFK0IOY/s320/2_c.gif.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;b&gt;Quick tip:&lt;/b&gt; Because block elements typically span 100% of their parent container’s width, floating an element &lt;b&gt;to the right&lt;/b&gt; knocks it down to the next line. This also applies to plain text that runs next to it because the floated element cannot squeeze in the same line.&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;You can correct this issue in one of two ways:&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_vXpJMpavQ8A/Ss7YF8SMiII/AAAAAAAAAR4/cZgzw_t0g3A/s1600-h/2_c1.gif.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_vXpJMpavQ8A/Ss7YF8SMiII/AAAAAAAAAR4/cZgzw_t0g3A/s320/2_c1.gif.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;&lt;b&gt;Reverse the order of the HTML markup&lt;/b&gt; so that you call the floated element first, and the neighboring element second.&lt;span id="goog_1255068808631"&gt;&lt;/span&gt;&lt;span id="goog_1255068808632"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Specify an exact width for the neighboring element&lt;/b&gt; so that when the two elements sit side by side, their combined width is less than or equal to the width of their parent container.&lt;/li&gt;&amp;nbsp;&lt;/ol&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7Yeyk2MKI/AAAAAAAAASQ/HjSrkBogLcA/s1600-h/2_c2.gif.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7Yeyk2MKI/AAAAAAAAASQ/HjSrkBogLcA/s320/2_c2.gif.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;ol style="text-align: left;"&gt;&lt;/ol&gt;&lt;div style="text-align: left;"&gt;Internet Explorer 6 (IE6) has been known to &lt;b&gt;double&lt;/b&gt; a floated element’s margin. So, what you originally specified as a 5-pixel margin becomes 10 pixels in IE6.&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_vXpJMpavQ8A/Ss7ZB2b3JOI/AAAAAAAAAUA/7ZhrBjJMjA8/s1600-h/upd_2_d.gif.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_vXpJMpavQ8A/Ss7ZB2b3JOI/AAAAAAAAAUA/7ZhrBjJMjA8/s320/upd_2_d.gif.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span id="goog_1255068808661"&gt;&lt;/span&gt;&lt;span id="goog_1255068808662"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;A simple trick to get around this bug is to add &lt;code&gt;display: inline&lt;/code&gt; to your floated element, like so:&lt;br /&gt;&lt;/div&gt;&lt;div class="dp-highlighter" style="text-align: left;"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt"&gt;.floated_element&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;float:&amp;nbsp;left;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;width:&amp;nbsp;200px;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;margin:&amp;nbsp;5px;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;display:&amp;nbsp;inline;&amp;nbsp;/*--IE6&amp;nbsp;workaround--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;pre class="css" name="code" style="display: none;"&gt;.floated_element {&lt;br /&gt;float: left;&lt;br /&gt;width: 200px;&lt;br /&gt;margin: 5px;&lt;br /&gt;display: inline; /*--IE6 workaround--*/&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Additional resources:&lt;br /&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;a href="http://css.maxdesign.com.au/floatutorial/"&gt;Floatutorial&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.quirksmode.org/css/clearing.html"&gt;Clearing Floats&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.smashingmagazine.com/2007/05/01/css-float-theory-things-you-should-know/"&gt;CSS Float Theory: Things You Should Know&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://css-tricks.com/all-about-floats/"&gt;CSS-Tricks: All About Floats&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.complexspiral.com/publications/containing-floats/"&gt;Containing Floats&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.w3schools.com/Css/pr_class_clear.asp"&gt;W3Schools: Clear&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.w3schools.com/css/pr_class_float.asp"&gt;W3Schools: Float&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 id="CSS-Basics3" style="text-align: left;"&gt;3. Center Alignment &lt;/h3&gt;&lt;div style="text-align: left;"&gt;The days of using the HTML tag are long gone. Let’s look at the various ways of center-aligning an element. &lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;center&gt;&lt;h4 style="text-align: left;"&gt;Horizontal Alignment&lt;/h4&gt;&lt;div style="text-align: left;"&gt;You can horizontally align text elements using the &lt;a href="http://www.w3schools.com/CSS/pr_text_text-align.asp"&gt;&lt;code&gt;text-align&lt;/code&gt;&lt;/a&gt; property. This is quite simple to do, but keep in mind when center-aligning &lt;a href="http://en.wikipedia.org/wiki/HTML_element#Inline_elements"&gt;inline&lt;/a&gt; &lt;a href="http://htmlhelp.com/reference/html40/inline.html"&gt;elements&lt;/a&gt; that you must add &lt;code&gt;display: block&lt;/code&gt;. This allows the browser to determine the boundaries on which to base its alignment of your element.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="dp-highlighter"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt" style="text-align: left;"&gt;.center&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="" style="text-align: left;"&gt;text-align:&amp;nbsp;center;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt" style="text-align: left;"&gt;display:&amp;nbsp;block;&amp;nbsp;/*--For&amp;nbsp;inline&amp;nbsp;elements&amp;nbsp;only--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="" style="text-align: left;"&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;pre class="css" name="code" style="display: none;"&gt;.center {&lt;br /&gt;text-align: center;&lt;br /&gt;display: block; /*--For inline elements only--*/&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div style="text-align: left;"&gt;To horizontally align non-textual elements, use the &lt;a href="http://www.w3schools.com/CSS/css_margin.asp"&gt;&lt;code&gt;margin&lt;/code&gt;&lt;/a&gt; property.&lt;br /&gt;The &lt;a href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth"&gt;W3C&lt;/a&gt; says, “If both &lt;code&gt;margin-left&lt;/code&gt; and &lt;code&gt;margin-right&lt;/code&gt; are &lt;code&gt;auto&lt;/code&gt;, their used values are equal. This horizontally centers the element with respect to the edges of the containing block.”&lt;br /&gt;Horizontal alignment can be achieved, then, by setting the left and right margins to &lt;code&gt;auto&lt;/code&gt;. This is an ideal method of horizontally aligning non-text-based elements; for example, layouts and images. But when center-aligning a layout or element without a specified width, you must specify a width in order for this to work.&lt;br /&gt;To center-align a layout:&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="dp-highlighter"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt" style="text-align: left;"&gt;.layout_container&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="" style="text-align: left;"&gt;margin:&amp;nbsp;0&amp;nbsp;auto;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt" style="text-align: left;"&gt;width:&amp;nbsp;960px;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="" style="text-align: left;"&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;pre class="css" name="code" style="display: none;"&gt;.layout_container {&lt;br /&gt;margin: 0 auto;&lt;br /&gt;width: 960px;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div style="text-align: left;"&gt;To center-align an image:&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="dp-highlighter"&gt;&lt;div class="bar" style="text-align: left;"&gt;&lt;div class="tools"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt" style="text-align: left;"&gt;img.center&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="" style="text-align: left;"&gt;margin:&amp;nbsp;0&amp;nbsp;auto;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt" style="text-align: left;"&gt;display:&amp;nbsp;block;&amp;nbsp;/*--Since&amp;nbsp;IMG&amp;nbsp;is&amp;nbsp;an&amp;nbsp;inline&amp;nbsp;element--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="" style="text-align: left;"&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;pre class="css" name="code" style="display: none;"&gt;img.center {&lt;br /&gt;margin: 0 auto;&lt;br /&gt;display: block; /*--Since IMG is an inline element--*/&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;h4 style="text-align: left;"&gt;Vertical Alignment&lt;/h4&gt;&lt;div style="text-align: left;"&gt;You can vertically align text-based elements using the &lt;a href="http://www.w3schools.com/css/pr_dim_line-height.asp"&gt;&lt;code&gt;line-height&lt;/code&gt;&lt;/a&gt; property, which specifies the amount of vertical space between lines of text. This is ideal for vertically aligning headings and other text-based elements. Simply match the &lt;code&gt;line-height&lt;/code&gt; with the height of the element.&lt;/div&gt;&lt;a href="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7YgX4QqvI/AAAAAAAAASY/_ZhCBrd0r3k/s1600-h/3_a.jpg.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7YgX4QqvI/AAAAAAAAASY/_ZhCBrd0r3k/s320/3_a.jpg.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="dp-highlighter"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt" style="text-align: left;"&gt;h1&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="" style="text-align: left;"&gt;font-size:&amp;nbsp;3em;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt" style="text-align: left;"&gt;height:&amp;nbsp;100px;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="" style="text-align: left;"&gt;line-height:&amp;nbsp;100px;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt" style="text-align: left;"&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;pre class="css" name="code" style="display: none;"&gt;h1 {&lt;br /&gt;font-size: 3em;&lt;br /&gt;height: 100px;&lt;br /&gt;line-height: 100px;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div style="text-align: left;"&gt;To vertically align non-textual elements, use &lt;a href="http://www.w3schools.com/Css/pr_class_position.asp"&gt;absolute positioning&lt;/a&gt;.&lt;br /&gt;The trick with this technique is that you must specify the exact height and width of the centered element.&lt;br /&gt;With the &lt;code&gt;position: absolute&lt;/code&gt; property, an element is positioned according to its base position (&lt;b&gt;0,0&lt;/b&gt;: the top-left corner). In the image below, the red point indicates the 0,0 base of the element, before a negative margin is applied.&lt;br /&gt;By applying negative top and left margins, we can now perfectly align this element both vertically and horizontally.&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_vXpJMpavQ8A/Ss7Y_x2cRII/AAAAAAAAAT4/S_szZXUratY/s1600-h/upd3_b.gif.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_vXpJMpavQ8A/Ss7Y_x2cRII/AAAAAAAAAT4/S_szZXUratY/s320/upd3_b.gif.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Here is the complete CSS for horizontal and vertical alignment:&lt;br /&gt;&lt;br /&gt;&lt;div class="dp-highlighter"&gt;&lt;div class="bar" style="text-align: left;"&gt;&lt;div class="tools"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt" style="text-align: left;"&gt;.vertical&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="" style="text-align: left;"&gt;width:&amp;nbsp;600px;&amp;nbsp;/*--Specify&amp;nbsp;Width--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt" style="text-align: left;"&gt;height:&amp;nbsp;300px;&amp;nbsp;/*--Specify&amp;nbsp;Height--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="" style="text-align: left;"&gt;position:&amp;nbsp;absolute;&amp;nbsp;/*--Set&amp;nbsp;positioning&amp;nbsp;to&amp;nbsp;absolute--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt" style="text-align: left;"&gt;top:&amp;nbsp;50%;&amp;nbsp;/*--Set&amp;nbsp;top&amp;nbsp;coordinate&amp;nbsp;to&amp;nbsp;50%--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="" style="text-align: left;"&gt;left:&amp;nbsp;50%;&amp;nbsp;/*--Set&amp;nbsp;left&amp;nbsp;coordinate&amp;nbsp;to&amp;nbsp;50%--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt" style="text-align: left;"&gt;margin:&amp;nbsp;-150px&amp;nbsp;0&amp;nbsp;0&amp;nbsp;-300px;&amp;nbsp;/*--Set&amp;nbsp;negative&amp;nbsp;top/left&amp;nbsp;margin--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="" style="text-align: left;"&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;pre class="css" name="code" style="display: none;"&gt;.vertical {&lt;br /&gt;width: 600px; /*--Specify Width--*/&lt;br /&gt;height: 300px; /*--Specify Height--*/&lt;br /&gt;position: absolute; /*--Set positioning to absolute--*/&lt;br /&gt;top: 50%; /*--Set top coordinate to 50%--*/&lt;br /&gt;left: 50%; /*--Set left coordinate to 50%--*/&lt;br /&gt;margin: -150px 0 0 -300px; /*--Set negative top/left margin--*/&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div style="text-align: left;"&gt;&lt;b&gt;Related articles:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style="text-align: left;"&gt;&lt;a href="http://blog.themeforest.net/tutorials/vertical-centering-with-css/"&gt;Vertical Centering With CSS&lt;/a&gt;&lt;/li&gt;&lt;li style="text-align: left;"&gt;&lt;a href="http://www.w3.org/Style/Examples/007/center"&gt;Centering Things&lt;/a&gt;&lt;/li&gt;&lt;li style="text-align: left;"&gt;&lt;a href="http://simplebits.com/notebook/2004/09/08/centering.html"&gt;CSS Centering 101&lt;/a&gt;&lt;/li&gt;&lt;li style="text-align: left;"&gt;&lt;a href="http://www.maxdesign.com.au/presentation/center/"&gt;CSS Centering: Fun for All! &lt;/a&gt;&lt;/li&gt;&lt;li style="text-align: left;"&gt;&lt;a href="http://www.sohtanaka.com/web-design/vertical-alignment-css/"&gt;Two Simple Ways to Vertically Align with CSS&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 id="CSS-Basics4" style="text-align: left;"&gt;4. Ordered vs. Unordered Lists&lt;/h3&gt;&lt;div style="text-align: left;"&gt;An ordered list, &lt;code&gt;&lt;/code&gt;, is a list whose items are marked with numbers. An unordered list, , is a list whose items are marked with bullets. By default, both of these list item styles are plain and simple. But with the help of CSS, you can easily customize them. To keep the code semantic, lists should be used only for content that is itemized in a list-like fashion. But they can be extended to create multiple columns and navigation menus. &lt;br /&gt;&lt;/div&gt;&lt;ol style="text-align: left;"&gt;&lt;ul&gt;&lt;h4&gt;Customizing Unordered Lists&lt;/h4&gt;Plain bullets are dull and may not draw enough attention to the content they accompany. You can fix this with a simple yet effective technique: remove the default bullets and apply a background image to each list item. Here is the CSS for custom bullets: &lt;div class="dp-highlighter"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt"&gt;ul.product_checklist&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;list-style:&amp;nbsp;none;&amp;nbsp;/*--Takes&amp;nbsp;out&amp;nbsp;the&amp;nbsp;default&amp;nbsp;bullets--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;margin:&amp;nbsp;0;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;padding:&amp;nbsp;0;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;ul.product_checklist&amp;nbsp;li&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;padding:&amp;nbsp;5px&amp;nbsp;5px&amp;nbsp;5px&amp;nbsp;25px;&amp;nbsp;/*--Adds&amp;nbsp;padding&amp;nbsp;around&amp;nbsp;each&amp;nbsp;item--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;margin:&amp;nbsp;0;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;background:&amp;nbsp;url(icon_checklist.gif)&amp;nbsp;no-repeat&amp;nbsp;left&amp;nbsp;center;&amp;nbsp;/*--Adds&amp;nbsp;a&amp;nbsp;bullet&amp;nbsp;icon&amp;nbsp;as&amp;nbsp;a&amp;nbsp;background&amp;nbsp;image--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;div&gt;&lt;pre class="css" name="code" style="display: none;"&gt;ul.product_checklist {&lt;br /&gt;list-style: none; /*--Takes out the default bullets--*/&lt;br /&gt;margin: 0;&lt;br /&gt;padding: 0;&lt;br /&gt;}&lt;br /&gt;ul.product_checklist li {&lt;br /&gt;padding: 5px 5px 5px 25px; /*--Adds padding around each item--*/&lt;br /&gt;margin: 0;&lt;br /&gt;background: url(icon_checklist.gif) no-repeat left center; /*--Adds a bullet icon as a background image--*/&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol&gt;&lt;ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_vXpJMpavQ8A/Ss7Yh8R8wLI/AAAAAAAAASg/48kgLTTihPk/s1600-h/4_a.gif.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_vXpJMpavQ8A/Ss7Yh8R8wLI/AAAAAAAAASg/48kgLTTihPk/s320/4_a.gif.htm" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt; Resources for list items: &lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;a href="http://www.noupe.com/css/css-styled-lists-20-demos-tutorials-and-best-of.html"&gt;CSS-Styled Lists: 20+ Demos, Tutorials and Best Practices&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.webdesignerwall.com/tutorials/style-your-ordered-list/"&gt;Style Your Ordered List&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.alistapart.com/articles/taminglists/"&gt;CSS Design: Taming Lists&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style="text-align: left;"&gt;Using Unordered Lists for Navigation&lt;/h4&gt;&lt;div style="text-align: left;"&gt;Most CSS-based navigation menus are now built as lists. Here is a breakdown of how to turn an ordinary list into a horizontal navigation menu. &lt;b&gt;HTML:&lt;/b&gt; begin with a simple unordered list, with links for each list item. &lt;/div&gt;&lt;div class="dp-highlighter"&gt;&lt;/div&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;/center&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;pre class="css" name="code" style="display: none;"&gt;&lt;ul id="topnav"&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=8440708341142545117#"&gt;Home&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=8440708341142545117#"&gt;Services&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=8440708341142545117#"&gt;Portfolio&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=8440708341142545117#"&gt;About&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=8440708341142545117#"&gt;Contact&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;b&gt;CSS:&lt;/b&gt; we remove the default bullets (as we did when we made custom bullets) by specifying &lt;code&gt;list-style: none&lt;/code&gt;. Then, we float each list item to the left so that the navigation menu appears horizontal, flowing from left to right.&lt;br /&gt;&lt;/div&gt;&lt;div class="dp-highlighter" style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;pre class="css" name="code" style="display: none;"&gt;ul#topnav {&lt;br /&gt;list-style: none;&lt;br /&gt;float: left;&lt;br /&gt;width: 960px;&lt;br /&gt;margin: 0; padding: 0;&lt;br /&gt;background: #f0f0f0;&lt;br /&gt;border: 1px solid #ddd;&lt;br /&gt;}&lt;br /&gt;ul#topnav li {&lt;br /&gt;float: left;&lt;br /&gt;margin: 0; padding: 0;&lt;br /&gt;border-right: 1px solid #ddd;&lt;br /&gt;}&lt;br /&gt;ul#topnav li a {&lt;br /&gt;float: left;&lt;br /&gt;display: block;&lt;br /&gt;padding: 10px;&lt;br /&gt;color: #333;&lt;br /&gt;text-decoration: none;&lt;br /&gt;}&lt;br /&gt;ul#topnav li a:hover {&lt;br /&gt;background: #fff;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Additional resources:&lt;br /&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;a href="http://www.smashingmagazine.com/2007/03/14/css-based-navigation-menus-modern-solutions/"&gt;CSS-Based Navigation Menus: Modern Solutions&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://sixrevisions.com/css/30-exceptional-css-navigation-techniques/"&gt;30 Exceptional CSS Navigation Techniques&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://mirificampress.com/permalink/the_amazing_li"&gt;Using CSS and Unordered List Items to Do Just About Anything&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.sitepoint.com/article/navigation-using-css/"&gt;Nifty Navigation Tricks Using CSS&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://css-tricks.com/centering-list-items-horizontally-slightly-trickier-than-you-might-think/"&gt;Centering List Items Horizontally&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://woork.blogspot.com/2008/01/digg-like-navigation-bar-using-css.html"&gt;Digg-Like Navigation Bar Using CSS&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 id="CSS-Basics5" style="text-align: left;"&gt;5. Styling Headings&lt;/h3&gt;&lt;div style="text-align: left;"&gt;The heading HTML tag is important for SEO. But regular headings can look dull. Why not spice them up with CSS and enjoy the best of both worlds?&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Once you have the main styling properties set for your headings, you can now &lt;b&gt;nest inline elements&lt;/b&gt; to target specific text for extra styling.&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_vXpJMpavQ8A/Ss7YknHeioI/AAAAAAAAASo/9C0tUWn2hzs/s1600-h/5_a.gif.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_vXpJMpavQ8A/Ss7YknHeioI/AAAAAAAAASo/9C0tUWn2hzs/s320/5_a.gif.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Your HTML would look like this:&lt;br /&gt;&lt;/div&gt;&lt;div class="dp-highlighter" style="text-align: left;"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt"&gt;&lt;h&gt;&lt;/h&gt;1&amp;gt;CSS&amp;nbsp;Back&amp;nbsp;to&amp;nbsp;Basics&amp;nbsp;&amp;lt;small&amp;gt;Tips,&amp;nbsp;Tricks,&amp;nbsp;&amp;amp;&amp;nbsp;Practical&amp;nbsp;Uses&amp;nbsp;of&amp;nbsp;CSSsmall&amp;gt;1&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;pre class="css" name="code" style="display: none;"&gt;&lt;h1&gt;CSS Back to Basics &lt;small&gt;Tips, Tricks, &amp;amp; Practical Uses of CSS&lt;/small&gt;&lt;/h1&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;And your CSS would look like this:&lt;br /&gt;&lt;/div&gt;&lt;div class="dp-highlighter" style="text-align: left;"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt"&gt;h1&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;font:&amp;nbsp;normal&amp;nbsp;5.2em&amp;nbsp;Georgia,&amp;nbsp;"Times&amp;nbsp;New&amp;nbsp;Roman",&amp;nbsp;Times,&amp;nbsp;serif;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;margin:&amp;nbsp;0&amp;nbsp;0&amp;nbsp;20px;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;padding:&amp;nbsp;10px&amp;nbsp;0;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;font-weight:&amp;nbsp;normal;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;text-align:&amp;nbsp;center;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;text-shadow:&amp;nbsp;1px&amp;nbsp;1px&amp;nbsp;1px&amp;nbsp;#ccc;&amp;nbsp;/*--Not&amp;nbsp;supported&amp;nbsp;by&amp;nbsp;IE--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;h1&amp;nbsp;span&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;color:&amp;nbsp;#cc0000;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;font-weight:&amp;nbsp;bold;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;h1&amp;nbsp;small&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;font-size:&amp;nbsp;0.35em;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;text-transform:&amp;nbsp;uppercase;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;color:&amp;nbsp;#999;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;font-family:&amp;nbsp;Arial,&amp;nbsp;Helvetica,&amp;nbsp;sans-serif;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;text-shadow:&amp;nbsp;none;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;display:&amp;nbsp;block;&amp;nbsp;/*--Keeps&amp;nbsp;the&amp;nbsp;small&amp;nbsp;tag&amp;nbsp;on&amp;nbsp;its&amp;nbsp;own&amp;nbsp;line--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;pre class="css" name="code" style="display: none;"&gt;h1 {&lt;br /&gt;font: normal 5.2em Georgia, "Times New Roman", Times, serif;&lt;br /&gt;margin: 0 0 20px;&lt;br /&gt;padding: 10px 0;&lt;br /&gt;font-weight: normal;&lt;br /&gt;text-align: center;&lt;br /&gt;text-shadow: 1px 1px 1px #ccc; /*--Not supported by IE--*/&lt;br /&gt;}&lt;br /&gt;h1 span {&lt;br /&gt;color: #cc0000;&lt;br /&gt;font-weight: bold;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;h1 small {&lt;br /&gt;font-size: 0.35em;&lt;br /&gt;text-transform: uppercase;&lt;br /&gt;color: #999;&lt;br /&gt;font-family: Arial, Helvetica, sans-serif;&lt;br /&gt;text-shadow: none;&lt;br /&gt;display: block; /*--Keeps the small tag on its own line--*/&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Additional typography-related resources:&lt;br /&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;a href="http://www.3point7designs.com/blog/2008/06/02/10-examples-of-beautiful-css-typography-and-how-they-did-it/"&gt;10 Examples of Beautiful CSS Typography, and How They Did It&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://webdesignledger.com/resources/12-css-tools-and-tutorials-for-beautiful-web-typography"&gt;12 CSS Tools and Tutorials for Beautiful Web Typography&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.webdesignerwall.com/tutorials/css-gradient-text-effect/"&gt;CSS Gradient Text Effect&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.smashingmagazine.com/2009/01/27/css-typographic-tools-and-techniques/"&gt;50 Useful Design Tools For Beautiful Web Typography&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://net.tutsplus.com/tutorials/html-css-techniques/six-ways-to-improve-your-web-typography/"&gt;6 Ways to Improve Your Web Typography&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.noupe.com/css/css-typography-contrast-techniques-tutorials-and-best-practices.html"&gt;CSS Typography: Contrast Techniques, Tutorials and Best Practices&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.aisleone.net/2009/design/8-ways-to-improve-your-typography/"&gt;8 Simple Ways to Improve Typography in Your Designs&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.alistapart.com/articles/howtosizetextincss/"&gt;How to Size Text in CSS&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 id="CSS-Basics6" style="text-align: left;"&gt;6. Overflow&lt;/h3&gt;&lt;div style="text-align: left;"&gt;The &lt;code&gt;overflow&lt;/code&gt; property can be used in various ways and is one of the most useful properties in the CSS arsenal.&lt;br /&gt;&lt;/div&gt;&lt;h4 style="text-align: left;"&gt;What Is Overflow?&lt;/h4&gt;&lt;div style="text-align: left;"&gt;According to &lt;a href="http://www.w3schools.com/Css/pr_pos_overflow.asp"&gt;W3Schools.com&lt;/a&gt;, “the overflow property specifies what happens if content overflows an element’s box.”&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Take a look at the following examples to see how this works.&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7YmV04piI/AAAAAAAAASw/0FQ6xYMhQO8/s1600-h/6_a.jpg.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7YmV04piI/AAAAAAAAASw/0FQ6xYMhQO8/s320/6_a.jpg.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Visually, &lt;code&gt;overflow: auto&lt;/code&gt; looks like an iframe but is much more useful and SEO-friendly. It automatically adds a scroll bar (horizontal, vertical or both) when the content within an element exceeds the element’s box or boundary.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;The &lt;code&gt;overflow: scroll&lt;/code&gt; property works the same but forces a scroll bar to appear regardless of whether or not the content exceeds the element’s boundary.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;And the &lt;code&gt;overflow: hidden&lt;/code&gt; property masks or hides an element’s content if it exceeds the element’s boundary.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Quick tip: have you ever had a parent element that did not fully wrap around its child element? You can fix this by making the parent container a floated element.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;In some cases, though, floating left or right is not a workable solution — for example, if you want to center-align the container or do not want to specify an exact width. In this case, use &lt;code&gt;overflow: hidden&lt;/code&gt; on your parent container to completely wrap any floated child elements within it.&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_vXpJMpavQ8A/Ss7YoRj_e2I/AAAAAAAAAS4/zHvPWbT17TM/s1600-h/6_b.jpg.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_vXpJMpavQ8A/Ss7YoRj_e2I/AAAAAAAAAS4/zHvPWbT17TM/s320/6_b.jpg.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Additional resources:&lt;br /&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;a href="http://htmldog.com/reference/cssproperties/overflow/"&gt;HTML Dog: Overflow&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.w3schools.com/Css/pr_pos_overflow.asp"&gt;W3Schools: Overflow&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://cssglobe.com/post/1305/create-resizing-thumbnails-using-overflow-property"&gt;CSS Globe: Create Resizing Thumbnails&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://css-tricks.com/the-css-overflow-property/"&gt;CSS-Tricks: CSS Overflow Breakdown&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 id="CSS-Basics7" style="text-align: left;"&gt;7. Position&lt;/h3&gt;&lt;div style="text-align: left;"&gt;Positioning (relative, absolute and fixed) is one of the most powerful properties in CSS. It allows you to position an element using exact coordinates, giving you the freedom and creativity to design out of the box.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;You have to do three basic things when using positioning:&lt;br /&gt;&lt;/div&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;&lt;b&gt;Set the coordinates&lt;/b&gt; (i.e. define the positioning of the x and y coordinates).&lt;/li&gt;&lt;li&gt;&lt;b&gt;Choose the right value for the situation&lt;/b&gt;: relative, absolute, fixed or static.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Set a value for the &lt;a href="http://www.w3schools.com/Css/pr_pos_z-index.asp"&gt;z-index&lt;/a&gt; property: &lt;/b&gt; to layer elements (optional).&lt;/li&gt;&lt;/ol&gt;&lt;div style="text-align: left;"&gt;With &lt;code&gt;position: relative&lt;/code&gt;, an element is placed in its natural position. For example, if a relatively positioned element sits to the left of an image, setting the top and left coordinates to &lt;code&gt;10px&lt;/code&gt; would move the element just 10 pixels from the top and 10 pixels from the left of that exact spot.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Relative positioning is also commonly used &lt;b&gt;to define the new point of origin (the x and y coordinates)&lt;/b&gt; of absolutely positioned nested elements. By default, the base position of every element is the top-left corner (0,0) of the browser’s view port. When you give an element relative positioning, then the base position of any child elements with absolute positioning will be positioned relative to their parent element — i.e. 0,0 is now the top-left corner of the parent element, not the browser’s view port.&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7Yp7pGm-I/AAAAAAAAATA/jJ7yQ9JsjCU/s1600-h/7_a.gif.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7Yp7pGm-I/AAAAAAAAATA/jJ7yQ9JsjCU/s320/7_a.gif.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;An element with a value of &lt;code&gt;position: absolute&lt;/code&gt; can be placed anywhere using x and y coordinates. By default, its base position (0,0) is the top-left corner of the browser’s view port. It ignores all natural flow rules and is not affected by surrounding elements.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;The base position of an element with a &lt;code&gt;position: fixed&lt;/code&gt; value is also the top-left corner of the browser’s view port. The difference with fixed positioning is that &lt;b&gt;the element will be fixed to its location and remain in view even when the user scrolls up or down.&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;The &lt;a href="http://www.w3schools.com/Css/pr_pos_z-index.asp"&gt;&lt;code&gt;z-index&lt;/code&gt;&lt;/a&gt; property specifies the stack order of an element. The higher the value, the higher the element will appear.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Think of z-index stacking as layering. Check out the image below for an example:&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7Yr1UmX1I/AAAAAAAAATI/eSYZYw-f2sw/s1600-h/7_b.gif.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7Yr1UmX1I/AAAAAAAAATI/eSYZYw-f2sw/s320/7_b.gif.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Additional resources:&lt;br /&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;a href="http://www.w3schools.com/Css/css_positioning.asp"&gt;W3Schools: CSS Positioning&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://css-tricks.com/absolute-relative-fixed-positioining-how-do-they-differ/"&gt;CSS-Tricks: Absolute, Relative, Fixed Positioning&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://thecssblog.com/tutorials/stopping-the-css-positioning-panic-part-1/"&gt;Stopping the CSS Positioning Panic&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.barelyfitz.com/screencast/html-training/css/positioning/"&gt;Learn CSS Positioning in Ten Steps&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.onextrapixel.com/2009/05/29/an-indepth-coverage-on-css-layers-z-index-relative-and-absolute-positioning/"&gt;In-Depth Coverage of CSS Layers, Z-Index, Relative and Absolute Positioning&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 style="text-align: left;"&gt;Adding Flavor With CSS&lt;/h3&gt;&lt;div style="text-align: left;"&gt;Now that you understand the basics, step up your game by adding a bit of flavor to your CSS. Below are some common techniques for enhancing and polishing your layout and images. We’ll also challenge you to create your own website from scratch using pure CSS.&lt;br /&gt;&lt;/div&gt;&lt;h3 id="CSS-Basics8" style="text-align: left;"&gt;9. Background Images&lt;/h3&gt;&lt;div style="text-align: left;"&gt;Background images come in handy for many visual effects. Whether you add a repeating background image to cover a large area or add stylish icons to your navigation, the property makes your page come to life.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Note, though, that the default print setting excludes the background property. When creating printable pages, be mindful of which elements have background images and include image tags.&lt;br /&gt;&lt;/div&gt;&lt;h4 style="text-align: left;"&gt;Using Large Backgrounds&lt;/h4&gt;&lt;div style="text-align: left;"&gt;With monitor sizes getting bigger and bigger, large background images for websites have become quite popular.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Check out this detailed tutorial by &lt;a href="http://www.ndesign-studio.com/"&gt;Nick La&lt;/a&gt; of &lt;a href="http://www.webdesignerwall.com/"&gt;WebDesigner Wall&lt;/a&gt; on how to achieve this effect:&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_vXpJMpavQ8A/Ss7Ytvdwj4I/AAAAAAAAATQ/qiWV6zNdsrM/s1600-h/8_a.jpg.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_vXpJMpavQ8A/Ss7Ytvdwj4I/AAAAAAAAATQ/qiWV6zNdsrM/s320/8_a.jpg.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Also be sure to read the article on Webdesigner Depot about the “&lt;a href="http://www.webdesignerdepot.com/2008/11/dos-and-donts-of-large-website-backgrounds/"&gt;Do’s and Don’ts of Large Website Backgrounds&lt;/a&gt;.”&lt;br /&gt;&lt;/div&gt;&lt;h4 style="text-align: left;"&gt;Text Replacement&lt;/h4&gt;&lt;div style="text-align: left;"&gt;You may be aware that not all standard browsers yet support custom fonts embedded on a website. But you can replace text with an image in &lt;a href="http://www.mezzoblue.com/tests/revised-image-replacement/"&gt;various ways&lt;/a&gt;. One rather simple technique is to use the &lt;code&gt;&lt;a href="http://www.w3schools.com/Css/pr_text_text-indent.asp"&gt;text-indent&lt;/a&gt;&lt;/code&gt; property.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Most commonly seen with headings, this technique replaces structured HTML text with an image.&lt;br /&gt;&lt;/div&gt;&lt;div class="dp-highlighter" style="text-align: left;"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;a href="http://www.smashingmagazine.com/2009/10/05/mastering-css-coding-getting-started/#" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;"&gt;view plain&lt;/a&gt;&lt;a href="http://www.smashingmagazine.com/2009/10/05/mastering-css-coding-getting-started/#" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;"&gt;copy to clipboard&lt;/a&gt;&lt;a href="http://www.smashingmagazine.com/2009/10/05/mastering-css-coding-getting-started/#" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;"&gt;print&lt;/a&gt;&lt;a href="http://www.smashingmagazine.com/2009/10/05/mastering-css-coding-getting-started/#" onclick="dp.sh.Toolbar.Command('About',this);return false;"&gt;?&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt"&gt;h1&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;background:&amp;nbsp;url(home_h1.gif)&amp;nbsp;no-repeat;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;text-indent:&amp;nbsp;-99999px;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;pre class="css" name="code" style="display: none;"&gt;h1 {&lt;br /&gt;background: url(home_h1.gif) no-repeat;&lt;br /&gt;text-indent: -99999px;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;You may sometimes need to specify a width and height (as well as &lt;code&gt;display: block&lt;/code&gt; if the element is inline).&lt;br /&gt;&lt;/div&gt;&lt;div class="dp-highlighter" style="text-align: left;"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt"&gt;.replacethis&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;background:&amp;nbsp;url(home_h1.gif)&amp;nbsp;no-repeat;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;text-indent:&amp;nbsp;-99999px;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;width:&amp;nbsp;100%;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;height:&amp;nbsp;60px;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;display:&amp;nbsp;block;&amp;nbsp;/*--Needed&amp;nbsp;only&amp;nbsp;for&amp;nbsp;inline&amp;nbsp;elements--*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;pre class="css" name="code" style="display: none;"&gt;.replacethis {&lt;br /&gt;background: url(home_h1.gif) no-repeat;&lt;br /&gt;text-indent: -99999px;&lt;br /&gt;width: 100%;&lt;br /&gt;height: 60px;&lt;br /&gt;display: block; /*--Needed only for inline elements--*/&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Articles on text replacement:&lt;br /&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;a href="http://css-tricks.com/css-image-replacement/"&gt;Nine Techniques for CSS Image Replacement&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://stopdesign.com/archive/2003/03/07/replace-text.html"&gt;Using background-image to Replace Text&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.tjkdesign.com/articles/tip.asp"&gt;Image Placement vs. Image Replacement&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.mezzoblue.com/tests/revised-image-replacement/"&gt;Revised Image Replacement&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style="text-align: left;"&gt;CSS Sprites&lt;/h4&gt;&lt;div style="text-align: left;"&gt;&lt;a href="http://www.smashingmagazine.com/2009/04/27/the-mystery-of-css-sprites-techniques-tools-and-tutorials/"&gt;CSS Sprites&lt;/a&gt; is a technique in which you use background positioning to show only a small area of a larger single background image (the larger image being actually multiple images laid out in a grid and merged into one file).&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7YvNJ5v_I/AAAAAAAAATY/z_nd6eOCJF0/s1600-h/8_c.gif.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7YvNJ5v_I/AAAAAAAAATY/z_nd6eOCJF0/s320/8_c.gif.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;CSS Sprites are commonly used with icons and the hover and active states of images that have replaced links and navigation items.&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7Y6kcXHBI/AAAAAAAAATg/-lyaFNSHhaE/s1600-h/8_d.gif.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7Y6kcXHBI/AAAAAAAAATg/-lyaFNSHhaE/s320/8_d.gif.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;b&gt;Why use CSS Sprites?&lt;/b&gt; CSS Sprites save loading time and cut down on CSS and and HTTP requests. To learn more about CSS Sprites, check out the resources below!&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Articles on CSS Sprites:&lt;br /&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;a href="http://www.smashingmagazine.com/2009/04/27/the-mystery-of-css-sprites-techniques-tools-and-tutorials/"&gt;The Mystery Of CSS Sprites: Techniques, Tools and Tutorials&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.webdesignerwall.com/tutorials/advanced-css-menu/"&gt;Advanced CSS Menu&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ehousestudio.com/blog/2008/06/27/css-sprite-navigation-tutorial/"&gt;CSS Sprite Navigation Tutorial&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://cssglobe.com/post/3028/creating-easy-and-useful-css-sprites"&gt;Creating Easy and Useful CSS Sprites&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.tutorial9.net/web-tutorials/building-faster-websites-with-css-sprites/"&gt;Building Faster Websites with CSS Sprites&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.alistapart.com/articles/sprites"&gt;CSS Sprites: Image Slicing’s Kiss of Death&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.websiteoptimization.com/speed/tweak/css-sprites/"&gt;CSS Sprites: How Yahoo.com and AOL.com Improve Web Performance&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.peachpit.com/articles/article.aspx?p=447210"&gt;What Are CSS Sprites?&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 id="CSS-Basics9" style="text-align: left;"&gt;10. Image Enhancement&lt;/h3&gt;&lt;div style="text-align: left;"&gt;You can style images with CSS in various ways, and some designers have made a lot of effort to create very stylish image templates.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;One simple trick is the double-border technique, which does not require any additional images and is pure CSS.&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_vXpJMpavQ8A/Ss7Y-ULqdlI/AAAAAAAAATw/N5d2AqP-yiE/s1600-h/9_b.jpg.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_vXpJMpavQ8A/Ss7Y-ULqdlI/AAAAAAAAATw/N5d2AqP-yiE/s320/9_b.jpg.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Your HTML would look like this:&lt;br /&gt;&lt;/div&gt;&lt;div class="dp-highlighter" style="text-align: left;"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt"&gt;&lt;img&amp;nbsp;class=&gt;&lt;/img&amp;nbsp;class=&gt;"double_border"&amp;nbsp;src="sample.jpg"&amp;nbsp;alt=""&amp;nbsp;/&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;pre class="css" name="code" style="display: none;"&gt;&lt;img alt="" class="double_border" src="sample.jpg" /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;And your CSS would look like this:&lt;br /&gt;&lt;/div&gt;&lt;div class="dp-highlighter" style="text-align: left;"&gt;&lt;div class="bar"&gt;&lt;div class="tools"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-css"&gt;&lt;li class="alt"&gt;img.double_border&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;border:&amp;nbsp;1px&amp;nbsp;solid&amp;nbsp;#bbb;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;padding:&amp;nbsp;5px;&amp;nbsp;/*Inner&amp;nbsp;border&amp;nbsp;size*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class=""&gt;background:&amp;nbsp;#ddd;&amp;nbsp;/*Inner&amp;nbsp;border&amp;nbsp;color*/&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;li class="alt"&gt;}&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;pre class="css" name="code" style="display: none;"&gt;img.double_border {&lt;br /&gt;border: 1px solid #bbb;&lt;br /&gt;padding: 5px; /*Inner border size*/&lt;br /&gt;background: #ddd; /*Inner border color*/&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Nick La of WebDesigner Wall has &lt;a href="http://www.webdesignerwall.com/tutorials/css-decorative-gallery/"&gt;a great tutorial&lt;/a&gt; on clever tricks to enhance your images. Do check it out!&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_vXpJMpavQ8A/Ss7Y8Lj3RwI/AAAAAAAAATo/10Fv0c_eQT4/s1600-h/9_a.gif.htm" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_vXpJMpavQ8A/Ss7Y8Lj3RwI/AAAAAAAAATo/10Fv0c_eQT4/s320/9_a.gif.htm" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 id="CSS-Basics10" style="text-align: left;"&gt;&lt;/h3&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-3357366998366514691?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/3357366998366514691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2009/10/css-coding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/3357366998366514691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/3357366998366514691'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2009/10/css-coding.html' title='CSS CODING'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_vXpJMpavQ8A/Ss7VLMR1HhI/AAAAAAAAARY/uS652bc4zAM/s72-c/1_a.gif.htm' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440708341142545117.post-1085001469710913359</id><published>2009-09-10T04:45:00.000-07:00</published><updated>2009-09-10T04:46:12.133-07:00</updated><title type='text'>11 Classic CSS Techniques Made Simple with CSS3</title><content type='html'>CSS3? What's that?!&lt;br /&gt;I'm sure you've heard of CSS in general. CSS3 isn't that much different, in terms of syntax; however, the power of CSS3 is much greater. As you'll see in these eleven techniques, you can have multiple backgrounds, dynamically resize those backgrounds, border radiuses, text shadows, and more!&lt;br /&gt;Here's what the official (or at least, what I consider official) website of CSS3, &lt;a href="http://www.css3.info/"&gt;css3.info&lt;/a&gt;, has to say about CSS3:&lt;br /&gt;CSS3 is the new kid in the stylesheet family. It offers exciting new possibilities to create an impact with your designs, allows you to use more diverse style sheets for a variety of occasions and lots more.&lt;br /&gt;What We'll Be Covering&lt;br /&gt;Here are the 11 techniques that I'll be showing you how to recreate with CSS3. I'll show you how to create them using CSS2 (or JavaScript), and then with CSS3 properties. Remember - these effects will only work in modern browsers that implement these CSS3 features. Your best option is to view these with Safari 4.&lt;br /&gt;&lt;a href="http://nettuts.s3.amazonaws.com/430_cssTips/demo/corners.html"&gt;Rounded Corners&lt;/a&gt;&lt;br /&gt;&lt;a href="http://nettuts.s3.amazonaws.com/430_cssTips/demo/shadow.html"&gt;Box Shadow&lt;/a&gt;&lt;br /&gt;&lt;a href="http://nettuts.s3.amazonaws.com/430_cssTips/demo/textshadow.html"&gt;Text Shadow&lt;/a&gt;&lt;br /&gt;&lt;a href="http://nettuts.s3.amazonaws.com/430_cssTips/demo/font.html"&gt;Fancy Font&lt;/a&gt;&lt;br /&gt;&lt;a href="http://nettuts.s3.amazonaws.com/430_cssTips/demo/opacity.html"&gt;Opacity&lt;/a&gt;&lt;br /&gt;&lt;a href="http://nettuts.s3.amazonaws.com/430_cssTips/demo/rgba.html"&gt;RGBA&lt;/a&gt;&lt;br /&gt;&lt;a href="http://nettuts.s3.amazonaws.com/430_cssTips/demo/bgsize.html"&gt;Background Size&lt;/a&gt;&lt;br /&gt;&lt;a href="http://nettuts.s3.amazonaws.com/430_cssTips/demo/bgs.html"&gt;Multiple Backgrounds&lt;/a&gt;&lt;br /&gt;&lt;a href="http://nettuts.s3.amazonaws.com/430_cssTips/demo/columns.html"&gt;Columns&lt;/a&gt;&lt;br /&gt;&lt;a href="http://nettuts.s3.amazonaws.com/430_cssTips/demo/border.html"&gt;Border Image&lt;/a&gt;&lt;br /&gt;&lt;a href="http://nettuts.s3.amazonaws.com/430_cssTips/demo/animation.html"&gt;Animations&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8440708341142545117-1085001469710913359?l=designerprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designerprasad.blogspot.com/feeds/1085001469710913359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://designerprasad.blogspot.com/2009/09/11-classic-css-techniques-made-simple.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/1085001469710913359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440708341142545117/posts/default/1085001469710913359'/><link rel='alternate' type='text/html' href='http://designerprasad.blogspot.com/2009/09/11-classic-css-techniques-made-simple.html' title='11 Classic CSS Techniques Made Simple with CSS3'/><author><name>Prasadsambari</name><uri>http://www.blogger.com/profile/07627209712792880097</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_vXpJMpavQ8A/Srcv-5ObzbI/AAAAAAAAAQ0/b83nNn7GOm4/S220/don.JPG'/></author><thr:total>0</thr:total></entry></feed>
