<?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-6765360061367593262</id><updated>2011-11-27T15:33:37.027-08:00</updated><title type='text'>{ CSS TRICKS }</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://csstriks.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default?start-index=101&amp;max-results=100'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>115</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-681407265514229929</id><published>2011-06-04T01:57:00.000-07:00</published><updated>2011-06-04T02:01:58.441-07:00</updated><title type='text'>Drill Down Menu for iPad, iPhone</title><content type='html'>A simple drill down menu for web, ipad, iphone&lt;br /&gt;Create a .html file and paste the below html code in the body location&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HTML CODE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;div id=’box’&amp;gt;&lt;br /&gt;&amp;lt;div id=”menu”&amp;gt;&lt;br /&gt;&amp;lt;div class=”nav”&amp;gt;DRILL DOWN MENU&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div id=”button” class=’test’&amp;gt;CLICK ME&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;br class=”cb” /&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt; &amp;lt;/body&amp;gt;&lt;br /&gt;&lt;br /&gt;In the .html file copy the total javascript code and place it in HEADER location.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;JAVA SCRIPT CODE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js” type=”text/javascript”&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script type=”text/javascript”&amp;gt;&lt;br /&gt;$(function(){&lt;br /&gt;$(‘#menu’).hide();&lt;br /&gt;$(‘#button’).click(function(){&lt;br /&gt;$(‘#menu’).slideToggle();&lt;br /&gt;}); });&lt;br /&gt;$(document).keypress(function(e) {&lt;br /&gt;if (e.which == 27) {&lt;br /&gt;$(‘#menu’).slideUp();&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;$(document).click(function(event) {&lt;br /&gt;if ( !$(event.target).hasClass(‘test’)) {&lt;br /&gt;$(‘#menu’).slideUp();&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;Create an external .css file and link it with .html file with &amp;lt;link&amp;gt; tag&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;CSS CODE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blog.varadesigns.com/drill-down-menu-for-ipad/"&gt;Read More&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-681407265514229929?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/681407265514229929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/681407265514229929'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2011/06/drill-down-menu-for-ipad-iphone.html' title='Drill Down Menu for iPad, iPhone'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-9057601938657504356</id><published>2011-05-04T02:27:00.000-07:00</published><updated>2011-05-04T02:30:14.794-07:00</updated><title type='text'>What’s new in Dreamweaver CS5.5</title><content type='html'>&lt;img src="http://blog.varadesigns.com/wp-content/uploads/2011/05/c250de4c57131.jpg" border="0" &gt;&lt;br /&gt;&lt;br /&gt;Some product releases are revolutionary, and some are evolutionary. It’s a bit more rare that they can be both. Whereas the Dreamweaver CS5.5 release may seem simply evolutionary given the “point-five” version number, the features contained within are highly focused to help you spark your own project-based multiscreen revolution, while only requiring a minor evolutionary shift in the Dreamweaver workflows and your own, finely-honed skills as a web pro. With HTML5 and CSS3 driving a new level of cross-device consistency—as well as adding significant new media and design capabilities independently—Dreamweaver CS 5.5 support for both will help you take your projects to a new level, regardless of whether you’re starting with an existing project that needs to become mobile application aware, or diving in on a mobile-specific site or application from scratch.&lt;br /&gt;&lt;br /&gt;Rendering and preview&lt;br /&gt;&lt;br /&gt;Although it won’t be apparent from reading the back of the box, Dreamweaver CS 5.5 Live View and Design View have both been updated to take advantage of the most current builds of Webkit, the rendering engine powering both the Safari and Chrome desktop browsers, as well as the lion’s share of mobile browsers to boot. This ensures that you get the most representative preview of your projects across desktop and mobile devices—and be able to visually author richer HTML5- and CSS3-based experiences with more confidence than ever before. But enough about the pretty pictures, let’s look at some of the features that will help you exercise Dreamweaver’s visual previews to their fullest extent.&lt;br /&gt;&lt;br /&gt;Read More At : &lt;a href="http://blog.varadesigns.com/?p=174"&gt;http://blog.varadesigns.com/?p=174&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-9057601938657504356?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/9057601938657504356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/9057601938657504356'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2011/05/whats-new-in-dreamweaver-cs55.html' title='What’s new in Dreamweaver CS5.5'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4543508282072186099</id><published>2011-03-07T21:45:00.000-08:00</published><updated>2011-03-07T21:46:48.924-08:00</updated><title type='text'>CSS Standards</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Introduction&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Cascading Style Sheets (CSS) are there to define the look and feel of one or several (x)HTML documents. By using CSS we separate content from presentation. Anything that is visual should be achieved via CSS (granted the targeted browsers permits that).&lt;br /&gt;&lt;br /&gt;CSS should reside in its own document and should only be mixed with HTML when absolutely necessary. Furthermore, CSS should enhance the current markup and not replace it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Applying CSS to documents.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CSS can be applied to one or several documents in different ways:&lt;br /&gt;&lt;br /&gt;1. Linked in the document head via the LINK element&lt;br /&gt;2. Linked in the document head via a STYLE element and the @import directive&lt;br /&gt;3. Added directly to the head via the STYLE element&lt;br /&gt;4. Inline in the HTML element via the STYLE attribute&lt;br /&gt;&lt;br /&gt;More At : &lt;a href="http://blog.varadesigns.com/?p=164"&gt;http://blog.varadesigns.com/?p=164&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4543508282072186099?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4543508282072186099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4543508282072186099'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2011/03/css-standards.html' title='CSS Standards'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-2672676422561580469</id><published>2011-03-04T22:05:00.000-08:00</published><updated>2011-03-04T22:06:35.113-08:00</updated><title type='text'>CSS Menu in 3D Look</title><content type='html'>Try with the below code&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HTML&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div id="navcontainer"&amp;gt;&lt;br /&gt;&amp;lt;ul id="navlist"&amp;gt;&lt;br /&gt;&amp;lt;li id="active"&amp;gt;&amp;lt;a href="#" id="current"&amp;gt;Item one&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;li&amp;gt;&amp;lt;a href="#"&amp;gt;Item two&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;li&amp;gt;&amp;lt;a href="#"&amp;gt;Item three&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;li&amp;gt;&amp;lt;a href="#"&amp;gt;Item four&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;li&amp;gt;&amp;lt;a href="#"&amp;gt;Item five&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;CSS&lt;br /&gt;&lt;br /&gt;More at : &lt;a href="http://blog.varadesigns.com/?p=152"&gt;http://blog.varadesigns.com/?p=152&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-2672676422561580469?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2672676422561580469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2672676422561580469'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2011/03/css-menu-in-3d-look.html' title='CSS Menu in 3D Look'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4003556558233358436</id><published>2011-03-03T07:06:00.000-08:00</published><updated>2011-03-03T07:08:16.546-08:00</updated><title type='text'>Bokeh with CSS3 Gradients</title><content type='html'>Ever since Lea Verou mentioned about the possibilities of CSS3 Gradients, I have been using them in various shapes and sizes as a replacement for background images. I recently worked on a project which uses a bunch of circles as a decorative background. gf3 suggested that the circles would look much better like bokeh. Today, I finally got down to creating them.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;DESIGN OF THE BOKEH&lt;/span&gt;&lt;br /&gt;I referred to some pictures of bokeh, and these were their defining characteristics:&lt;br /&gt;&lt;br /&gt;1. There should be groups of circles with same color (each circle outlined with the more opaque version of the fill). In each group, circles are close to each other.&lt;br /&gt;&lt;br /&gt;2. The color transition from one color group to the other can be accomplished with a very blurry second color group radial gradient overlaid on the first group.&lt;br /&gt;&lt;br /&gt;Read More At : &lt;a href="http://blog.varadesigns.com/?p=143"&gt;http://blog.varadesigns.com/?p=143&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4003556558233358436?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4003556558233358436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4003556558233358436'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2011/03/bokeh-with-css3-gradients.html' title='Bokeh with CSS3 Gradients'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-7814011069665262158</id><published>2011-03-01T22:06:00.000-08:00</published><updated>2011-03-01T22:07:12.442-08:00</updated><title type='text'>Create a Tasty Website Design With Different Flavor of Colors</title><content type='html'>In current trend, online presences become very essential for commercial business, for example online e-commerce product store, online gift store, greeting cards websites, clothing website and lot of other vertical websites. According to individuals and businesses the flavors will be different. While creating a website few things need to be taken care like, Nature of business, Age group who going to visit the website, Product or Service type, Pricing of product or services. No one can succeed in business with common website design on the internet. Before a decade, awareness of website design is very less in a general public, but now a day due to the distance and lake of timing, suddenly use of website increased a lot. While creating a website web design company or designer is very important, first always ask for their work portfolio, so you can get the idea of their work and capability.&lt;br /&gt;&lt;br /&gt;Read More At :&lt;a href="http://blog.varadesigns.com/?p=128"&gt;http://blog.varadesigns.com/?p=128&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-7814011069665262158?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/7814011069665262158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/7814011069665262158'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2011/03/create-tasty-website-design-with.html' title='Create a Tasty Website Design With Different Flavor of Colors'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-2414419432863271378</id><published>2011-02-25T04:39:00.000-08:00</published><updated>2011-02-25T04:41:20.147-08:00</updated><title type='text'>Fade Image Into Another (within a Sprite)</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #006600; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS'"&gt;VaraDesigns is a Website Designing and Development Company in Hyderabad - India, providing services like website designing, website redesigning, web hosting, SEO and more.&lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;span style="font-weight:bold;"&gt;Website Designing Company India&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Creating an image rollover is pretty easy with CSS. Give the element a background-image, then on it's :hover, change the background-image. It's best practice to combine both images into one and shift the background-position rather than use two separate images, that's the idea of CSS sprites. But what if you want to fade one image into another, not just have an abrupt shift?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The solution there is to create an additional element on top of the original with zero opacity and the background-position already shifted into place. Then on the :hover, fade in the opacity. Here are three ways to do that, using a little arrow graphic.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://cdn.css-tricks.com/wp-content/uploads/2011/02/sprites.png" &gt;&lt;br /&gt;&lt;br /&gt;Read More  : &lt;a href="http://css-tricks.com/fade-image-within-sprite/"&gt;http://css-tricks.com/fade-image-within-sprite/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-2414419432863271378?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2414419432863271378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2414419432863271378'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2011/02/fade-image-into-another-within-sprite.html' title='Fade Image Into Another (within a Sprite)'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-2180665580072144147</id><published>2011-02-25T04:28:00.000-08:00</published><updated>2011-02-25T04:34:12.822-08:00</updated><title type='text'>Checkerboard, striped &amp; other background patterns with CSS3 gradients</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #ff9933; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;span style="font-weight:bold;"&gt;Website Designer Hyderabad&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="http://leaverou.me/wp-content/uploads/2010/12/css3-patterns-1024x480.png" border="0" width="500" height="250"&gt;&lt;br /&gt;&lt;br /&gt;You’re probably familiar with CSS3 gradients by now, including the closer to the standard Mozilla syntax and the ugly verbose Webkit one. I assume you know how to add multiple color stops, make your gradients angled or create radial gradients. What you might not be aware of, is that CSS3 gradients can be used to create many kinds of commonly needed patterns, including checkered patterns, stripes and more&lt;br /&gt;&lt;br /&gt;Article Source: &lt;a href="http://leaverou.me/2010/12/checkered-stripes-other-background-patterns-with-css3-gradients/"&gt;http://leaverou.me/2010/12/checkered-stripes-other-background-patterns-with-css3-gradients/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-2180665580072144147?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2180665580072144147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2180665580072144147'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2011/02/checkerboard-striped-other-background.html' title='Checkerboard, striped &amp; other background patterns with CSS3 gradients'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-1755775189398736171</id><published>2011-02-13T22:04:00.000-08:00</published><updated>2011-02-13T22:07:14.912-08:00</updated><title type='text'>The Power of CSS’s Automatic Numbering</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #FF33CC; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;span style="font-weight:bold;"&gt;Best Website Designer India&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;CSS is great for styling your website, but did you know it can do math? Of course it can! When you define an ordered list who do you think keeps track of the numbers? It’s built into CSS!&lt;br /&gt;&lt;br /&gt;&amp;lt;ol&amp;gt;&lt;br /&gt;    &amp;lt;li&amp;gt;Opening Scene&amp;lt;/li&amp;gt;&lt;br /&gt;    &amp;lt;li&amp;gt;Boy Meets Girl&amp;lt;/li&amp;gt;&lt;br /&gt;    &amp;lt;li&amp;gt;Boy Looses Girl&amp;lt;/li&amp;gt;&lt;br /&gt;    &amp;lt;li&amp;gt;Boy Fights Opponents&lt;br /&gt;        &amp;lt;ol&amp;gt;&lt;br /&gt;            &amp;lt;li&amp;gt;The Wrestler&amp;lt;/li&amp;gt;&lt;br /&gt;            &amp;lt;li&amp;gt;The Engineer&amp;lt;/li&amp;gt;&lt;br /&gt;            &amp;lt;li&amp;gt;Captain Doom&amp;lt;/li&amp;gt;&lt;br /&gt;        &amp;lt;/ol&amp;gt;&lt;br /&gt;    &amp;lt;/li&amp;gt;&lt;br /&gt;    &amp;lt;li&amp;gt;Everybody Lives Happily Ever After&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;/ol&lt;br /&gt;&lt;br /&gt;Article Source: &lt;a href="http://kitmacallister.com/2011/02/11/css-automatic-numbering/"&gt;http://kitmacallister.com/2011/02/11/css-automatic-numbering/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-1755775189398736171?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1755775189398736171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1755775189398736171'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2011/02/power-of-csss-automatic-numbering.html' title='The Power of CSS’s Automatic Numbering'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-6973760997281909244</id><published>2011-02-09T21:35:00.000-08:00</published><updated>2011-02-09T21:57:00.715-08:00</updated><title type='text'>The Shapes of CSS</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #ff9933; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;span style="font-weight:bold;"&gt;Website Designer Hyderabad&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;Rendering shapes with CSS&lt;br /&gt;&lt;br /&gt;Try with the below css properties to get the OVEL shape&lt;br /&gt;&lt;br /&gt;CSS Code&lt;br /&gt;&lt;br /&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;&lt;br /&gt;#ovalShape {&lt;br /&gt;width:200px;&lt;br /&gt;height:100px;&lt;br /&gt;background:#0f0;&lt;br /&gt;-moz-border-radius:100px / 50px;&lt;br /&gt;-webkit-border-radious:100xp / 50px;&lt;br /&gt;border-radius:100px / 50px&lt;br /&gt;}&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;HTML Code&lt;br /&gt;&lt;br /&gt;&amp;lt;div id="ovalShape" &amp;gt;&amp;lt;/div&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-6973760997281909244?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6973760997281909244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6973760997281909244'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2011/02/shapes-of-css.html' title='The Shapes of CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-5110297743592198007</id><published>2011-01-24T21:46:00.000-08:00</published><updated>2011-01-30T22:28:34.835-08:00</updated><title type='text'>HTML5 Page Structure</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #ff2000; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS'"&gt;VaraDesigns is a Website Designing and Development Company in Hyderabad - India, providing services like website designing, website redesigning, web hosting, SEO and more.&lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designing Company Hyderabad &lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&amp;lt;!DOCTYPE HTML&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;        &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&amp;gt;&lt;br /&gt;        &amp;lt;title&amp;gt;Website Name&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br /&gt;        &amp;lt;header&amp;gt;&lt;br /&gt;                &amp;lt;nav&amp;gt;&lt;br /&gt;                        &amp;lt;ul&amp;gt;&lt;br /&gt;                                &amp;lt;li&amp;gt;Menu - Main Navigation&amp;lt;/li&amp;gt;&lt;br /&gt;                        &amp;lt;/ul&amp;gt;&lt;br /&gt;                &amp;lt;/nav&amp;gt;&lt;br /&gt;        &amp;lt;/header&amp;gt;&lt;br /&gt;&lt;br /&gt;        &amp;lt;section&amp;gt;&lt;br /&gt;&lt;br /&gt;                &amp;lt;article&amp;gt;&lt;br /&gt;                        &amp;lt;header&amp;gt;&lt;br /&gt;                                &amp;lt;h2&amp;gt;Title&amp;lt;/h2&amp;gt;&lt;br /&gt;                                &amp;lt;p&amp;gt;Posted on &amp;lt;time datetime="2009-09-04T16:31:24+02:00"&amp;gt;January 25th 2011&amp;lt;/time&amp;gt; by &amp;lt;a href="#"&amp;gt;Writer&amp;lt;/a&amp;gt; - &amp;lt;a href="#comments"&amp;gt;6 comments&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;                        &amp;lt;/header&amp;gt;&lt;br /&gt;                        &amp;lt;p&amp;gt;"Ye are the angels, if your feet be firm, your spirits rejoiced, your secret thoughts pure, your eyes consoled, your ears opened, your breasts dilated with joy, and your souls gladdened..."&amp;lt;/p&amp;gt;&lt;br /&gt;                &amp;lt;/article&amp;gt;&lt;br /&gt;&lt;br /&gt;                &amp;lt;article&amp;gt;&lt;br /&gt;                        &amp;lt;header&amp;gt;&lt;br /&gt;                                &amp;lt;h2&amp;gt;Article title&amp;lt;/h2&amp;gt;&lt;br /&gt;                                &amp;lt;p&amp;gt;Posted on &amp;lt;time datetime="2009-09-04T16:31:24+02:00"&amp;gt;September 4th 2009&amp;lt;/time&amp;gt; by &amp;lt;a href="#"&amp;gt;Writer&amp;lt;/a&amp;gt; - &amp;lt;a href="#comments"&amp;gt;6 comments&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;                        &amp;lt;/header&amp;gt;&lt;br /&gt;                        &amp;lt;p&amp;gt;My thinking about angels is something new for me, fresh and pure. By daring to openly acknowledge their existence&amp;lt;/p&amp;gt;&lt;br /&gt;                &amp;lt;/article&amp;gt;&lt;br /&gt;&lt;br /&gt;        &amp;lt;/section&amp;gt;&lt;br /&gt;&lt;br /&gt;        &amp;lt;aside&amp;gt;&lt;br /&gt;                &amp;lt;h2&amp;gt;About section&amp;lt;/h2&amp;gt;&lt;br /&gt;                &amp;lt;p&amp;gt;We all know the word, but how many of us give much credence to the idea, have faith in the existence of angels? And, if we do, would we admit it to ourselves let alone to somebody else. I mean, for me for instance: I am a man, some would say a manly sort of man. I even have a friend who says I'm a pirate, or at least that I laugh like one. &amp;lt;/p&amp;gt;&lt;br /&gt;        &amp;lt;/aside&amp;gt;&lt;br /&gt;&lt;br /&gt;        &amp;lt;footer&amp;gt;&lt;br /&gt;                &amp;lt;p&amp;gt;Copyright 2011 Website name&amp;lt;/p&amp;gt;&lt;br /&gt;        &amp;lt;/footer&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-5110297743592198007?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5110297743592198007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5110297743592198007'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2011/01/html5-page-structure.html' title='HTML5 Page Structure'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-3866593729219292297</id><published>2011-01-23T22:38:00.000-08:00</published><updated>2011-01-30T22:29:45.160-08:00</updated><title type='text'>CSS background image hacks</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #006600; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS'"&gt;VaraDesigns is a Website Designing and Development Company in Hyderabad - India, providing services like website designing, website redesigning, web hosting, SEO and more.&lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;span style="font-weight:bold;"&gt;Website Designing Company India&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;Emulating background image crop, background image opacity, background transforms, and improved background positioning. A few hacks relying on CSS pseudo-elements to emulate features unavailable or not yet widely supported by modern browsers.&lt;br /&gt;&lt;br /&gt;Demos: &lt;a href="http://nicolasgallagher.com/css-background-image-hacks/demo/"&gt;Example CSS background image hacks&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Pseudo-element hacks can fill some gaps in existing browser support for CSS features, without resorting to presentational HTML. In some cases, they even make it possible to emulate things that are not currently part of any W3C working draft, like background transforms and background image opacity.&lt;br /&gt;&lt;br /&gt;Most of the hacks in this article tie in with the pseudo-element hack described in an earlier article – Multiple Backgrounds and Borders with CSS 2.1. That article already describes how to emulate multiple background support and its demo page shows several other uses of the basic principle. This article presents a few of those effects and applications in greater detail.&lt;br /&gt;&lt;br /&gt;Read More : &lt;a href="http://nicolasgallagher.com/"&gt;http://nicolasgallagher.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-3866593729219292297?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3866593729219292297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3866593729219292297'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2011/01/css-background-image-hacks.html' title='CSS background image hacks'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-1468340567890715994</id><published>2010-12-26T21:47:00.000-08:00</published><updated>2011-01-30T22:30:21.403-08:00</updated><title type='text'>How To Change Your Iframe Settings With Css</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #ff9933; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;span style="font-weight:bold;"&gt;Website Designer Hyderabad&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;How to change your &amp;lt;iframe&amp;gt;'s settings.&lt;br /&gt;It's very simple, you just have to put these settings in your css code between the &amp;lt;head&amp;gt;&amp;lt;/head&amp;gt; tags. btw. most of these settings can be used in &amp;lt;div&amp;gt; tags too.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Borders&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;No border at all&lt;/span&gt;&lt;br /&gt;iframe { border:0px; }&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Dashed border&lt;/span&gt;&lt;br /&gt;iframe {    border-style:dashed;&lt;br /&gt;   border-color: #000; /*CHOOSE THE COLOR YOU WANT HERE */&lt;br /&gt;   border-top-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;   border-bottom-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;   border-left-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;   border-right-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Dotted border&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;iframe {&lt;br /&gt;   border-style:dotted;&lt;br /&gt;   border-color: #000; /*CHOOSE THE COLOR YOU WANT HERE */&lt;br /&gt;   border-top-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;   border-bottom-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;   border-left-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;   border-right-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;}&lt;br /&gt;Unfortunately, these 'tricks' described above are supported by opera or mozilla firefox only.&lt;br /&gt;&lt;br /&gt;Appearently the 'microsoft internet people' doesn't care much about css.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Absolute / Relative&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Absolute&lt;br /&gt;&lt;br /&gt;If we use it outside of a &amp;lt;div&amp;gt;, we should set as below.&lt;br /&gt;&lt;br /&gt;iframe {&lt;br /&gt;   position:absolute;&lt;br /&gt;   top: 25px; /* 25 pixels from the top of the web-page. */&lt;br /&gt;   left:350px; /* 350 pixels from the left of the web-page. */&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Relative&lt;br /&gt;&lt;br /&gt;However if we use it inside of a &amp;lt;div&amp;gt;:&lt;br /&gt;iframe {&lt;br /&gt;   position:relative;&lt;br /&gt;   top: 25px; /* 25 pixels from the top of the &amp;lt;div&amp;gt; tag. */&lt;br /&gt;   left:350px; /* 350 pixels from the left of the &amp;lt;div&amp;gt; tag. */&lt;br /&gt;}&lt;br /&gt;Size&lt;br /&gt;&lt;br /&gt;Scrollbars&lt;br /&gt;iframe {&lt;br /&gt;   position:absolute;&lt;br /&gt;   top: 25px; /* 25 pixels from the top of the &amp;lt;div&amp;gt; tag. */&lt;br /&gt;   left:350px; /* 350 pixels from the left of the &amp;lt;div&amp;gt; tag. */&lt;br /&gt;   height: 500px;&lt;br /&gt;   width: 500px;&lt;br /&gt;   overflow: scroll; /* if the content inside of the &amp;lt;iframe&amp;gt; is bigger than its size, scrollbars are added.*/&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Auto-size&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;iframe {&lt;br /&gt;   position:absolute;&lt;br /&gt;   top: 25px; /* 25 pixels from the top of the &amp;lt;div&amp;gt; tag. */&lt;br /&gt;   left:350px; /* 350 pixels from the left of the &amp;lt;div&amp;gt; tag. */&lt;br /&gt;   height: auto; /* in this case, we get rid of the overflow setting, because the height of the iframe is increased by itself.*/&lt;br /&gt;   width: 500px;&lt;br /&gt;}&lt;br /&gt;Note: 'auto' as size, works the same for the WIDTH setting.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Transparent Background&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note: this 'trick' only works on mozilla firefox. But is pretty simple anyway.&lt;br /&gt;iframe { background:transparent; }&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Multi-IFrame&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And last but not least, if you use more than one iframe in your page, you could use different settings for each one. like this:&lt;br /&gt;#one { &lt;br /&gt;   border-style:dashed;&lt;br /&gt;   border-color: #000; /*CHOOSE THE COLOR YOU WANT HERE */&lt;br /&gt;   border-top-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;   border-bottom-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;   border-left-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;   border-right-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#two {&lt;br /&gt;   border-style:dotted;&lt;br /&gt;   border-color: #000; /*CHOOSE THE COLOR YOU WANT HERE */&lt;br /&gt;   border-top-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;   border-bottom-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;   border-left-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;   border-right-width:1px; /*CHOOSE THE SIZE YOU WANT HERE */&lt;br /&gt;}&lt;br /&gt;-------------------------------------------------&lt;br /&gt;&lt;br /&gt;&amp;lt;iframe src="/img_articles/4798/1.htm" id="one"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;br /&gt;&amp;lt;iframe src="/img_articles/4798/2.htm" id="two"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;br /&gt;&lt;br /&gt;Read more: http://www.webdesign.org/html-and-css/tutorials/how-to-change-your-iframe-settings-with-css.4798.html#ixzz19Hwc71fo&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-1468340567890715994?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1468340567890715994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1468340567890715994'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/12/how-to-change-your-iframe-settings-with.html' title='How To Change Your Iframe Settings With Css'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-3551474668891380153</id><published>2010-12-22T02:28:00.000-08:00</published><updated>2011-01-30T22:30:43.512-08:00</updated><title type='text'>SEO Friendly CSS Hiding</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #FF33CC; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;span style="font-weight:bold;"&gt;Best Website Designer India&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#hider {&lt;br /&gt;    position: absolute;&lt;br /&gt;    left: -555px;&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/6765360061367593262-3551474668891380153?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3551474668891380153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3551474668891380153'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/12/accessibilityseo-friendly-css-hiding.html' title='SEO Friendly CSS Hiding'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-2770726531147475921</id><published>2010-12-09T01:01:00.000-08:00</published><updated>2011-01-30T22:23:06.046-08:00</updated><title type='text'>6 KEYS TO UNDERSTANDING MODERN CSS-BASED LAYOUTS</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #0000CC; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;span style="font-weight:bold;"&gt;Website Designer India&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Much of CSS is pretty straightforward and, I suspect, quite easy for most people to grasp. There's font styles, margin, padding, color and what not. But there's a wall that people will run into... that point where a number of key elements need to come together to create a solid CSS-based layout that is consistent cross-browser.&lt;br /&gt;&lt;br /&gt;These are the six things that will help people get over the hump.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Box Model&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;At the very core of it, is an understanding of the box model within CSS. Sure, you may know your margin and padding but what happens when elements start to interact with each other. Suddenly things that look good in one browser go all to hell in the other. Consistently in working with the box model comes from understanding the difference between quirks mode and strict mode. It's also a good idea to know how to hack it up for older browsers.&lt;br /&gt;&lt;br /&gt;W3C CSS2.1 Spec&lt;br /&gt;The Box Model&lt;br /&gt;Tantek's Box model hack&lt;br /&gt;Quirks mode and strict mode&lt;br /&gt;Activating the Right Layout Mode Using the Doctype Declaration&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Floated Columns&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;While absolute positioning was one of the first approaches that people took when attempting to replace table-based layouts, it was floating content that opened the doors of possibility. Along with learning how to float, you must also learn how to clear floats so that content that follows or backgrounds will appear correctly.&lt;br /&gt;&lt;br /&gt;Floatorial&lt;br /&gt;Clearing floats&lt;br /&gt;Faux Columns&lt;br /&gt;Creating Liquid Faux Columns&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Sizing Using Ems&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There are two different issues at play here when it comes to sizing with ems: fonts and layouts.&lt;br /&gt;&lt;br /&gt;With fonts, Internet Explorer 6 and lower don't allow you to resize the text when specified using pixels (px). Those with vision issues may wish to set their font size larger in order to more readily read what you've written. Specifying your font sizes using ems has proven to be the popular approach to this problem. The importance of sizing text using ems is waning as users move on to better browsers.&lt;br /&gt;&lt;br /&gt;Sizing layouts with ems can also offer up a whole other avenue of flexibility. When playing with text size, it can often throw an entire design out of whack. Styling elements using ems allow the containers of content to grow along with the text, maintaining the consistency of the design.&lt;br /&gt;&lt;br /&gt;How to size text using ems&lt;br /&gt;Elastic Design&lt;br /&gt;Fixed or fluid width? Elastic!&lt;br /&gt;&lt;br /&gt;Source : &lt;a href="http://snook.ca/archives/html_and_css/six_keys_to_understanding_css_layouts/"&gt;http://snook.ca/archives/html_and_css/six_keys_to_understanding_css_layouts/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-2770726531147475921?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2770726531147475921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2770726531147475921'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/12/6-keys-to-understanding-modern-css.html' title='6 KEYS TO UNDERSTANDING MODERN CSS-BASED LAYOUTS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-9202387673378998186</id><published>2010-12-04T02:23:00.000-08:00</published><updated>2011-01-30T22:25:32.566-08:00</updated><title type='text'>11 Classic CSS Techniques Made Simple with CSS3</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #FF0099; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designer India&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;We’ve all had to achieve some effect that required an extra handful of divs or PNGs. We shouldn’t be limited to these old techniques when there’s a new age coming. This new age includes the use of CSS3. In today’s tutorial, I’ll show you eleven different time-consuming effects that can be achieved quite easily with CSS3.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;CSS3? What’s that?!&lt;/span&gt;&lt;br /&gt;&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;&lt;br /&gt;Here’s what the official (or at least, what I consider official) website of CSS3, css3.info, has to say about CSS3:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What We’ll Be Covering&lt;/span&gt;&lt;br /&gt;&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;br /&gt;   1. Rounded Corners&lt;br /&gt;   2. Box Shadow&lt;br /&gt;   3. Text Shadow&lt;br /&gt;   4. Fancy Font&lt;br /&gt;   5. Opacity&lt;br /&gt;   6. RGBA&lt;br /&gt;   7. Background Size&lt;br /&gt;   8. Multiple Backgrounds&lt;br /&gt;   9. Columns&lt;br /&gt;  10. Border Image&lt;br /&gt;  11. Animations&lt;br /&gt;&lt;br /&gt;Source : &lt;a href="http://net.tutsplus.com/tutorials/html-css-techniques/11-classic-css-techniques-made-simple-with-css3/"&gt;http://net.tutsplus.com/tutorials/html-css-techniques/11-classic-css-techniques-made-simple-with-css3/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-9202387673378998186?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/9202387673378998186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/9202387673378998186'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/12/11-classic-css-techniques-made-simple.html' title='11 Classic CSS Techniques Made Simple with CSS3'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-2803556815608730604</id><published>2010-12-04T02:17:00.000-08:00</published><updated>2011-01-30T22:24:35.139-08:00</updated><title type='text'>The Difference Between ID and Class</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #FF0099; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;span style="font-weight:bold;"&gt;Best Website Designer India&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;ID's are unique&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    * Each element can have only one ID&lt;br /&gt;    * Each page can have only one element with that ID&lt;br /&gt;&lt;br /&gt;When I was first learning this stuff, I heard over and over that you should only use ID's once, but you can use classes over and over. It basically went in one ear and out the other because it sounded more like a good "rule of thumb" to me rather than something extremely important. If you are purely an HTML/CSS person, this attitude can persist because to you, they really don't seem to do anything different.&lt;br /&gt;&lt;br /&gt;Here is one: your code will not pass validation if you use the same ID on more than one element. Validation should be important to all of us, so that alone is a big one. We'll go over more reasons for uniqueness as we go on.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Classes are NOT unique&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    * You can use the same class on multiple elements.&lt;br /&gt;    * You can use multiple classes on the same element.&lt;br /&gt;&lt;br /&gt;Any styling information that needs to be applied to multiple objects on a page should be done with a class. Take for example a page with multiple "widgets":&lt;br /&gt;&lt;br /&gt;Read more at : &lt;a href="http://css-tricks.com/the-difference-between-id-and-class/"&gt;http://css-tricks.com/the-difference-between-id-and-class/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-2803556815608730604?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2803556815608730604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2803556815608730604'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/12/difference-between-id-and-class.html' title='The Difference Between ID and Class'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-2105615459586711100</id><published>2010-12-02T21:10:00.000-08:00</published><updated>2011-01-30T22:36:28.796-08:00</updated><title type='text'>CSS3 Slideup Boxes</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #993300; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designer Hyderabad&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Follow along as we use a few very simple CSS3 transitions to create a "slideup" box effect. Roll over the box with your mouse, and the title of the box slides out of the way and a more descriptive stylized box of information jockeys its way into place. This is supported in modern version of Gecko, WebKit, and Opera browsers. No Internet Explorer support yet, but no fallback is needed, the link works and the information shows as expected&lt;br /&gt;&lt;br /&gt;&lt;a href="http://css-tricks.com/examples/SlideupBoxes/"&gt;&lt;span style="font-weight:bold;"&gt;VIEW DEMO&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Source : &lt;a href="http://css-tricks.com/video-screencasts/93-css3-slideup-boxes/"&gt;http://css-tricks.com/video-screencasts/93-css3-slideup-boxes/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-2105615459586711100?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2105615459586711100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2105615459586711100'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/12/css3-slideup-boxes.html' title='CSS3 Slideup Boxes'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-1178542411578576626</id><published>2010-11-30T23:13:00.000-08:00</published><updated>2011-01-30T22:32:52.846-08:00</updated><title type='text'>Keep Margins Out of Link Lists</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #FF0099; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designer India&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;When building a menu or other list of links, it’s generally a good practice to use display: block; or display: inline-block; so that you can increase the size of the link target. The simple truth: bigger link targets are easier for people to click and lead to better user experience.&lt;br /&gt;&lt;br /&gt;Let’s look at a simple list of links like this:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://css-tricks.com/keep-margins-out-of-link-lists/"&gt;http://css-tricks.com/keep-margins-out-of-link-lists/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-1178542411578576626?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1178542411578576626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1178542411578576626'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/11/keep-margins-out-of-link-lists.html' title='Keep Margins Out of Link Lists'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-2086423676163363101</id><published>2010-11-24T03:02:00.000-08:00</published><updated>2011-01-30T22:33:16.521-08:00</updated><title type='text'>What is Cross Site Scripting or XSS ?</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #993300; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designer Hyderabad&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;I think the name “cross site” is confusing. It’s easy to hear that and think it involves code on one &lt;a href="http://www.varadesigns.com" alt="Small Business Web Site Development"&gt;website&lt;/a&gt; attacking code on another &lt;a href="http://www.varadesigns.com" alt="Small Business Web Site Development"&gt;website&lt;/a&gt;. That’s not what it is. Not to mention its unfortunate “true” acronym.&lt;br /&gt;&lt;br /&gt;It simply means: executing abritrary JavaScript code on the page.&lt;br /&gt;&lt;br /&gt;This could be JavaScript that is inserted into the URL or through form submissions. If either of those ways of accepting information doesn’t “clean” the information it is getting before outputting it again on the page, then arbitrary JavaScript can run on that page and that’s an XSS vulnerability.&lt;br /&gt;&lt;br /&gt;If JavaScript can run on the page, then it can access cookies.&lt;br /&gt;&lt;br /&gt;If it can access cookies, then it can access active sessions.&lt;br /&gt;&lt;br /&gt;If it can access active sessions, it can log in as you to &lt;a href="http://www.varadesigns.com" alt="Website Designing Services"&gt;websites &lt;/a&gt;you are logged in to, at least long enough to change passwords or other havoc.&lt;br /&gt;&lt;br /&gt;Symantec has said that 80% of internet vulnerabilities are due to XSS.&lt;br /&gt;&lt;br /&gt;Read More at : &lt;a href="http://css-tricks.com/what-is-xss/"&gt;http://css-tricks.com/what-is-xss/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-2086423676163363101?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2086423676163363101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2086423676163363101'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/11/what-is-cross-site-scripting-or-xss.html' title='What is Cross Site Scripting or XSS ?'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-8292806643462140444</id><published>2010-11-21T21:25:00.000-08:00</published><updated>2011-01-30T22:33:43.341-08:00</updated><title type='text'>The CSS Box Model</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #FF6600; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;VaraDesigns is a Website Designing and Development Company in Hyderabad - India, providing services like website designing, website redesigning, web hosting, SEO and more. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designing Company India&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;All HTML elements can be considered as boxes. In CSS, the term "box model" is used when talking about &lt;a href="http://www.varadesigns.com" alt="Small Business Web Site Development"&gt;design and layout.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The CSS box model is essentially a box that wraps around HTML elements, and it consists of: margins, borders, padding, and the actual content.&lt;br /&gt;&lt;br /&gt;The box model allows us to place a border around elements and space elements in relation to other elements.&lt;br /&gt;&lt;br /&gt;The image below illustrates the box model:&lt;br /&gt;&lt;img src="http://w3schools.com/css/box-model.gif" border="0" alt=""&gt;&lt;br /&gt;&lt;br /&gt;Explanation of the different parts:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Margin&lt;/span&gt; - Clears an area around the border. The margin does not have a background color, it is completely transparent.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Border&lt;/span&gt; - A border that goes around the padding and content. The border is affected by the background color of the box&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Padding&lt;/span&gt; - Clears an area around the content. The padding is affected by the background color of the box&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Conten&lt;/span&gt;t - The content of the box, where text and images appear&lt;br /&gt;&lt;br /&gt;In order to set the width and height of an element correctly in all browsers, you need to know how the box model works.&lt;br /&gt;&lt;br /&gt;Read More at : &lt;a href="http://w3schools.com/css/css_boxmodel.asp"&gt;http://w3schools.com/css/css_boxmodel.asp&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-8292806643462140444?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8292806643462140444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8292806643462140444'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/11/css-box-model.html' title='The CSS Box Model'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-6081786152426333170</id><published>2010-11-19T03:55:00.000-08:00</published><updated>2011-01-30T22:34:05.732-08:00</updated><title type='text'>50 Useful Coding Techniques (CSS Layouts, Visual Effects and Forms)</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #009900; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;VaraDesigns is a Website Designing and Development Company in Hyderabad - India, providing services like website designing, website redesigning, web hosting, SEO and more.&lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designing Company Hyderabad&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Although CSS is generally considered a simple and straightforward language, sometimes it requires creativity, skill and a bit of experimentation. The good news is that designers and developers worldwide often face similar problems and choose to share their insights and workarounds with the wider community.&lt;br /&gt;&lt;br /&gt;This is where we come in. We are always looking to collect such articles for our posts so that we can deliver the most useful and relevant content to our readers. In this post, we present an overview of useful CSS/jQuery coding tips, tricks and techniques for visual effects, layouts and web form design to help you find solutions to the problems you are dealing with or will have to deal with in future.&lt;br /&gt;&lt;br /&gt;You may want to look at similar CSS-related posts that we published last months:&lt;br /&gt;&lt;br /&gt;Read More at : &lt;a href="http://www.smashingmagazine.com/2010/02/18/50-css-and-javascript-techniques-for-layouts-forms-and-visual-effects/"&gt;http://www.smashingmagazine.com/2010/02/18/50-css-and-javascript-techniques-for-layouts-forms-and-visual-effects/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-6081786152426333170?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6081786152426333170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6081786152426333170'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/11/50-useful-coding-techniques-css-layouts.html' title='50 Useful Coding Techniques (CSS Layouts, Visual Effects and Forms)'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-3947370131570234854</id><published>2010-11-17T22:31:00.000-08:00</published><updated>2011-01-30T22:35:32.806-08:00</updated><title type='text'>Quick CSS Trick: Using Span to Break Up Words in URLS</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #FF6600; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;VaraDesigns is a Website Designing and Development Company in Hyderabad - India, providing services like website designing, website redesigning, web hosting, SEO and more. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designing Company India&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;How about breaking up the words in the URL with color? Check it out:&lt;br /&gt;www.badgerfootballforums.com&lt;br /&gt;&lt;br /&gt;I think that works pretty well, and it is something that can be achieved very easily with a little CSS:&lt;br /&gt;&lt;br /&gt;a span { color: #971212; }&lt;br /&gt;&lt;br /&gt;Then in your anchor link in your HTML just wrap the word you want colored in a span like so:&lt;br /&gt;&lt;br /&gt;&lt;a href="#"&gt;www.badger&lt;span&gt;football&lt;/span&gt;forums.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To extend this concept a bit, how about the colors reverse themselves upon rollover? Like so:&lt;br /&gt;&lt;br /&gt;Just do this in your CSS:&lt;br /&gt;&lt;br /&gt;a { color: black;}&lt;br /&gt;a span { color: #971212; }&lt;br /&gt;a:hover { color: #971212; }&lt;br /&gt;a:hover span { color: black; }&lt;br /&gt;&lt;a href="http://www.varadesigns.com" target="_blank" alt="Web designing in US"&gt;WEBSITE DESIGNING AND DEVELOPMENT SERVICES&lt;/A&gt;&lt;br /&gt;&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner2.jpg" alt="website designer india" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Source at : &lt;a href="http://css-tricks.com/quick-css-trick-using-span-to-break-up-words-in-urls/"&gt;http://css-tricks.com/quick-css-trick-using-span-to-break-up-words-in-urls/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-3947370131570234854?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3947370131570234854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3947370131570234854'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/11/quick-css-trick-using-span-to-break-up.html' title='Quick CSS Trick: Using Span to Break Up Words in URLS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-3487913735008404935</id><published>2010-11-16T04:14:00.000-08:00</published><updated>2011-01-30T22:38:58.921-08:00</updated><title type='text'>15 CSS Tricks Must be learned</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #FF0099; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designer India&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;As web designers and developers, we have all come to learn many css tricks and techniques that help us achieve our layout goals. The list of these techniques is an ever expanding one, however, there are certain tricks that are essential to achieve your goal. Today, we will review 20 excellent css techniques to keep in mind when developing your theme.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. ABSOLUTE POSITIONING INSIDE A RELATIVE POSITIONED ELEMENT.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Putting an absolutely positioned element inside a relatively positioned element will result in the position being calculated on its nearest positioned ancestor. This is an excellent technique for getting an element to “stick” in a certain spot where you need it, for instance, a header badge.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. Z-INDEX AND POSITIONING.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;z-index can be somewhat of a mystery to developers. Often, you will find designers putting a very large z-index value on a div or element in order to try and get it to overlap another element. What we need to keep in mind, is that z-index only applies to elements that are given a “position” value. If you find an element will not adhere to a z-index rule you’ve applied, add “position:relative” or “position:absolute” to the troublesome div.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. MARGIN AUTO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Using margin auto in a theme is a fantastic way to get an element centered on the screen without worrying about the users screen size. However, “margin: auto” will only work when a width is declared for the element. This also means to apply margin: auto to inline elements, the display first must be changed to block.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. USE PADDING CAREFULLY AND APPROPRIATELY&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One mistake I often made when starting off with css was using padding without knowing all the effects and the CSS Box Model. Keep in mind that according to the box model, padding adds to the overall width of the element. This can cause a lot of frustration with elements shifting out of place. For example:&lt;br /&gt;#div { width:200px; padding: 30px; border:2px solid #000; }&lt;br /&gt;Equals a total width of 264px (200 + 30 + 30 + 2 + 2). In addition, remember that padding, unlike margins, cannot contain negative values.&lt;br /&gt;&lt;span style="display:block; padding:8px; border:2px dashed #CC0000; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Best Website Designer India&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. HIDING TEXT USING TEXT-INDENT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Lets say you have an image you are using for your websites logo. This image will be inside an h1 tag, which is good for SEO, however, we also want to have our text title written in the h1 tags so the search engines can read it easily. Some may be tempted to use “display:none” on an element. Unfortunately, we would have to separate the image logo from the h1 tag if we used this technique. Using text-indent and negative values, we can get passed this like so.&lt;br /&gt;&lt;br /&gt;h1 { text-indent:-9999px;/*Hide Text, keep for SEO*/ margin:0 auto; width:948px; background:transparent url("images/header.jpg") no-repeat scroll; }&lt;br /&gt;This will ensure that all text is not visible on any resolution while allowing it stay inside the h1 element containing the logo. This also will not hide the text from screen readers as display none will.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6. IE DOUBLE FLOAT MARGIN BUGS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I’m sure we have all dealt with this one, as this is one of the most common css “hacks” we need to use. If you haven’t seen this bug before, basically, a floated element with a given margin suddenly has doubled the margin in IE 6 and has dropped out of position! Luckily, the fix is super simple. We just change the display of the floated element to “inline” as seen below.&lt;br /&gt;&lt;br /&gt;.yourClass { float: left; width: 350px; margin: 20px 0 15px 100px; display: inline; }&lt;br /&gt;&lt;br /&gt;This change will have no effect on any browsers since it is a float element, but for some reason in IE it fixes the double margin issue.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7. USING CSS TO FIGHT SPAM&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This would be something you could include to really spice up your theme description. Alen Grakalic of CSS-Globe.com wrote a fantastic post on how to use css as a kind of CAPTCHA technique. A form is declared like so:&lt;br /&gt;&lt;br /&gt;&amp;lt;label for="Name"&amp;gt;Name:&amp;lt;/label&amp;gt; &amp;lt;input type="text" name="name" /&amp;gt; &amp;lt;label class="captcha" for="captcha"&amp;gt;Answer?&amp;lt;/label&amp;gt; &amp;lt;input type="text" name="captcha" id="captcha" /&amp;gt;&lt;br /&gt;&lt;br /&gt;For the id “captcha”, we use a background image via css. This would require the spam scripts to find your html element, scan your css, compare selectors, find the certain selector and background image, and then read that background image. Its pretty safe to say most wont be able to do this. The downside is if someone is not surfing with css enabled, they wont know what to do.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8. PNG IN IE 6 FIXES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I’m sure we could all agree dealing with transparent png’s in IE 6 is a real headache. The fixes range from complex Javascript techniques to just using a Microsoft proprietary filter, to using conditional comments to swap them out for a .jpg. Keep in mind, all of these but the conditional comments rely on the Microsoft AlphaImageLoader.&lt;br /&gt;filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(...);&lt;br /&gt;Read more on how to fix IE 6 PNG transparency:&lt;br /&gt;SuperSleight Fix&lt;br /&gt;Twin Helix Fix&lt;br /&gt;Google’s IE 7.js&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9. CSS CROSS BROWSER TRANSPARENCY&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Believe it or not, it is pretty simple to get decent cross browser transparency using css. We can cover, IE, Firefox, Safari, Opera, and old browsers like Netscape Navigator. Chris Coyier recently came to our rescue again demonstrating these techniques.&lt;br /&gt;&lt;br /&gt;.yourClass { filter:alpha(opacity=50);/*Needed for IE*/ -moz-opacity:0.5;/*Older mozilla broswers like NN*/ -khtml-opacity: 0.5;/*Old versions of Safari and "KHTML" browser engines*/ opacity: 0.5;/*FF, Safari, and Opera*/ }&lt;br /&gt;&lt;br /&gt;This wont validate, but its not really an issue and the ThemeForest staff is pretty understanding when it comes to techniques like this.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10. USE CSS IMAGE SPRITES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CSS Image sprites are a fantastic way to load many of your css images at one time, in addition to reducing http requests and the file size of your theme. In addition, you wont have to deal with any images “flickering” on hover. CSS Image sprites are achieved by putting many of your image elements all into one image. We then use css to adjust the background position, width, and height to get the image where we want it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11. USE CONDITIONAL COMMENTS TO SUPPORT IE 6&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Far too often, web developers are forced to introduce new css rules and declarations that only apply to certain versions of IE. If your not familiar with a conditional comment, the code below would only link to a style sheet if the users browser is less than or equal to IE 7:&lt;br /&gt;&lt;br /&gt;This code would go in the head section of your html file. If the css does not seem to be taking place in IE after you have linked to your specific style sheet, try getting more specific with your css selections to override default styles.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12. CSS SPECIFICITY&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As mentioned above, CSS styles follow an order of specificity and point values to determine when styles override one another or take precedence. Nettuts recently had a nice article in which the point values for css were explained. They are like so:&lt;br /&gt;&lt;br /&gt;Elements – 1 points&lt;br /&gt;Classes – 10 points&lt;br /&gt;Identifiers – 100 points&lt;br /&gt;Inline Styling – 1000 points&lt;br /&gt;&lt;br /&gt;When in doubt, get more specific with your style declarations. You can also use the !important declaration for debugging purposes if needed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13.ACHIEVING A MINIMUM HEIGHT IN ALL BROWSERS.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When developing, we often realize we need an element to have at least a certain height, and then stretch to accommodate more content if needed. Unfortunately, IE doest recognize the min-height property correctly. Fortunately, we have what is known as the min-height fast hack, that goes like so:&lt;br /&gt;#yourId { min-height:300px; height:auto !important; height:300px;/*Needs to match the min height pixels above*/ }&lt;br /&gt;&lt;br /&gt;Simple, effective, and it validates just fine. This is also one of the few cases when the !important feature comes in great handy.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;14. THE * HTML HACK&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you need or wish to avoid linking to IE specific style sheets, one can use the * html hack. In a perfect world, the HTML element will always be the root element, so any * before html would not apply. Nevertheless, IE treats this as a perfectly legitimate declaration. So if we needed to target a certain element in IE, we could do this:&lt;br /&gt;* html body div#sideBar { display:inline; }&lt;br /&gt;&lt;span style="display:block; padding:8px; border:2px dashed #009900; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;VaraDesigns is a Website Designing and Development Company in Hyderabad - India, providing services like website designing, website redesigning, web hosting, SEO and more.&lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designing Company Hyderabad&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15. SLIDING DOORS TECHNIQUE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One major problem with using images for navigation buttons, is that you run the risk of the clients text being too long and extending past the button, or being cut off. Using two images and the css sliding doors technique, we can create buttons that will expand to fit the text inside. The idea behind this technique, is using two images for each button, and applying the images via a background declaration in CSS. For example:&lt;br /&gt;HTML Markup: Your Title CSS: a.myButton { background: transparent url('right.png') no-repeat scroll top right; display: block; float: left; height: 32px; /* Image height */ margin-right: 6px; padding-right: 20px;/*Image Width*/ /*Other Styles*/ } a.myButton span { background: transparent url('button_left.png') no-repeat; display: block; line-height: 22px; /* Image Height */ padding: /*Change to how you see fit*/ }&lt;br /&gt;&lt;br /&gt;Read More At : &lt;a href="http://blog.themeforest.net/general/15-css-tricks-that-must-be-learned/"&gt;http://blog.themeforest.net/general/15-css-tricks-that-must-be-learned/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-3487913735008404935?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3487913735008404935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3487913735008404935'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/11/15-css-tricks-must-be-learned.html' title='15 CSS Tricks Must be learned'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4755876234887291707</id><published>2010-11-12T22:53:00.000-08:00</published><updated>2011-01-30T22:39:32.219-08:00</updated><title type='text'>Masing effect with CSS</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #FF6600; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;VaraDesigns is a Website Designing and Development Company in Hyderabad - India, providing services like website designing, website redesigning, web hosting, SEO and more. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designing Company India&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Show Image Under Text (with Acceptable Fallback)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;SEE THE MASKING EFFECT WITH CSS, WITH OUT USING THE PHOTOSHOP &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;IT'S AWESOME !&lt;br /&gt;Read More at : &lt;a href="http://css-tricks.com/image-under-text/#comment-85296"&gt;http://css-tricks.com/image-under-text/#comment-85296&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4755876234887291707?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4755876234887291707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4755876234887291707'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/11/masing-effect-with-css.html' title='Masing effect with CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-5192202377845359870</id><published>2010-11-11T23:37:00.000-08:00</published><updated>2011-01-30T22:40:11.602-08:00</updated><title type='text'>CSS Block Elements</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #993300; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designer Hyderabad&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;HTML elements can be displayed either in block or inline style.&lt;br /&gt;&lt;br /&gt;The difference between these is one of the most basic things you need to know in order to use CSS effectively.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The 3 ways that HTML elements can be displayed&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;All HTML elements are naturally displayed in one of the following ways:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Block&lt;/span&gt;&lt;br /&gt;Takes up the full width available, with a new line before and after (display:block;)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Inline&lt;/span&gt;&lt;br /&gt;Takes up only as much width as it needs, and does not force new lines (display:inline;)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Not displayed&lt;/span&gt;&lt;br /&gt;Some tags, like &amp;lt;meta /&amp;gt; and &amp;lt;style&amp;gt; are not visible (display:none;)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Block example&lt;/span&gt;&lt;br /&gt;&amp;lt;p&amp;gt; tags and &amp;lt;div&amp;gt; tags are naturally displayed block-style.&lt;br /&gt;&lt;br /&gt;(I say "naturally" because you can override the display style by setting the CSS display property e.g. display:inline;.)&lt;br /&gt;&lt;br /&gt;A block-display element will span the full width of the space available to it, and so will start on a new line in the flow of HTML. The flow will continue on a new line after the block-display element.&lt;br /&gt;&lt;br /&gt;Here I’ve started a paragraph and now I’m going to insert a &amp;lt;div&amp;gt;&lt;br /&gt;&lt;br /&gt;Read More at : http://www.webdesignfromscratch.com/html-css/css-block-and-inline/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-5192202377845359870?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5192202377845359870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5192202377845359870'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/11/css-block-elements.html' title='CSS Block Elements'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-5050679373821186055</id><published>2010-11-10T01:28:00.000-08:00</published><updated>2011-01-30T22:40:38.117-08:00</updated><title type='text'>CSS Breadcrumbs</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #FF0099; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designer India&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Breadcrumbs is a term used to describe hierarchical links that tell the visitor where he/she currently is on your site. Visually breadcrumbs are just links with some sort of separator between them, such as a bullet image. This CSS code transforms ordinary looking links into a breadcrumb by giving each link a background image.&lt;br /&gt;&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner2.jpg" alt="website designing USA" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;There are many different ways to implement breadcrumbs in CSS. Ideally the separator image should not even be part of the link, but dynamically inserted using CSS Generated content. However, since IE6 does not support generated content, that's not feasible at the moment. Then there's the debate over whether breadcrumbs should be implemented as a list, which I personally think is no more appropriate than just using regular &amp;lt;a&amp;gt; elements. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;CSS Code :&lt;/span&gt;&lt;br /&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;.breadcrumb{&lt;br /&gt;font: bold 14px "Lucida Grande", "Trebuchet MS", Verdana, Helvetica, sans-serif;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.breadcrumb a{&lt;br /&gt;background: transparent url(media/breadcrumb.gif) no-repeat center right;&lt;br /&gt;text-decoration: none;&lt;br /&gt;padding-right: 18px; /*adjust bullet image padding*/&lt;br /&gt;color: navy;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.breadcrumb a:visited, .breadcrumb a:active{&lt;br /&gt;color: navy;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.breadcrumb a:hover{&lt;br /&gt;text-decoration: underline;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HTML Code:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;p class="breadcrumb"&amp;gt;&amp;lt;a href="http://www.dynamicdrive.com/"&amp;gt;Dynamic Drive&amp;lt;/a&amp;gt; &amp;lt;a href="http://www.dynamicdrive.com/style/"&amp;gt;CSS&amp;lt;/a&amp;gt; here&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;p class="breadcrumb"&amp;gt;&amp;lt;a href="http://www.dynamicdrive.com/"&amp;gt;Dynamic Drive&amp;lt;/a&amp;gt; &amp;lt;a href="http://www.dynamicdrive.com/style/"&amp;gt;CSS&amp;lt;/a&amp;gt; &amp;lt;a href="http://www.dynamicdrive.com/style/csslibrary/category/C1/"&amp;gt;Horizontal Menus&amp;lt;/a&amp;gt; Here&amp;lt;/p&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-5050679373821186055?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5050679373821186055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5050679373821186055'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/11/css-breadcrumbs.html' title='CSS Breadcrumbs'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-5107385550305501307</id><published>2010-11-10T01:26:00.000-08:00</published><updated>2010-11-10T01:31:55.349-08:00</updated><title type='text'>Exploring Markup for Breadcrumbs</title><content type='html'>What is the most appropriate possible markup for breadcrumbs? We’ll take a look at a bunch of different possibilities of various complexities and semantic success. Then also see what Google has to recommend as well as what HTML5 has in store for them.&lt;br /&gt;&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner2.jpg" alt="website designing USA" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Read more At : http://css-tricks.com/markup-for-breadcrumbs/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-5107385550305501307?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5107385550305501307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5107385550305501307'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/11/exploring-markup-for-breadcrumbs.html' title='Exploring Markup for Breadcrumbs'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-7931718283992246512</id><published>2010-11-04T00:38:00.001-07:00</published><updated>2011-01-30T22:41:18.506-08:00</updated><title type='text'>Styling code blocks</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #CC0000; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Best Website Designer India&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;In this article I'll explain how to use CSS for styling code blocks. Code blocks are generally formatted by using the pre element. Roger Johansson has proposed another way to accomplish this task and I'll follow his example with further improvements.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Table of contents&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The markup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The proposed markup for code blocks is the following:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Listing 1. Proposed markup for code blocks&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;ol class="code"&amp;gt;&lt;br /&gt;&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;/* static */&amp;lt;/code&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;...omission...&lt;br /&gt;&amp;lt;li class="indent1"&amp;gt;&amp;lt;code&amp;gt;gLexTableSetup = PR_TRUE;&amp;lt;/code&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;...omission...&lt;br /&gt;&amp;lt;li class="indent2"&amp;gt;&amp;lt;code&amp;gt;lt[i] |= IS_IDENT | START_IDENT;&amp;lt;/code&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;...omission...&lt;br /&gt;&amp;lt;li class="indent3"&amp;gt;&amp;lt;code&amp;gt;lt[i] |= IS_HEX_DIGIT;&amp;lt;/code&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;...omission...&lt;br /&gt;&amp;lt;li id="last"&amp;gt;...&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Read More At : &lt;a href="http://www.css-zibaldone.com/articles/code-blocks/styling.html"&gt;http://www.css-zibaldone.com/articles/code-blocks/styling.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-7931718283992246512?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/7931718283992246512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/7931718283992246512'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/11/styling-code-blocks.html' title='Styling code blocks'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-3429063498024713618</id><published>2010-11-02T23:26:00.000-07:00</published><updated>2011-01-30T22:41:45.157-08:00</updated><title type='text'>Replace An Image In The Header Text</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #993300; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designer Hyderabad&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;As we know the Search engines like Google, Yahoo, MSN and Bing are looking for the text of the pages primarily to index them. We know that how to use the header tags &amp;lt;h1&amp;gt;. The &amp;lt;h1&amp;gt; header tags are important because search engines value organized sectioned content.&lt;br /&gt;&lt;br /&gt;As the header &amp;lt;h1&amp;gt; is having default properties. But you dont want the big text for your headers on your site. So why dont you use your custom graphics. &amp;lt;h1&amp;gt; are very friendly to search engines, and you dont want to skip your &amp;lt;h1&amp;gt; for &amp;lt;img&amp;gt; tag, It will be loss of search engine friendlyness. so dont do it.&lt;br /&gt;&lt;br /&gt;Read More at : &lt;a href="http://varadesigns.com/webdesigning-tips/replace-Image-with-header-text.html"&gt;http://varadesigns.com/webdesigning-tips/replace-Image-with-header-text.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-3429063498024713618?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3429063498024713618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3429063498024713618'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/11/replace-image-in-header-text.html' title='Replace An Image In The Header Text'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-415204712188296516</id><published>2010-11-01T23:46:00.000-07:00</published><updated>2011-01-30T22:42:16.205-08:00</updated><title type='text'>Block and Inline Level Elements</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #FF6600; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;VaraDesigns is a Website Designing and Development Company in Hyderabad - India, providing services like website designing, website redesigning, web hosting, SEO and more. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Website Designing Company India&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Nearly all HTML elements are either block or inline elements. The characteristics of block elements include:&lt;br /&gt;&lt;br /&gt;1. Always begin on a new line&lt;br /&gt;2. Height, line-height and top and bottom margins can be manipulated&lt;br /&gt;3. Width defaults to 100% of their containing element, unless a width is specified&lt;br /&gt;&lt;br /&gt;Examples of block elements include &amp;lt;div&amp;gt;, &amp;lt;p&amp;gt;, &amp;lt;h1&amp;gt;, &amp;lt;form&amp;gt;, &amp;lt;ul&amp;gt; and &amp;lt;li&amp;gt;. The characteristics of inline elements, on the other hand, are the opposite of block elements:&lt;br /&gt;&lt;br /&gt;1. Begin on the same line&lt;br /&gt;2. Height, line-height and top and bottom margins can't be changed&lt;br /&gt;3. Width is as long as the text/image and can't be manipulated&lt;br /&gt;&lt;br /&gt;Examples of inline elements include &amp;lt;span&amp;gt;, &amp;lt;a&amp;gt;, &amp;lt;label&amp;gt;, &amp;lt;input&amp;gt;, &amp;lt;img&amp;gt;, &amp;lt;strong&amp;gt; and &amp;lt;em&amp;gt;.&lt;br /&gt;&lt;br /&gt;To change an element's status, you can use display: inline or display: block. But what's the point of changing an element from being block to inline, or vice-versa? Well, at first it may seem like you might hardly ever use this trick, but in actual fact, this is a very powerful technique, which you can use whenever you want to:&lt;br /&gt;&lt;br /&gt;1. Have an inline element start on a new line&lt;br /&gt;2. Have a block element start on the same line&lt;br /&gt;3. Control the width of an inline element (particularly useful for navigation links)&lt;br /&gt;4. Manipulate the height of an inline element&lt;br /&gt;5. Set a background colour as wide as the text for block elements, without having to specify a width&lt;br /&gt;&lt;br /&gt;Read More at : http://articles.sitepoint.com/article/top-ten-css-tricks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-415204712188296516?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/415204712188296516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/415204712188296516'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/11/block-and-inline-level-elements.html' title='Block and Inline Level Elements'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-8357603689242043610</id><published>2010-10-31T23:07:00.000-07:00</published><updated>2010-10-31T23:16:45.258-07:00</updated><title type='text'>5 Advanced CSS Pseudo Classes that will Save your Day</title><content type='html'>CSS3 provides powerful pseudo-classes that allow the &lt;a href="http://www.varadesigns.com"&gt;designer&lt;/a&gt; to select multiple elements according to their positions in a document tree. Using these pseudo-classes can be a little confusing at first, but it becomes a lot easier over time to set up your layout.&lt;br /&gt;&lt;br /&gt;In today’s article I’m going to take a look at 5 pseudo-classes that will simplify our design process and reduces a lot of time to create a certain visual effects. You will also find demonstration below each point to demonstrate how we can use these selectors in &lt;a href="http://www.varadesigns.com"&gt;different design scenario&lt;/a&gt; you face everyday in your designing process.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. The ‘nth-child’ Pseudo-selector&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One of my favorite pseudo-selectors is the nth-child. This can be very useful if you are dealing with a Content Management System where you have no ability to change the server-side code to add classes into the markup.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How to use the nth-child&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you put simply a number in the parentheses, it will only affect the element associated with that number. For example, here is how to select only the 3rd element:&lt;br /&gt;view plaincopy to clipboardprint?&lt;br /&gt;&lt;br /&gt;   &lt;span style="font-weight:bold;"&gt;1. ul li:nth-child(3) {  &lt;br /&gt;   2.   background-color: #333;  &lt;br /&gt;   3. }  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;ul li:nth-child(3) {&lt;br /&gt;  background-color: #333;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now let’s look at the table below for Pseudo-class Expressions, the first column of the table represents values for n, and the other columns display the results (for N) of various example expressions.&lt;br /&gt;This pseudo-class matches elements on the basis of their positions within a parent element’s list of child elements. The pseudo-class accepts an argument, N, which can be a keyword or a number. The argument N can also be given as an+b, where a and b are integers (for example, 3n+1). For example, if the argument is 3, the third element will be selected.&lt;br /&gt;&lt;br /&gt;Thus the expression 2n+1 will match the first, third, fifth, seventh, ninth, and so on, elements if they exist. This can be used to create alternated &lt;li&gt; background color.&lt;br /&gt;view plaincopy to clipboardprint?&lt;br /&gt;&lt;br /&gt;   &lt;span style="font-weight:bold;"&gt;1. ul li:nth-child(2n+1) {  &lt;br /&gt;   2.   background:#dfe6ec;  &lt;br /&gt;   3.   color: #333;  &lt;br /&gt;   4. }  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Read More at : http://devsnippets.com/article/5-advanced-css-pseudo-class.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-8357603689242043610?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8357603689242043610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8357603689242043610'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/10/5-advanced-css-pseudo-classes-that-will.html' title='5 Advanced CSS Pseudo Classes that will Save your Day'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-8764688560071804091</id><published>2010-10-30T21:09:00.000-07:00</published><updated>2010-10-30T21:15:44.900-07:00</updated><title type='text'>CSS Specificity And Inheritance</title><content type='html'>CSS’ barrier to entry is extremely low, mainly due to the nature of its syntax. Being clear and easy to understand, the syntax makes sense even to the inexperienced Web designer. It’s so simple, in fact, that you could style a simple CSS-based website within a few hours of learning it.&lt;br /&gt;&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner2.jpg" alt="website designing USA" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;But this apparent simplicity is deceitful. If after a few hours of work, your perfectly crafted website looks great in Safari, all hell might break loose if you haven’t taken the necessary measures to make it work in Internet Explorer. In a panic, you add hacks and filters where only a few tweaks or a different approach might do. Knowing how to deal with these issues comes with experience, with trial and error and with failing massively and then learning the correct way.&lt;br /&gt;&lt;br /&gt;Understanding a few often overlooked concepts is also important. The concepts may be hard to grasp and look boring at first, but understanding them and knowing how to take advantage of them is important.&lt;br /&gt;&lt;br /&gt;Two of these concepts are specificity and inheritance. Not very common words among Web designers, are they? Talking about border-radius and text-shadow is a lot more fun; but specificity and inheritance are fundamental concepts that any person who wants to be good at CSS should understand. They will help you create clean, maintainable and flexible style sheets. Let’s look at what they mean and how they work.&lt;br /&gt;&lt;br /&gt;The notion of a “cascade” is at the heart of CSS (just look at its name). It ultimately determines which properties will modify a given element. The cascade is tied to three main concepts: importance, specificity and source order. The cascade follows these three steps to determine which properties to assign to an element. By the end of this process, the cascade has assigned a weight to each rule, and this weight determines which rule takes precedence, when more than one applies.&lt;br /&gt;&lt;br /&gt;Please consider reading our previous related article:&lt;br /&gt;&lt;br /&gt;Read more at : &lt;a href="http://www.smashingmagazine.com/2010/04/07/css-specificity-and-inheritance/"&gt;http://www.smashingmagazine.com/2010/04/07/css-specificity-and-inheritance/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-8764688560071804091?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8764688560071804091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8764688560071804091'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/10/css-specificity-and-inheritance.html' title='CSS Specificity And Inheritance'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-8880265923205951998</id><published>2010-10-28T05:25:00.000-07:00</published><updated>2010-10-28T05:30:18.965-07:00</updated><title type='text'>CSS Parent Selectors</title><content type='html'>&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner2.jpg" alt="website designing India" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Let’s be clear here, just in case someone is finding this from a search engine: there are no parent selectors in CSS, not even in CSS3. It is an interesting topic to talk about though, and some fresh talk has surfaced. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;a &lt; img { border: none; }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In this example, it would select a tags but only if they contained an img tag. (Aside: this would be a weird departure from the typical syntax where the actual elements being selected are on the right, this would be on the left).&lt;br /&gt;&lt;br /&gt;Read More At : http://css-tricks.com/parent-selectors-in-css/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-8880265923205951998?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8880265923205951998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8880265923205951998'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/10/css-parent-selectors.html' title='CSS Parent Selectors'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-7385154481166237968</id><published>2010-10-28T05:19:00.000-07:00</published><updated>2010-10-28T05:24:36.559-07:00</updated><title type='text'>line break? break long links word-wrap ? It's possible!</title><content type='html'>How to auto brake long links.&lt;br /&gt;I tried it today is very common using tinyurl etc.&lt;br /&gt;&lt;br /&gt;I really like the post. I tested below one works fine.&lt;br /&gt;&lt;br /&gt;* { word-wrap: break-word; }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-7385154481166237968?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/7385154481166237968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/7385154481166237968'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/10/line-break-break-long-links-word-wrap.html' title='line break? break long links word-wrap ? It&apos;s possible!'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-3507885864027577971</id><published>2010-10-05T09:28:00.000-07:00</published><updated>2010-10-05T09:29:49.489-07:00</updated><title type='text'>Website Design - Using CSS</title><content type='html'>&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner2.jpg" alt="website designing India" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Benefits of using cascading style sheets in website design.&lt;br /&gt;&lt;br /&gt;    * Using CSS or cascading style sheet is a favorable way of designing web pages. CSS allows a web page designer better control of the layout and results in better look of the web pages. The best is to use external CSS included in the link which is placed in the head portion of the web page. With this link tag one can implement the style sheet to the whole site. And by editing one style sheet one can make desired changes on the site.&lt;br /&gt;    * Every page should have the style sheet to implement CSS there. The link tag is used to connect external CSS style sheet in a Web page but the link tag also conveys relationship between the relational pages.&lt;br /&gt;    * If the aim of the web designer is to create a Web page that appears as close as possible across whole set of web browsers, then first a master CSS style sheet is created to remove default browser styling. Thus when you build the website using master CSS style sheets, you'll be beginning with a clean palette. A good web designer knows how to link CSS with the web page HTML.&lt;br /&gt;    * CSS makes it easy to add spaces around objects, next to elements, and inside your pages. CSS helps web designer in indenting, out denting, letter and word spacing, in line height and the white space. With CSS one can create a bulleted list on the web page.&lt;br /&gt;    * CSS implementation is a great way to create framed pages without using frames - CSS allows you to position your HTML elements including making it look like a frame. It is also possible to create a background water mark image using CSS. It is easier to control H1, H2fonts and different font sizes using CSS. The web designer can make the fonts appear smaller or larger than what the font sizes actually are. CSS provides several properties for modifying your text so that your Web pages look more interesting. Text-decoration, text-transform, and text-shadow are useful properties to understand.&lt;br /&gt;    * CSS helps in re-designing the HR tags used for dividing an HTML page. One can also stylize link or hyper link elements on a web page using CSS, like changing the hover color and visited color etc.&lt;br /&gt;&lt;br /&gt;More and more web designers are using CSS today effective web page designs.&lt;br /&gt;&lt;br /&gt;I am a freelance seo content writer and hence interested in web design and development. I write often on website design and search engine optimization. I have written this article to highlight the use of CSS in creating web sites.&lt;br /&gt;&lt;br /&gt;Article Source: http://EzineArticles.com/?expert=Uday_Patel&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-3507885864027577971?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3507885864027577971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3507885864027577971'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/10/website-design-using-css.html' title='Website Design - Using CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4286594999099763355</id><published>2010-10-05T09:23:00.000-07:00</published><updated>2010-10-05T09:27:24.503-07:00</updated><title type='text'>CSS - The Basics</title><content type='html'>&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner2.jpg" alt="web designing India" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Thinking about CSS, but want to learn what you need to know, or need to learn before jumping onto the CSS bandwagon? Let me begin by saying that CSS can reduce your time at the computer. But knowledge do you need to learn and is CSS compatible with the search engines and your browsers? These are some of the questions I'll try to answer,as well as, explain a little about what CSS is all about.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is CSS?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CSS stands for Cascading Style Sheets. CSS is a set of formatting instructions that controls the looks of a web page or pages. Some of the browsers that support CSS is: (Firefox,IE3 or later, NN4 or later). You may be saying, great this will definitely save me some time. Not so fast, you also need to know that though, the majority of the browsers understand CSS, they do not fully support all of it's capabilities.&lt;br /&gt;&lt;br /&gt;XHTML - XHTML is EXtensible HyperText Markup Language. XHTML Is HTML with stricter rules-that adds conformity and, is 100% XML compliant. So you should be familiar with or become more comfortable with HTML, XHTML, and the style properties of CSS.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What can you do with CSS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can build your layout,adjusting size and color of your headings or body text, as well as positioning your pictures. This translates into like pages being programmed once, without the choice of inputting the same coding into each of your web pages manually. Translated, elimination of duplicate formatting.&lt;br /&gt;&lt;br /&gt;How to get the Search Engines to See Your Copy&lt;br /&gt;&lt;br /&gt;It has been said that the Search Engines still have some problems with understanding CSS. But if you want to use CSS, is there a way to get the search engines to see what you want.&lt;br /&gt;&lt;br /&gt;1. Keep your text clean, if you have to much garbage in your web page, than the spiders will have a difficult time in determining what is relevant and what is not. Thus, CSS keeps your web page clean, without the redundant coding needed for each individual element of code. Here is an example of how to code a headline; with the CSS code below.&lt;br /&gt;&lt;br /&gt;Example: "h1"Title"/h1" (replace beginning and end quotes with )&lt;br /&gt;&lt;br /&gt;"CSS code: H1 {font family: Arial size: 18 px; bold;}" (leave off quotes)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Syntax of CSS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First, CSS can be written within any text editor. But the text file must be saved with a CSS extension.&lt;br /&gt;&lt;br /&gt;The syntax of CSS consists of the selector and the declaration. The selector is the identifier within the body of your web page; the declaration is the code that identifies the style that you want to put into place as to property and rule. Lets say you want all your H1 headlines to be green, with the font Arial. the code for CSS would be as follows:&lt;br /&gt;Note: Do not include quotes around the code.&lt;br /&gt;&lt;br /&gt;"selector {property: rule;}"&lt;br /&gt;&lt;br /&gt;"H1 {color: green; font-family: Arial;}"&lt;br /&gt;&lt;br /&gt;Note: Notice that the property and rule must be enclosed in {}.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Placement of CSS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There are three places to put your CSS code:&lt;br /&gt;&lt;br /&gt;In the Head (Internal), in an external file, or within an individual tag (Inline style).&lt;br /&gt;&lt;br /&gt;Internal -is used within a single web page that may have a unique style.&lt;br /&gt;&lt;br /&gt;Inline - mixes code with content. Sometimes you may need to use it, but this style does seem to eliminate the need of even using a CSS style sheet.&lt;br /&gt;&lt;br /&gt;External - The CSS is separate from the body of the web page and is linked with the web page. Thus, to link an external file into a web page you will need to use the link tag.&lt;br /&gt;Example: &amp;lt;link rel="stylesheet" type="text/css" href="NameofCSS.css"&amp;gt; (Goes in the head section after the title tag)&lt;br /&gt;&lt;br /&gt;Which way do you go? If you have a large site or a site that will be expanding, an external file would be a better way to quickly and easily manipulate all your web pages at once.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Watch out for Spam&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;But with anything on the Internet, CSS can be used for the good and the bad. And obviously, if you want to keep your site up and running for a long time, some CSS techniques should be avoided. Why? Because some CSS techniques can be considered spam by the search engines and thus, ban your site if you use the techniques. The blackhat tactics include such things as: 1) using CSS to hide text-from headlines to body from the human eye; 2) hiding and bolding or italicizing copy for search engine spiders benefit only.&lt;br /&gt;&lt;br /&gt;To conclude, CSS can and is a viable way to making your web pages easier to maintain-if the majority of your pages follow the same format. If you are not all that familiar with CSS, then take the time to look at w3schools.com tutorial. It's very informative and can get you started with CSS..&lt;br /&gt;&lt;br /&gt;Vickie J Scanlon -- Visit her site at: http://www.myaffiliateplace.biz for free tools, articles, ebooks, how to info, affiliate opportunities, travel and tech accessories, software and computers for the online business. Or check her blog – My Affiliate Place Blog (http://myaffiliateplace.blogspot.com/) .&lt;br /&gt;&lt;br /&gt;Article Source: http://EzineArticles.com/?expert=Vickie_Scanlon&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4286594999099763355?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4286594999099763355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4286594999099763355'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/10/css-basics.html' title='CSS - The Basics'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-6501824374711083654</id><published>2010-09-30T01:22:00.000-07:00</published><updated>2010-09-30T01:29:11.303-07:00</updated><title type='text'>Gradient Borders with CSS</title><content type='html'>&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner1.jpg" alt="web designing packages hyderabad India" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;An example for &lt;span style="font-weight:bold;"&gt;Gradient Border&lt;/span&gt; to a box.  This example works work in Mozilla and Firefox browsers.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_v5h8enSm2is/TKRJ9UzCHrI/AAAAAAAAANM/HCydm5TSQ7M/s1600/gb.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 92px;" src="http://2.bp.blogspot.com/_v5h8enSm2is/TKRJ9UzCHrI/AAAAAAAAANM/HCydm5TSQ7M/s400/gb.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5522620360966676146" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Try with the below class property of the gradient border.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;.gBorder {&lt;br /&gt;border: 20px solid #000;&lt;br /&gt;-moz-border-top-colors: #555 #666 #777 #888 #999 #aaa #bbb #ccc;&lt;br /&gt;-moz-border-right-colors: #111 #222 #333 #444 #555 #666 #777 #888;&lt;br /&gt;-moz-border-bottom-colors: #111 #222 #333 #444 #555 #666 #777 #888;&lt;br /&gt;-moz-border-left-colors: #555 #666 #777 #888 #999 #aaa #bbb #ccc;&lt;br /&gt;width:400px;&lt;br /&gt;font-family:Verdana, Arial, Helvetica, sans-serif;&lt;br /&gt;font-size:.9em;&lt;br /&gt;padding:10px;&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/6765360061367593262-6501824374711083654?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6501824374711083654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6501824374711083654'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/09/example-for-gradient-border-to-box.html' title='Gradient Borders with CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_v5h8enSm2is/TKRJ9UzCHrI/AAAAAAAAANM/HCydm5TSQ7M/s72-c/gb.png' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-5500759386896858499</id><published>2010-09-28T00:01:00.000-07:00</published><updated>2010-09-28T00:35:42.904-07:00</updated><title type='text'>create rounded corners with CSS!</title><content type='html'>&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner2.jpg" alt="web designing packages hyderabad India" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;border-radius:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Good news for designers, now onwords no need to use rounded corner images to get rounded effect to the &lt;br /&gt;&lt;br /&gt;boxes. The css3 border-radious property allows to easly utilise the rounded corners.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Basic Example&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The following browsers support the rounded corners for Firefox, Safari/Chrome, Opera and IE9.&lt;br /&gt;The css property for this example is, quite simple:&lt;br /&gt;&lt;br /&gt;#bor1 {&lt;br /&gt;border-radius: 15px;&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;To support Firefox browser, need to use the -moz-  prefix &lt;br /&gt;&lt;br /&gt;#bor1 {&lt;br /&gt;-moz-border-radius: 15px;&lt;br /&gt;border-radius: 15px;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;&amp;lt;div &lt;br /&gt;style=" -moz-border-radius: 15px;&lt;br /&gt;border-radius: 15px;&lt;br /&gt;height: 150px;&lt;br /&gt;width:250px;&lt;br /&gt;border-top-left-radius: 50px 100px;&lt;br /&gt;border:5px solid #ddd;&lt;br /&gt;background-color:#ddd" &amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_v5h8enSm2is/TKGUI9GEOUI/AAAAAAAAALs/jku4KARVpo8/s1600/bor.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 308px; height: 225px;" src="http://3.bp.blogspot.com/_v5h8enSm2is/TKGUI9GEOUI/AAAAAAAAALs/jku4KARVpo8/s400/bor.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5521857499692808514" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How border-radius Works&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;By using the four individual borders-radious properties&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. border-bottom-left-radius&lt;br /&gt;2. border-bottom-right-radius&lt;br /&gt;3. border-top-left-radius&lt;br /&gt;4. border-top-right-radius&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Rounded corners can be created independently.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;&amp;lt;div &lt;br /&gt;style="height: 65px;&lt;br /&gt;width:160px;&lt;br /&gt;-moz-border-radius-bottomright: 50px;&lt;br /&gt;border-bottom-right-radius: 50px;&lt;br /&gt;background-color:#ddd"&amp;gt;&lt;br /&gt; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_v5h8enSm2is/TKGVHy9ZbdI/AAAAAAAAAL0/mkcIuTE3thQ/s1600/bora.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 308px; height: 157px;" src="http://4.bp.blogspot.com/_v5h8enSm2is/TKGVHy9ZbdI/AAAAAAAAAL0/mkcIuTE3thQ/s400/bora.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5521858579303853522" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner1.jpg" alt="web designing packages hyderabad India" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&amp;lt;div style="&lt;br /&gt;height: 100px;&lt;br /&gt;width:250px;&lt;br /&gt;-moz-border-radius-bottomright: 50px 25px;&lt;br /&gt;border-bottom-right-radius: 50px 25px;&lt;br /&gt;background-color:#ddd &amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_v5h8enSm2is/TKGXqjE8QdI/AAAAAAAAAL8/pf1up8dcck8/s1600/borb.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 333px; height: 157px;" src="http://2.bp.blogspot.com/_v5h8enSm2is/TKGXqjE8QdI/AAAAAAAAAL8/pf1up8dcck8/s400/borb.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5521861375359205842" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div&lt;br /&gt;style="height: 130px;&lt;br /&gt;width:250px;&lt;br /&gt;-moz-border-radius-bottomright: 25px 50px;&lt;br /&gt;border-bottom-right-radius: 25px 50px;&lt;br /&gt;background-color:#ddd" &amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_v5h8enSm2is/TKGYhySkGDI/AAAAAAAAAME/5wCUQAuT8nk/s1600/borc.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 333px; height: 197px;" src="http://3.bp.blogspot.com/_v5h8enSm2is/TKGYhySkGDI/AAAAAAAAAME/5wCUQAuT8nk/s400/borc.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5521862324335679538" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div style=" height: 100px;&lt;br /&gt;width:250px;&lt;br /&gt;-moz-border-radius: 1em 4em 1em 4em;&lt;br /&gt;border-radius: 1em 4em 1em 4em;&lt;br /&gt;background-color:#ddd" &amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_v5h8enSm2is/TKGZKtXJiZI/AAAAAAAAAMM/jiwYr55eCVU/s1600/bord.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 333px; height: 160px;" src="http://3.bp.blogspot.com/_v5h8enSm2is/TKGZKtXJiZI/AAAAAAAAAMM/jiwYr55eCVU/s400/bord.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5521863027387369874" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div style="height: 130px;&lt;br /&gt;width:250px;&lt;br /&gt;-moz-border-radius: 25px 10px / 10px 25px;&lt;br /&gt;border-radius: 25px 10px / 10px 25px;&lt;br /&gt;background-color:#ddd" &amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_v5h8enSm2is/TKGZxqAT4CI/AAAAAAAAAMU/uJZdkWo7qhQ/s1600/bore.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 333px; height: 197px;" src="http://1.bp.blogspot.com/_v5h8enSm2is/TKGZxqAT4CI/AAAAAAAAAMU/uJZdkWo7qhQ/s400/bore.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5521863696501170210" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div style=" height: 100px;&lt;br /&gt;width:250px;&lt;br /&gt;-moz-border-radius: 350px;&lt;br /&gt;border-radius: 35px;&lt;br /&gt;background-color:#ddd" &amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_v5h8enSm2is/TKGaaNTJKbI/AAAAAAAAAMc/oyKxWMIEQdU/s1600/borf.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 301px; height: 178px;" src="http://1.bp.blogspot.com/_v5h8enSm2is/TKGaaNTJKbI/AAAAAAAAAMc/oyKxWMIEQdU/s400/borf.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5521864393170168242" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner2.jpg" alt="web designing packages hyderabad India" &gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-5500759386896858499?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5500759386896858499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5500759386896858499'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/09/create-rounded-corners-with-css.html' title='create rounded corners with CSS!'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_v5h8enSm2is/TKGUI9GEOUI/AAAAAAAAALs/jku4KARVpo8/s72-c/bor.png' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-658531814717595894</id><published>2010-09-27T18:52:00.000-07:00</published><updated>2010-09-27T18:53:10.707-07:00</updated><title type='text'>CSS3 Shadow Effect</title><content type='html'>&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner2.jpg" alt="web designing packages hyderabad India" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Shadow effects are specified based on specified order. The property dont increase the size of the box, though they can extend past its boundaries.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_y28DEEK8ElM/TKBl3hN1k4I/AAAAAAAAANA/p4qYt-moNxY/s1600/shadow.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 270px; height: 74px;" src="http://2.bp.blogspot.com/_y28DEEK8ElM/TKBl3hN1k4I/AAAAAAAAANA/p4qYt-moNxY/s320/shadow.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5521525147639845762" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;.shadow {&lt;br /&gt;  text-shadow: 5px 5px 5px #a1a1a1;&lt;br /&gt;  font-size:3em;&lt;br /&gt;  color:#000;&lt;span style="font-weight:bold;"&gt;&lt;/span&gt;&lt;br /&gt;  font-family:"Times New Roman", Times, serif&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The above class specifies text shadow effect, it extends 5px to the right and 5px below the text, and the 5px blur.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Browser Support&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;IE8      - None&lt;br /&gt;FF3.5+   - Yes&lt;br /&gt;SA1.3+   - Yes&lt;br /&gt;OP9.5+   - Yes&lt;br /&gt;&lt;br /&gt;shadow value must specify a shadow offset and a blur radius and color.&lt;br /&gt;&lt;br /&gt;Using two lenghth values the offset will specified.&lt;br /&gt;&lt;br /&gt;* First value represents the horizontal distance to the right of the text in positive.&lt;br /&gt;The negative value move the text to left side.&lt;br /&gt;&lt;br /&gt;* Second value represents the vertical distance below the text (if it’s positive) or above the text (if it’s negative).&lt;br /&gt;&lt;br /&gt;The blur radius is specified after the offset values; it’s a length value that represents the size of the blur effect. If no radius is specified, the shadow will not be blurred.&lt;br /&gt;&lt;br /&gt;Color can be specified before or after the offset and blur radius values.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner1.jpg" alt="web designing packages hyderabad India" &gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-658531814717595894?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/658531814717595894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/658531814717595894'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/09/css3-shadow-effect.html' title='CSS3 Shadow Effect'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_y28DEEK8ElM/TKBl3hN1k4I/AAAAAAAAANA/p4qYt-moNxY/s72-c/shadow.png' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4406701989947377603</id><published>2010-09-27T03:46:00.000-07:00</published><updated>2010-09-27T03:47:20.512-07:00</updated><title type='text'>The Most Exciting Aspects of CSS3</title><content type='html'>CSS3 is the new CSS kid on the block currently being drafted up by W3C. Here I list some of the most important changes I think will have the most impact on the future of web development!&lt;br /&gt;&lt;br /&gt;1) The box-shadow property&lt;br /&gt;&lt;br /&gt;Top of my list and many others, is the box-shadow property. This property will allow the developer to add a drop shadow effect to an element. Simply by specifying a colour of your choice, the horizontal offset which defines how much to the left or right you want the shadow, the vertical offset which defines how far up or down you want the shadow, and a blur radius which defines how deep or sharp you want the shadow to be. The great thing about this effect is that as it is rendered by the browser and not pre-rendered in an image Therefore it can be used on elements which are animated using jquery - the shadow is animated to!&lt;br /&gt;&lt;br /&gt;2) The Border-radius property&lt;br /&gt;&lt;br /&gt;This property is fantastic as it allows you to finally give your elements rounded corners. Simply provide a numeric measurement to define how large you want the radius to be. Each corner of an element can be individually defined. The rounded corners should also be reflected in the drop shadow if one is specified.&lt;br /&gt;&lt;br /&gt;3) Web Fonts with @font-face&lt;br /&gt;&lt;br /&gt;This is not strictly a CSS3 implementation I will admit as @font-face was already part of CSS2. However the exciting part is that developers will be able to specify OpenType and TrueType fonts for use in their websites instead of being restricted to Embedded OpenTypes. To do this you would refer to a font of your choice hosted on the internet (you can search for great resources by googling 'font face fonts'). You can then use these fonts anywhere else in your CSS font-family styles. This finally opens the door and gives a breath of fresh air to the typography of the internet.&lt;br /&gt;&lt;br /&gt;4) The text-shadow property&lt;br /&gt;&lt;br /&gt;One of my favourite new options is the text-shadow property. This works much like the box-shadow property as you provide a colour, two offsets and a radius. Like a lot of effects I would recommend being very subtle with this to achieve maximum impact. Using this with web fonts lends a lot of power to CSS without the need for photoshop.&lt;br /&gt;&lt;br /&gt;5) background colour gradients&lt;br /&gt;&lt;br /&gt;Specifiying gradient background effects for elements is again, very beneficial. This is another area where photoshop can now be bypassed in a lot of situations and hence improving your website size. You can specify a left to right, right to left, top to bottom, bottom to top or radial gradients to fill the background of an element, from one colour to another. Again, being subtle with effects like this is key for maximum impact.&lt;br /&gt;&lt;br /&gt;6) The opacity property&lt;br /&gt;&lt;br /&gt;The ability to control the opacity of an element is probably one of the most anticipated and widely used effect used today, where possible. by providing a number between 0 and 1 or a percentage, you can control how 'translucent' you wish your element, and its children, to be. The effect being you can see the elements beneath it.&lt;br /&gt;&lt;br /&gt;CSS3 is an exciting and welcome development in the web development community. Using the above effects which are widely supported across the most recent, popular browsers, you'll be working more efficiently and effectively!&lt;br /&gt;&lt;br /&gt;The author of this article is a freelance web designer who provides professional Web Design in Kent.&lt;br /&gt;&lt;br /&gt;Article Source: http://EzineArticles.com/?expert=Nick_Bright&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4406701989947377603?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4406701989947377603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4406701989947377603'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/09/most-exciting-aspects-of-css3.html' title='The Most Exciting Aspects of CSS3'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-1524638046287871360</id><published>2010-09-24T02:17:00.000-07:00</published><updated>2010-09-24T02:49:16.829-07:00</updated><title type='text'>CSS Background Properties</title><content type='html'>&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner2.jpg" alt="web designing packages hyderabad India" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Using the css background properties we can define the background effects of an element.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;CSS background properties &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. background-color&lt;br /&gt;2. background-image&lt;br /&gt;3. background-repeat&lt;br /&gt;4. background-attachment&lt;br /&gt;5. background-position&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Background Color&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This property specifies the color of the background of an element.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;body {background-color:#1ec7ff;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The body will fll with given background color #1ec7ff&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Background Image&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This property specifies an image of the background of an element.&lt;br /&gt;&lt;br /&gt;By specify the background image the image will spread the entire element&lt;br /&gt;&lt;br /&gt;Below it the background property&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;body {background-image:url(desing.jpg);}&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_v5h8enSm2is/TJxs6Dx2rBI/AAAAAAAAAKU/WPn1riXxk9U/s1600/desing.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 53px; height: 53px;" src="http://1.bp.blogspot.com/_v5h8enSm2is/TJxs6Dx2rBI/AAAAAAAAAKU/WPn1riXxk9U/s400/desing.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5520406987952008210" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I have taken a small  image and applied to the background it spread entire body&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_v5h8enSm2is/TJxtBdcJ2kI/AAAAAAAAAKc/AiHIIv-2Hzg/s1600/background-image.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 366px; height: 252px;" src="http://1.bp.blogspot.com/_v5h8enSm2is/TJxtBdcJ2kI/AAAAAAAAAKc/AiHIIv-2Hzg/s400/background-image.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5520407115099396674" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Background Image - Repeat &lt;br /&gt;&lt;br /&gt;1.Horizontally &lt;br /&gt;2.Vertically&lt;br /&gt;&lt;br /&gt;By default background-image property repeats an image both horizontally and vertically.&lt;br /&gt;In some cases we have to repeat the image only horizontally or vertically in that case:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;body&lt;br /&gt;{&lt;br /&gt;background-image:url('design.jpg');&lt;br /&gt;background-repeat:repeat-x;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_v5h8enSm2is/TJxzu5NlLHI/AAAAAAAAAK8/ZFId1QwsEkk/s1600/background-x.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 181px;" src="http://3.bp.blogspot.com/_v5h8enSm2is/TJxzu5NlLHI/AAAAAAAAAK8/ZFId1QwsEkk/s400/background-x.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5520414492718345330" /&gt;&lt;/a&gt;&lt;br /&gt;background-repeat:repeat-x property is for repeat the image in x direction&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;body&lt;br /&gt;{&lt;br /&gt;background-image:url('design.jpg');&lt;br /&gt;background-repeat:repeat-y;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;background-repeat:repeat-y property is for repeat the image in y direction&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_v5h8enSm2is/TJxz-2AyagI/AAAAAAAAALE/rmSOfEvwcaw/s1600/background-y.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 203px; height: 264px;" src="http://4.bp.blogspot.com/_v5h8enSm2is/TJxz-2AyagI/AAAAAAAAALE/rmSOfEvwcaw/s400/background-y.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5520414766737287682" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Background Image - no-repeat&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When we say background-image:no-repeat, it shows the image only once&lt;br /&gt;&lt;br /&gt;We can set the background position by specifing the background-position property&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;body&lt;br /&gt;{&lt;br /&gt;background-image:url('design.jpg');&lt;br /&gt;background-repeat:no-repeat;&lt;br /&gt;background-position:right top&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_v5h8enSm2is/TJxyCVsryFI/AAAAAAAAAK0/E6iinbCOzeE/s1600/background-p.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 165px;" src="http://3.bp.blogspot.com/_v5h8enSm2is/TJxyCVsryFI/AAAAAAAAAK0/E6iinbCOzeE/s400/background-p.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5520412627759253586" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner1.jpg" alt="web designing company hyderabad India" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Instead of writing separately we can use short hand property.&lt;br /&gt;&lt;br /&gt;body  {background:#ffffff url('desing.jpg') no-repeat right top"}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-1524638046287871360?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1524638046287871360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1524638046287871360'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/09/css-background-properties.html' title='CSS Background Properties'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_v5h8enSm2is/TJxs6Dx2rBI/AAAAAAAAAKU/WPn1riXxk9U/s72-c/desing.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-8687320832949799732</id><published>2010-09-22T22:42:00.000-07:00</published><updated>2010-09-23T23:45:38.316-07:00</updated><title type='text'>Using Blockquote</title><content type='html'>&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner2.jpg" border="0" alt="Website Designer At affordable cost" /&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Definition and Usage&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The &amp;lt;blockquote&amp;gt; tag defines a long quotation.&lt;br /&gt;&lt;br /&gt;Browser adds space before and after the blackquote element, and also add margins.&lt;br /&gt;&lt;br /&gt;Styling the blocquote element by adding css properties&lt;br /&gt;&lt;br /&gt;blockquote { padding: 10px; background: #eee; }&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_v5h8enSm2is/TJxB8CfwU_I/AAAAAAAAAJ8/aZ4zFyxglLM/s1600/blackquote-d.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 33px;" src="http://3.bp.blogspot.com/_v5h8enSm2is/TJxB8CfwU_I/AAAAAAAAAJ8/aZ4zFyxglLM/s400/blackquote-d.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5520359742967403506" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;When the blackquote is nested with multiple paragraphs, each paragraphs will not have breathing space.  So we need to add some spacing after the blocks.&lt;br /&gt;&lt;br /&gt;blockquote, p { margin-bottom: 30px; border-bottom:1px solid #fff }&lt;br /&gt;&lt;br /&gt;I have used &lt;span style="font-style:italic;"&gt;"border-bottom:1px solid #fff"&lt;/span&gt; property to the paragraph element for understanding clearly.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_v5h8enSm2is/TJxHpxsmtzI/AAAAAAAAAKE/ms1zlUw7iVY/s1600/blockquote-p.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 92px;" src="http://4.bp.blogspot.com/_v5h8enSm2is/TJxHpxsmtzI/AAAAAAAAAKE/ms1zlUw7iVY/s400/blockquote-p.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5520366026290018098" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-8687320832949799732?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8687320832949799732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8687320832949799732'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/09/blockquote-bulge.html' title='Using Blockquote'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_v5h8enSm2is/TJxB8CfwU_I/AAAAAAAAAJ8/aZ4zFyxglLM/s72-c/blackquote-d.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-3980231201848181049</id><published>2010-09-21T19:21:00.000-07:00</published><updated>2010-09-23T22:21:17.092-07:00</updated><title type='text'>How To Create an IE-Only Stylesheet</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-3980231201848181049?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3980231201848181049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3980231201848181049'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/09/how-to-create-ie-only-stylesheet.html' title='How To Create an IE-Only Stylesheet'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-1100703532628471186</id><published>2010-09-20T22:49:00.000-07:00</published><updated>2010-09-29T05:03:48.272-07:00</updated><title type='text'>Transparent Borders with background-clip</title><content type='html'>&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner1.jpg" alt="web designing packages hyderabad India" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;The Opacity declaration sets how opaque an element is. An opacity value of 1 means the element is fully opaque; an opacity value of 0 means an element is not at all opaque, i.e. fully transparent.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_v5h8enSm2is/TKMbTDbO8dI/AAAAAAAAAM8/d8mKMtFb1Ts/s1600/trans-border.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 332px;" src="http://4.bp.blogspot.com/_v5h8enSm2is/TKMbTDbO8dI/AAAAAAAAAM8/d8mKMtFb1Ts/s400/trans-border.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5522287582237356498" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Try with the below css code:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;background-color: white;&lt;br /&gt; &lt;br /&gt;-moz-background-clip: padding;     &lt;br /&gt;-webkit-background-clip: padding;&lt;br /&gt;background-clip: padding-box;      &lt;br /&gt;       &lt;br /&gt;border: 20px solid rgba(205,131,25,0.3);&lt;br /&gt;      &lt;br /&gt;-webkit-border-radius: 25px;&lt;br /&gt;-moz-border-radius: 25px;&lt;br /&gt;border-radius: 25px; &lt;br /&gt;  &lt;br /&gt;padding: 25px;&lt;br /&gt;&lt;br /&gt;text-align: center;&lt;br /&gt;   &lt;br /&gt;position: absolute; &lt;br /&gt;top: 50px;&lt;br /&gt;left: 500px; &lt;br /&gt;&lt;br /&gt;--------------&lt;br /&gt;&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner2.jpg" alt="web designing services, affordable packages hyderabad India" &gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;The &lt;span style="font-weight:bold;"&gt;background-clip&lt;/span&gt; property is used to determine whether the backgrounds extends into the border or not. &lt;br /&gt;&lt;br /&gt;-moz-background-clip: padding;     &lt;span style="font-weight:bold;"&gt;-&gt;&lt;/span&gt; Firefox 3.6&lt;br /&gt;-webkit-background-clip: padding;  &lt;span style="font-weight:bold;"&gt;-&gt;&lt;/span&gt; Safari 4? Chrome 6?&lt;br /&gt;background-clip: padding-box;      &lt;span style="font-weight:bold;"&gt;-&gt;&lt;/span&gt; Firefox 4, Safari 5, Opera 10, IE 9&lt;br /&gt;       &lt;br /&gt;The RGBA declaration allows you to set opacity (via the Alpha channel) as part of the color value.&lt;br /&gt;border: 20px solid rgba(205,131,25,0.3);&lt;br /&gt;      &lt;br /&gt;Browser support :&lt;br /&gt;&lt;br /&gt;-webkit-border-radius: 25px;&lt;br /&gt;-moz-border-radius: 25px;&lt;br /&gt;border-radius: 25px; &lt;br /&gt;  &lt;br /&gt;padding: 25px;&lt;br /&gt;text-align: center;&lt;br /&gt;position: absolute; &lt;br /&gt;top: 50px;&lt;br /&gt;left: 500px;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner1.jpg" alt="web designing services, affordable packages hyderabad India" &gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-1100703532628471186?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1100703532628471186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1100703532628471186'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/09/transparent-borders-with-background.html' title='Transparent Borders with background-clip'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_v5h8enSm2is/TKMbTDbO8dI/AAAAAAAAAM8/d8mKMtFb1Ts/s72-c/trans-border.png' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4087163209272950758</id><published>2010-09-15T02:06:00.000-07:00</published><updated>2010-09-23T22:22:29.047-07:00</updated><title type='text'>Ordering CSS3 Properties</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4087163209272950758?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4087163209272950758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4087163209272950758'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/09/ordering-css3-properties_15.html' title='Ordering CSS3 Properties'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4819165165568886708</id><published>2010-09-15T02:00:00.000-07:00</published><updated>2010-09-23T22:22:58.151-07:00</updated><title type='text'>Box Sizing</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4819165165568886708?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4819165165568886708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4819165165568886708'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/09/box-sizing.html' title='Box Sizing'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4375607957033430344</id><published>2010-09-08T05:02:00.000-07:00</published><updated>2010-09-23T22:23:25.737-07:00</updated><title type='text'>Ordering CSS3 Properties</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4375607957033430344?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4375607957033430344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4375607957033430344'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/09/ordering-css3-properties.html' title='Ordering CSS3 Properties'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4218314519596285304</id><published>2010-09-06T00:00:00.000-07:00</published><updated>2010-09-23T22:23:52.637-07:00</updated><title type='text'>At @ Rule CSS</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4218314519596285304?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4218314519596285304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4218314519596285304'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/09/at-rule-css.html' title='At @ Rule CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-2150806052737226739</id><published>2010-09-02T06:03:00.000-07:00</published><updated>2010-09-22T03:10:40.281-07:00</updated><title type='text'>WebKit HTML5 Search Inputs</title><content type='html'>&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner1.jpg" border="0" alt="Website Designing At Low Cost" /&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;One of the new types of inputs in HTML5 is search&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&amp;lt;input type=search name=s&amp;gt;&lt;/span&gt;&lt;br /&gt;It does absolutely nothing in most browsers. It just behaves like a text input. This isn’t a problem. The spec doesn’t require it to do anything special. WebKit browsers do treat it a bit differently though, primarily with styling.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_v5h8enSm2is/TH-hBWeOCLI/AAAAAAAAAF4/eHOmqOCECL8/s1600/simplesearchinput.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 203px; height: 49px;" src="http://1.bp.blogspot.com/_v5h8enSm2is/TH-hBWeOCLI/AAAAAAAAAF4/eHOmqOCECL8/s400/simplesearchinput.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5512301513509046450" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A search input in WebKit by default has an inset border, rounded corners, and strict typographic control.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The Styling Limitations&lt;/span&gt;&lt;br /&gt;WebKit has big time restrictions on what you can change on a search input. I would guess the idea is consistency. In Safari particularly, search fields look just like the search box in the upper right of the browser. The following CSS will be ignored in WebKit “no matter what”, as in, you can’t even fight against it with !important rules.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;input[type=search]&lt;/span&gt; {&lt;br /&gt; padding: 30px;            /* Overridden by padding: 1px; */&lt;br /&gt; font-family: Georgia;     /* Overridden by font: -webkit-small-control; */&lt;br /&gt; border: 5px solid black;  /* Overridden by border: 2px inset; */&lt;br /&gt; background: red;          /* Overridden by background-color: white; */&lt;br /&gt; line-height: 3;           /* Irrelevant, I guess */&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;In other words, be extremely cautious about using any of those CSS properties on a search input unless you are OK with the search input looking very different in other browsers.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Allowed styling&lt;/span&gt;&lt;br /&gt;The following CSS works as expected. The last three, in my opinion, should probably locked in like the properties above as styling those properties almost always looks worse than if you didn’t.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;input[type=search]&lt;/span&gt; {&lt;br /&gt; color: red;&lt;br /&gt; text-align: right;&lt;br /&gt; cursor: pointer;&lt;br /&gt; display: block;&lt;br /&gt; width: 100%;&lt;br /&gt; letter-spacing: 4px;&lt;br /&gt; text-shadow: 0 0 2px black;&lt;br /&gt; word-spacing: 20px;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Busted styling&lt;/span&gt;&lt;br /&gt;Be careful not to use text-indent on search inputs. The results are quite weird an inconsistent. Here is one example.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_v5h8enSm2is/TH-ieArH5oI/AAAAAAAAAGI/qppZhmI9WGo/s1600/weirdtextindent.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 148px; height: 43px;" src="http://1.bp.blogspot.com/_v5h8enSm2is/TH-ieArH5oI/AAAAAAAAAGI/qppZhmI9WGo/s400/weirdtextindent.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5512303105385424514" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Sometimes the text is below like this. Sometimes it’s not visible at all. It appears to be related to elements around it as well as how much indent it has (low values sometimes work fine).&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Show Previous Searches&lt;/span&gt;&lt;br /&gt;This isn’t documented anywhere that I know of nor is it in the spec, but you if you add a results parameter on the input, WebKit will apply a little magnifying glass with a dropdown arrow showing previous results.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&amp;lt;input type=search results=5 name=s&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_v5h8enSm2is/TH-i4LTwKBI/AAAAAAAAAGQ/z6rjLHFFS2U/s1600/RecentSearches.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 247px; height: 161px;" src="http://2.bp.blogspot.com/_v5h8enSm2is/TH-i4LTwKBI/AAAAAAAAAGQ/z6rjLHFFS2U/s400/RecentSearches.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5512303554916788242" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;The integer value you give the results attribute is how many recent searches will appear in this dropdown, if there are that many.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I really like the little magnifying glass. It drive home the searchyness of the field, but I’m calling the functionality itself rather janky. On a page reload recent searches clears, so that dropdown will almost always say “No recent searches”, unless you have implemented some kind of Ajax search (and even that I haven’t really tested).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Size Restrictions&lt;/span&gt;&lt;br /&gt;There are only three different “sizes” that WebKit search inputs can be, and it is determined by the font-size you declare on them.&lt;br /&gt;&lt;br /&gt;Resulting Size CSS font-size&lt;br /&gt;Small &amp;lt;= 10px&lt;br /&gt;Medium 11px – 15px&lt;br /&gt;Large &amp;gt;= 16px&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_v5h8enSm2is/TH-jXO1c_GI/AAAAAAAAAGY/ZIZFTofV3jc/s1600/allsizes.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 226px; height: 274px;" src="http://2.bp.blogspot.com/_v5h8enSm2is/TH-jXO1c_GI/AAAAAAAAAGY/ZIZFTofV3jc/s400/allsizes.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5512304088439389282" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Small, Medium, and Large. That’s all you get!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This small, medium, and large business can be extremely frustrating, as even setting identical font values, at the minimum for a “bump”, you’ll see font size difference across browsers.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_v5h8enSm2is/TH-jkvSKjRI/AAAAAAAAAGg/cIOi5Sx6fDQ/s1600/fontsizedifference.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 114px;" src="http://2.bp.blogspot.com/_v5h8enSm2is/TH-jkvSKjRI/AAAAAAAAAGg/cIOi5Sx6fDQ/s400/fontsizedifference.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5512304320488049938" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Identical font sizings not idential.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Notice the (x) on the right hand side of the search inputs on the WebKit side. That is an additional feature of these search inputs in WebKit. If the input has any value (not a placeholder, a real value) the (x) will be present which is a functional UI control for clearing the input.&lt;br /&gt;&lt;br /&gt;Speaking of placeholder text, search inputs are a great candiate for that.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&amp;lt;input type=search results=5 placeholder=Search... name=s&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And in case light gray isn’t your cup of tea, you can style the placeholder text:&lt;br /&gt;&lt;br /&gt;::-webkit-input-placeholder {&lt;br /&gt;        color: orangered;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Source : http://css-tricks.com/webkit-html5-search-inputs/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-2150806052737226739?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2150806052737226739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2150806052737226739'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/09/webkit-html5-search-inputs.html' title='WebKit HTML5 Search Inputs'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_v5h8enSm2is/TH-hBWeOCLI/AAAAAAAAAF4/eHOmqOCECL8/s72-c/simplesearchinput.png' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-5962721929886421688</id><published>2010-08-31T23:03:00.000-07:00</published><updated>2010-12-03T22:43:45.855-08:00</updated><title type='text'>Nine Techniques for CSS Image Replacement</title><content type='html'>The recent posting "Rethinking CSS Image Replacement" generated some pretty good discussion and got me thinking deeper about this issue. As a quick review, CSS image replacement is a technique of replacing a text page element with an image. An example of this would be including a logo on a page. You may want to use a &amp;laquo;h1&amp;raquo; tag and text for this for the accessibility and SEO benefits, but ideally you'd like to show your logo, not text.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://cdn.css-tricks.com/wp-content/uploads/2008/03/image-replacement-example.gif" /&gt;&lt;br /&gt;&lt;br /&gt;Read More at : http://css-tricks.com/css-image-replacement/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-5962721929886421688?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5962721929886421688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5962721929886421688'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/08/nine-techniques-for-css-image.html' title='Nine Techniques for CSS Image Replacement'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-8919799050435508368</id><published>2010-08-25T05:44:00.000-07:00</published><updated>2010-08-25T05:47:01.615-07:00</updated><title type='text'>Multiple Borders</title><content type='html'>The element needing multiple borders should have its own border and relative positioning.&lt;br /&gt;&lt;br /&gt;#borders {&lt;br /&gt;   position: relative;&lt;br /&gt;   border: 5px solid #f00;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The secondary border is added with a pseudo element. It is set with absolute positioning and inset with top/left/bottom/right values. This will also have a border and is kept beneath the content (preserving, for example, selectability of text and clickability of links) by giving it a negative z-index value.&lt;br /&gt;&lt;br /&gt;#borders:before {&lt;br /&gt;   content: " ";&lt;br /&gt;   position: absolute;&lt;br /&gt;   z-index: -1;&lt;br /&gt;   top: 5px;&lt;br /&gt;   left: 5px;&lt;br /&gt;   right: 5px;&lt;br /&gt;   bottom: 5px;&lt;br /&gt;   border: 5px solid #ffea00;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;You can do a third border by using the :after pseudo class as well. Take special note that Firefox 3 (pre 3.6) screws this up by supporting :after and :before, but not allowing them to be absolutely positioned (so it looks weird).&lt;br /&gt;&lt;br /&gt;Ref URL : http://nicolasgallagher.com/multiple-backgrounds-and-borders-with-css2/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-8919799050435508368?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8919799050435508368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8919799050435508368'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/08/multiple-borders.html' title='Multiple Borders'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-8092210634384133401</id><published>2010-08-23T06:12:00.000-07:00</published><updated>2010-08-23T06:13:25.041-07:00</updated><title type='text'>CSS Gallery</title><content type='html'>Using a CSS gallery is a must these days. If you are a web designer then you know how important exposure is, especially on the web. Having your work displayed for millions to view everyday is essential. A CSS gallery can be instrumental in accomplishing this task. Let's face it, you want to get your name out there and the best way to do that is to have your site featured on a page that draws a lot of visitors to it. It's not brain surgery, but it's not for the faint of heart either. If you are an adventurous web designer who is ready to have your work displayed and commented on then it's high time that you give a CSS gallery a try. If you have always wanted to learn how to tap into the power of a CSS gallery, than this is the article for you to read.&lt;br /&gt;&lt;br /&gt;The thing to remember about any CSS gallery is that there are rules that you must abide by when posting your work. First you must make sure that your portfolio is free of errors. This means all the internal linking structures must be working, the graphic files must be included and linked properly and that your pages are structured correctly. This makes perfect sense, who wants to look at a site that has errors on it, what does that say about the designer who built the page. You don't want the hit to your reputation, take the time to make sure your site works perfectly before submitting. Most gallery owners won't post poorly constructed sites but there are a few that will still upload them. You want to be careful and double check before you hit that upload button.&lt;br /&gt;&lt;br /&gt;Second thing to remember when submitting your work to a CSS gallery is that your coding must be clean. People are going to be viewing your source code like crazy and you want to make sure your syntax is well phrased. No one likes to work with sloppy code. Think of your coding in this way, you want someone to be able to customize it for their needs if they were to buy it, right? Well who wants to buy a CSS site that has ugly code tossed in with uneven commenting lines and unclear formatting? CSS coding is just like writing a story. No one wants to read a badly written story either. Make your code a bestseller by writing it right from the beginning.&lt;br /&gt;&lt;br /&gt;Third item on this list for criteria of a CSS gallery is that you site must be WC3 validated. You've been in web development long enough to know that WC3 is the authority on web conformity and standards. With so many people all over the globe using web code these days is it any wonder why WC3 is looked at more than ever as the "seal of approval" for a fully functional and compatible web site? Remember that you're hoping all of these one-way links generated from a CSS gallery will convert into sales for you. If your site is WC3 validated this is one more selling feature of your work that will gain a buyer's trust and that's what builds consumer loyalty and recurring sales.&lt;br /&gt;&lt;br /&gt;As you can see a CSS gallery can be a web designer's best friend. It can help generate traffic for your site as well as introduce your work to the designing world in general. This article covered the necessary steps needed for portfolio submission to CSS galleries. We covered having error-free portfolios clean coding, and being WC3 compliant. With this information you are now ready to use any CSS gallery you wish.&lt;br /&gt;&lt;br /&gt;Article Source: http://EzineArticles.com/?expert=Elle_Wood&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-8092210634384133401?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8092210634384133401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8092210634384133401'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/08/css-gallery.html' title='CSS Gallery'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-5395852922599429304</id><published>2010-08-18T01:03:00.001-07:00</published><updated>2010-09-23T22:24:41.840-07:00</updated><title type='text'>CSS-Tricks Finally Gets A Print Stylesheet</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-5395852922599429304?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5395852922599429304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5395852922599429304'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/08/css-tricks-finally-gets-print.html' title='CSS-Tricks Finally Gets A Print Stylesheet'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4944337040303849326</id><published>2010-08-12T23:01:00.000-07:00</published><updated>2010-09-23T22:31:02.885-07:00</updated><title type='text'>CSS Sprites Workflow</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4944337040303849326?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4944337040303849326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4944337040303849326'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/08/css-sprites-workflow.html' title='CSS Sprites Workflow'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-7008468229675872256</id><published>2010-08-08T23:25:00.000-07:00</published><updated>2010-09-23T22:31:45.637-07:00</updated><title type='text'>Perfect Full Page Background Image</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-7008468229675872256?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/7008468229675872256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/7008468229675872256'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/08/perfect-full-page-background-image.html' title='Perfect Full Page Background Image'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-3500793850709969196</id><published>2010-08-04T22:41:00.000-07:00</published><updated>2010-08-04T22:44:43.463-07:00</updated><title type='text'>The Best Reasons For Using CSS Layouts</title><content type='html'>In the culture of modern web design, Cascading Style Sheet or CSS has become a popular tool and trend nowadays. With the development of numerous, fast and modern web design applications, the use of tables were no longer effective and efficient as it used to be. Today, CSS is found by most web designers as more effective, efficient and acceptable in their growing industry of web design. Such advantages are as follows:&lt;br /&gt;&lt;br /&gt;• Consistency - With effective use of the "inheritance and cascading" features of CSS, a global style sheet can be used to affect style elements site-wide. If the situation arises that the styling of the elements should need to be changed or adjusted, these changes can be made easily, simply by editing a few rules in the global style sheet.&lt;br /&gt;&lt;br /&gt;• Accessibility - Most of CSS features are accessible to many websites accessibility standards in different countries and industries of the world like the government. It is also accessible to JavaScript which most websites use.&lt;br /&gt;&lt;br /&gt;• Reformatting Friendly - At CSS, a simple change of one line and a different style sheet can be used for the same page. This helps and provides the user the option to tailor a page or site to different target devices. Also, devices not able to understand the styling will still display the content.&lt;br /&gt;&lt;br /&gt;• Flexibility - CSS is so flexible that combining it with the functionality of Content Management System (CMS), you can program it into content submission forms. Hence, the contributor is able to select and submit in the same form the layout of an article or page he is submitting, though he is not familiar with or able to edit CSS or HTML codes.&lt;br /&gt;&lt;br /&gt;• Enhancement Friendly - With a clean CSS-layout, it's easier to optimize your website for mobile device such as iPhone; and in creating animation and effects, say with flash.&lt;br /&gt;&lt;br /&gt;• Printer Friendly - With the CSS media type "print", users can specify a style sheet that is only used when printing. This can be very useful and allows for neatly styled printouts that hide non-essential parts of the page and only contain the main content.&lt;br /&gt;&lt;br /&gt;• Modem Speed - In CSS, style sheets are used on multiple pages without being reloaded because they are usually stored in the browser cache. Therefore, the download speeds are increased and the data transfer over network is reduced.&lt;br /&gt;&lt;br /&gt;• SEO Friendly - CSS makes your website SEO friendly, thus boosts your search page ranking. Since search engines do not go through the bundles of HTML codes to get to the indexed codes, if you use external CSS files to design and determine the design attributes; the HTML code will be clean and it will result to better search engine rankings. In CSS, you could easily make the main content of your site to show up above the header or navigation menu in the code of your website; thus will help to show search engine crawlers the importance of your content. Because modern search engines such as Google, Yahoo and MSN love light-weighted websites. They want to see your content; the text, not the code. With CSS you practically externalize excessive code into external file, thus leaving the actual page clean and simple.&lt;br /&gt;&lt;br /&gt;Though the use of pure CSS alone meets a number of difficulties and drawbacks, yet it offers more than any other framework in the market today. Which framework you choose is really a personal decision. Different frameworks are better for different types of web designs, and for different designers. CSS being: SEO-reformatting-enhancement friendly; fast-loader, accessible, usable, flexible and consistent, can definitely give a boost to your business inwardly and outwardly.&lt;br /&gt;&lt;br /&gt;For your virtual assistant/outsourcing services needs in web design and management, visit us online at http://www.remoteworkmate.com/web-design-virtual-assistant/.&lt;br /&gt;&lt;br /&gt;Article Source: http://EzineArticles.com/?expert=Carla_Ramos_Loteria&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-3500793850709969196?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3500793850709969196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3500793850709969196'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/08/best-reasons-for-using-css-layouts.html' title='The Best Reasons For Using CSS Layouts'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-5456468355679395068</id><published>2010-08-03T02:13:00.000-07:00</published><updated>2010-08-03T02:14:25.492-07:00</updated><title type='text'>ARIA and CSS Validation Errors at W3C</title><content type='html'>If you are like me, you try very hard to produce W3C-valid XHTML and CSS code for your WordPress blog. I validate all of my XHTML and CSS code through the W3C Markup Validator Service and do my best to make sure it passes-in the green. However, sometimes there might be good reasons for accepting an error or two.&lt;br /&gt;&lt;br /&gt;WordPress developers are very often on the leading edge in producing blogs that are both attractive and usable. In order to do this, they may knowingly use code that will not pass validation at W3C. Coding for WAI-ARIA, the Web Accessibility Initiative for Accessible Rich Internet Applications suite, is a case in point.&lt;br /&gt;&lt;br /&gt;My blog theme is based on the WordPress default, Kubrick. I elected to allow comments on my blog. Because of this, ARIA-related code in the theme's comments.php file will generate XHTML code that will produce one validation error at W3C.&lt;br /&gt;&lt;br /&gt;CSS code that anticipates future acceptance by W3C can also cause validation errors. Even so, if a browser recognizes the code, the styling will be applied; otherwise, the styling will be ignored.&lt;br /&gt;&lt;br /&gt;Here is some CSS code in my theme's default style.css file that will generate errors at W3C:&lt;br /&gt;&lt;br /&gt;.wp-caption {&lt;br /&gt;&lt;br /&gt;-moz-border-radius: 3px;&lt;br /&gt;&lt;br /&gt;-khtml-border-radius: 3px;&lt;br /&gt;&lt;br /&gt;-webkit-border-radius: 3px;&lt;br /&gt;&lt;br /&gt;border-radius: 3px;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Such CSS code in a plugin's stylesheet can also cause validation errors. Sociable, a popular WordPress plugin, is an example of this. The settings for Sociable include a check box to use, or not to use, the plugin's stylesheet. Using the plugin's stylesheet will generate CSS validation errors at W3C. If you do not elect to use the stylesheet, Sociable arranges the social-bookmark icons in a list, and this configuration does not cause the validation errors. However, you just might prefer to use the plugin's styling even if some validation errors occur at W3C.&lt;br /&gt;&lt;br /&gt;When developers endeavor to maximize both the usability and the appearance of a WordPress blog, XHTML code can sometimes be generated that will show validation errors at W3C. Some of this code will, sooner or later, become part of the standard and pass "in the green" at W3C. The "offending" CSS and PHP code that causes the errors can be removed, but to do so might degrade the appearance or usability of the blog.&lt;br /&gt;&lt;br /&gt;I hope this short article helps you to understand why it might sometimes be acceptable to ignore some W3C validation errors.&lt;br /&gt;&lt;br /&gt;Here are the links for more information about WAI-ARIA and for the W3C markup validation Service:&lt;br /&gt;&lt;br /&gt;Source : http://ezinearticles.com/?ARIA-and-CSS-Validation-Errors-at-W3C&amp;id=1826401&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-5456468355679395068?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5456468355679395068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5456468355679395068'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/08/aria-and-css-validation-errors-at-w3c.html' title='ARIA and CSS Validation Errors at W3C'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4973030500976407225</id><published>2010-07-27T06:17:00.000-07:00</published><updated>2010-07-27T06:18:51.739-07:00</updated><title type='text'>CSS - Maximum Benefits</title><content type='html'>What is CSS?&lt;br /&gt;&lt;br /&gt;CSS is a simple file which controls the visual appearance of a Web page without compromising its structure. Using CSS we can control our font size, font color, link color and many other attributes on our web page. This will make our HTML code much more readable and the page size will be reduced.&lt;br /&gt;&lt;br /&gt;Why to use it and how to use it properly&lt;br /&gt;&lt;br /&gt;If you don't use CSS on your web pages and you have many tables and content on them, chances are that your HTML file size will be quite big. Fact is that we live in a busy world, and people are not will to wait more than 5 seconds web page to load.&lt;br /&gt;&lt;br /&gt;From the other side some web developers implement the CSS on wrong way. They write their CSS in HTML code of the page, like this:&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;title&amp;gt;My Page&amp;lt;/title&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;style&amp;gt;&lt;br /&gt;&lt;br /&gt;A&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;font-family: Verdana;&lt;br /&gt;&lt;br /&gt;font-size:8pt;&lt;br /&gt;&lt;br /&gt;color:black;&lt;br /&gt;&lt;br /&gt;text-decoration:none&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&lt;br /&gt;What is wrong with this technique? Well, imagine that you have site with more than 50 pages. One day, you decide that you want to change font color and colors of the links on your site. You will have to edit ALL the pages on your site, and do to that you will need time, because you place your CSS in your web page.&lt;br /&gt;&lt;br /&gt;Better way is to save your visual attributes in separate, external CSS file, and to link that file with your page like this:&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;title&amp;gt;My Page&amp;lt;/title&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;link href="myStyle.css" rel="stylesheet" type="text/css"&amp;gt;&lt;br /&gt;&lt;br /&gt;Using this technique, you can change the look of your site within minutes, regardless of the number of pages, because your visual attributes are saved in ONE external CSS file. Edit that file, and you are done.&lt;br /&gt;&lt;br /&gt;Benefits&lt;br /&gt;&lt;br /&gt;Which are the benefits of using CSS? List is quite long and I will list here only the most important.&lt;br /&gt;&lt;br /&gt;    * Your web page will load faster&lt;br /&gt;    * Web page will become more search engine friendly&lt;br /&gt;    * You can change you site appearance within minutes&lt;br /&gt;    * You can write separate CSS file for handheld devices which will be called up instead of the regular CSS file&lt;br /&gt;    * You can forget about creating printer friendly version of your site using separate CSS file when user chooses to print the web page.&lt;br /&gt;&lt;br /&gt;Avoiding standard HTML commands like:&lt;br /&gt;&lt;br /&gt;&amp;lt;font color="#0000ff"&amp;gt;&amp;lt;font size=2&amp;gt;Product&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;&lt;br /&gt;will help us to reduce file size, but that is not the only benefit. Using CSS word product in this example will be moved more close on the top of the document. Search engine will pick up more content and less code.&lt;br /&gt;&lt;br /&gt;Imagine that you have 3 columns table on your page. When you see the code, you will notice that first come code for your table, and after that it come your content. Positioning your 3 columns using CSS instead of standard inline elements:&lt;br /&gt;&lt;br /&gt;&amp;lt;table width="90%" border="0" cellspacing="0" cellpadding="0"&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;td width="381" height="150" valign="top" bgcolor="FFEDD4"&amp;gt;&lt;br /&gt;&lt;br /&gt;My Product&lt;br /&gt;&lt;br /&gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;td height="150" valign="top" bgcolor="FFEDD4"&amp;gt;&lt;br /&gt;&lt;br /&gt;When CSS is used, your code might look like this:&lt;br /&gt;&lt;br /&gt;&amp;lt;div id="leftcontent"&amp;gt;&lt;br /&gt;&lt;br /&gt;My Product&lt;br /&gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;Again your code is much more clear, and your content is moved on the top of your document, making your HTML page search engine friendly, and reducing your file size.&lt;br /&gt;&lt;br /&gt;Content is one of the most important factors in Search Engine Optimization, and you will benefit with removing the unnecessary code in your HTML and create search engine friendly web page.&lt;br /&gt;&lt;br /&gt;Validate it&lt;br /&gt;&lt;br /&gt;Browser war is far behind us. Reality is that most of the people today use Internet Explorer, but you should try to be on safe side and ensure that your CSS code is valid. Not all browsers interpret the CSS on same way. You can validate your CSS here: http://jigsaw.w3.org/css-validator/&lt;br /&gt;&lt;br /&gt;Article Source:  http://EzineArticles.com/?expert=Zoran_Makrevski&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4973030500976407225?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4973030500976407225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4973030500976407225'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/css-maximum-benefits.html' title='CSS - Maximum Benefits'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-5815208922634599783</id><published>2010-07-23T02:40:00.000-07:00</published><updated>2010-07-23T02:41:50.541-07:00</updated><title type='text'>7 CSS Layout Tips</title><content type='html'>The most difficult thing in CSS to get right is the layout of your site. Here are a couple of tips dealing just with that. Some of these tips are not exactly new, or rocket science, but hopefully they will save someone a bit of bother somewhere!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Tip 1 : Clear out the default padding and margin settings before you start working.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Different browsers have different default margin and padding sizes so you want to start with a clean slate, so to speak. Use this command:&lt;br /&gt;&lt;br /&gt;*&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;margin: 0;&lt;br /&gt;&lt;br /&gt;padding: 0;&lt;br /&gt;&lt;br /&gt;border: 0;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;to clear all default margin and padding settings. Also note the border, which is set to 0. Please note that if you do this, you will also get rid of the pesky purple border round click-able images, although some people argue that the purple border is necessary for accessibility and usability. But lots of people do not like the purple border round images, and this is one way that you can get rid of it in one fell swoop without having to set img border=0 for each image (which is against the strict markup rules in any case).&lt;br /&gt;&lt;br /&gt;Tip 2 : To center your layout, use a container div to contain all your content&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Declare it as follows:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#container&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;margin: 0 auto;&lt;br /&gt;&lt;br /&gt;width: xxxpx;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;There are a couple of points here to take note of. DO NOT declare the width to be 100%. This defeats the whole object since you will just have to declare the sub elements within the container and then center THEM using margin : 0 auto. This is VERY BAD since it means that instead of declaring the central layout once, you will have to declare it in multiple places for each element within your container.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Tip 3: Work from the top down&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Literally start working on your CSS layout starting from the top most elements in your design, as well as the 'top' elements in your HTML, such as the body, as well as your main containers.&lt;br /&gt;&lt;br /&gt;Declare your CSS commands on the highest level possible and try and declare something once only and let it cascade throughout. Only override the commands at a lower level when strictly necessary. This prevents a verbose CSS file that is difficult to maintain and understand. For example, if you have { margin : 0 auto} settings on each and every sub div within your container - you are in trouble.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Tip 4 : Document what you are doing and use Firebug and the Firefox browser to debug&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You are not writing your CSS code just for yourself, some day some poor sod will have to debug it. Make numerous comments inside your CSS file to explain why you are doing things in a specific way.&lt;br /&gt;&lt;br /&gt;Fitting in with this, you might find yourself having to fix someone else's CSS more often than you think (or even your own, for that matter). Use the Firebug add-on for Firefox to debug your CSS. This is a life-saver with regards to giving you an insight into exactly where your design might be broken and why.&lt;br /&gt;&lt;br /&gt;The only problem with this is that your design might work perfectly in Firefox, but not in IE5, IE6 or IE7. This brings us to the next tip.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Tip 5 : Decide which browsers you are going to build your CSS for and test from the start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Some purists insist on making sure that your website work for all possible browsers, others only make it work for the 'major' browsers. How do you know exactly which browsers are used the most? Once again W3 Schools come to the rescue.&lt;br /&gt;&lt;br /&gt;On the following page, you can see which browsers are the most popular: http://www.w3schools.com/browsers/browsers_stats.asp. From this page you can see that something like IE5 is only used by about 1.1% of browsers. It is up to you whether you consider it worthwhile to build your CSS to be compatible with this browser, or whether you are just going to test your compatibility with IE6, IE7 and Firefox, for example. Whatever you do, when you start building your CSS, start from the top, and test each and every setting in each of the browsers as you go along. There is nothing worse than building a perfect website in Firefox, then finding out right after you have coded a 1000 line css file that it is broken in IE6. To then debug and fix your code after the fact is a nightmare.&lt;br /&gt;&lt;br /&gt;Tip 6 : Here is an embarrassing little tip for fixing your CSS in IE6 or IE7&lt;br /&gt;&lt;br /&gt;Let's say your design works perfectly in Firefox, but is broken in IE6. You cannot use Firebug to determine where the problem might be since it WORKS in Firefox. You do not have the luxury of using Firebug in IE6, so how do you debug an IE6 or IE7 stylesheet? I often found that it helps to add {border : 1 px solid red} or {border : 1 px solid purple} to the problematic elements. This way you can often see why certain elements do not fit into the space available. It is an embarrassing little tip since it is so primitive and simple, but it works!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Tip 7 : Understand floats&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Floating of elements is essential to understand, especially in the context of getting your floated elements to work in the different browsers!&lt;br /&gt;&lt;br /&gt;Basically elements such as divs are floated to the left or the right (never to the top or the bottom, only sideways). Here are a couple of things to take into consideration with floated elements. Each floated element must have an explicit width specified. If you are making use of floated divs to create a 3 column or a 2 column layout, rather specify the widths in terms of percentages rather than fixed widths, and if you do use percentages, make sure that the percentages do not add up to 100%, this will often cause the right most column to drop below the rest, clearly indicating that you are trying to fit something into the available space that is too wide for it. Rather use percentages that add up to slightly below 100%, such as 25%, 49%, 24% for a left column, middle column and right column.&lt;br /&gt;&lt;br /&gt;Floating elements can be extremely complex to understand and it is worth while to spend some time on good sites that provide specific guidelines and tips, such as the Position Is Everything website.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Conclusion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;These CSS tips for layout should hopefully save you some time and effort when you next have to panel-beat a table-less design into submission!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For Website Designing and Development Services&lt;br /&gt;&lt;a href="http://www.varadesigns.com/"&gt;Web Development in India&lt;/a&gt;&lt;br /&gt;eMail : varadesigns@yahoo.com&lt;br /&gt;phone : +91 9247457705&lt;br /&gt;&lt;br /&gt;Article Source:  http://EzineArticles.com/?expert=Christine_Anderssen&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-5815208922634599783?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5815208922634599783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5815208922634599783'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/7-css-layout-tips.html' title='7 CSS Layout Tips'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-278701385774088508</id><published>2010-07-23T02:39:00.000-07:00</published><updated>2010-07-23T02:40:04.373-07:00</updated><title type='text'>CSS or Tables?</title><content type='html'>&lt;span style="font-weight:bold;"&gt;What is CSS?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CSS stands for cascading style sheets. They are the new technology used to layout and style web pages.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;So what happened to old, trusty tables?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For long tables were the only tool available to the web developers to layout their web pages. But with CSS support becoming common, you now have a choice. Both have their strong and weak points, some more than others as you will soon see.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The advantages of tables.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Tables have been much longer than CSS, so even today it is easier to find someone who can do a layout in tables.&lt;br /&gt;2. Most of the WYSIWYG editors output table driven layout.&lt;br /&gt;3. CSS support can be buggy, especially in older browsers. So your web pages may display differently in different browsers.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The advantages of CSS.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Tables were never designed for layout. So you can get only limited control over layout with tables. CSS is designed for layout. With CSS you can get pixel level control.&lt;br /&gt;2. CSS decouples design from content. So it makes it easier to enforce a standard look and feel across your website.&lt;br /&gt;3. If later you want to change your sites style, it can be as easy as changing one import statement and using external CSS.&lt;br /&gt;4. With nested CSS, pages become large unnecessarily. Moreover until the whole tables is downloaded no part of it can be shown. This leads to a slow website.&lt;br /&gt;&lt;br /&gt;So give me the lowdown on this. Which one is better?&lt;br /&gt;&lt;br /&gt;With CSS support becoming common, there is no compelling reason to prefer tables. With CSS you get much more control and flexibility. So unless you are unwilling to spend time learning CSS, upgrade to CSS. Today!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For Website Designing and Development Services&lt;br /&gt;&lt;a href="http://www.varadesigns.com/"&gt;Web Development in India&lt;/a&gt;&lt;br /&gt;eMail : varadesigns@yahoo.com&lt;br /&gt;phone : +91 9247457705&lt;br /&gt;&lt;br /&gt;Article Source:  http://EzineArticles.com/?expert=Shabda_Raaj&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-278701385774088508?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/278701385774088508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/278701385774088508'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/css-or-tables.html' title='CSS or Tables?'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-5929608425984708498</id><published>2010-07-23T02:37:00.000-07:00</published><updated>2010-07-23T02:38:49.102-07:00</updated><title type='text'>Some Background on CSS</title><content type='html'>Today's World Wide Web is definitely not what it was twenty years ago. I remember one of my first experiences using the Internet in the early 1990s. A friend of mine invited me over to his house to check out a new technology his family recently set up in their home. He showed me baseball scores from a website that published sports information. When he told me that the scores were updated within the previous hour, I was amazed. I remember that there wasn't much color or style associated with the feed we were examining. Just black and white text with team names and scores.&lt;br /&gt;&lt;br /&gt;Between that time and the Web 2.0 (enhanced interaction, video, etc.) world we live in now, web pages became much more flavorful. Advanced arrangements, color, and other effects were brought into the presentation of web content to give the information visual appeal. Web pages became burdened by tags specifying font styles and color, table markup for setting up the page layout, and other tags that were not necessarily pertinent to the information being presented. Consistency in the look and feel between one web page and the next for a particular web site became difficult to maintain.&lt;br /&gt;&lt;br /&gt;The development of CSS in the late 1990's brought a welcomed improvement to the web. With CSS, the presentation tags that determine color, background images, and other aspects of a site's look and feel can be pulled out from content itself. A common example of how CSS changes the way web pages are developed uses the old HTML font tag, which was used to specify how the text enclosed within it would be presented. Here's an example. Consider a situation where you want the font for each of your paragraphs to have a particular size, color, and style. You might use the following markup to accomplish your formatting:&lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt;&amp;lt;font example text&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;Using CSS, the font tag would be unnecessary. Instead, your web document would likely access a style sheet (linked to from your page header) that formats every paragraph from a central location. With CSS in place, your paragraph would look like this instead:&lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt;Some example text...&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;The formatting of the font size, color, and face would all be done separate from the content itself. This makes it easier for search engines and web readers to see the actual content (in this case, "Some example text...") instead of having to do extra work parsing through the font tag and its attributes. CSS also reduces the amount of work by a web developer by removing the need to repetitively specify how various elements of a page should look. Although this was a simple example, consider a full page of HTML , with hundreds or even thousands of tags. The difference between CSS and the traditional HTML tag usage becomes obvious.&lt;br /&gt;&lt;br /&gt;Using CSS provides a few major benefits over the old school HTML standard, including the following:&lt;br /&gt;&lt;br /&gt;o CSS provides the ability to define styles for multiple HTML tags in a centralized location so that they don't have to be specified over and over again.&lt;br /&gt;o CSS allows for separation of content from presentation, which makes content more accessible to search engines and web page readers.&lt;br /&gt;o CSS provides more flexibillty in working with background images, form elements, and other aspects of a web page. There are many more attributes available with CSS than what could be specified with the deprecated HTML standard.&lt;br /&gt;&lt;br /&gt;With a little practice, you can become adept at using basic CSS to format your web pages. Becoming an expert with CSS then becomes an issue of accumulating experience with CSS properties and their associated values, and learning the effects of how styles can be applied to tags. You can polish your CSS skills by experimenting with using CSS to arrange and format page mockups. If you become good enough, you might even become comfortable designing from scratch using CSS.&lt;br /&gt;&lt;br /&gt;For Website Designing and Development Services&lt;br /&gt;&lt;a href="http://www.varadesigns.com/"&gt;Web Development in India&lt;/a&gt;&lt;br /&gt;eMail : varadesigns@yahoo.com&lt;br /&gt;phone : +91 9247457705&lt;br /&gt;&lt;br /&gt;Article Source:  http://EzineArticles.com/?expert=Richard_Robbins&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-5929608425984708498?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5929608425984708498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5929608425984708498'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/some-background-on-css.html' title='Some Background on CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-5794395888521710173</id><published>2010-07-23T02:36:00.000-07:00</published><updated>2010-07-23T02:37:02.631-07:00</updated><title type='text'>Search Engine Friendly Web Design - 3 Ways to Use CSS</title><content type='html'>This article will point out 3 simple and highly effective web design techniques that use cascading style sheets to improve your web design and make your website perform better in the major search engines.&lt;br /&gt;&lt;br /&gt;First of all, what is CSS? CSS stands for cascading style sheets and CSS is a way of separating presentation code from your actual content in web design. Usually you build up a set of CSS style rules that are stored in a separate file that has a .css file extension. You then link to the CSS file from your web pages using an HTML link tag.&lt;br /&gt;&lt;br /&gt;There are many, many web design advantages to separating your presentation code off into separate CSS files and this article will tell you 3 excellent ways that you can use CSS to make your web design more search engine friendly.&lt;br /&gt;&lt;br /&gt;Web Design Technique 1 - Us CSS to Structure Your Document&lt;br /&gt;&lt;br /&gt;Let's consider the facts that we know about search engines. They send their search engine robots to your site to read the content that you have there and the easier it is to find for them the better because they don't waste much time looking. So having said this, what is the point of bogging down your pages with lots of un-necessary presentation markup that could quite easily be stored off in a separate CSS file. Most often this means removed any extraneous table tags and replacing them with a smaller number of HTML div tags which can be formatted using CSS rules. This removes the vast majority of presentational markup and leaves you with nicely formatted content that the search engines can easily find and index.&lt;br /&gt;&lt;br /&gt;Web Design Technique 2 - Us CSS to Style Your Header Tags&lt;br /&gt;&lt;br /&gt;We also know that search engines place a huge amount of importance on the header tags - h1,h2,h3 e.t.c. that they find in your pages. The thing that puts most inexperienced web designers off using header tags is that by default modern browsers render them in massive black text that looks really ugly. This is where CSS comes in. CSS can be used to easily make your header tags appear in nicely formatted, attractive text that both scores well with search engines and is pleasing to the eye of the user - perfect!&lt;br /&gt;&lt;br /&gt;Web Design Technique 3 - Us CSS to Create Rollover Images&lt;br /&gt;&lt;br /&gt;Traditionally rollover images are created using 2 graphics for the on and off states that are toggled on and off using some complex JavaScript code. This JavaScript code can bloat your web pages and since it is not content and just appears as gibberish to search engines it can adversely affect your rankings to have lots of embedded JavaScript in your web pages. A much better way to accomplish the same web design effect is to use CSS. Your still need your 2 graphics but you actually create a normal text link in your (that can also have keyword targeted anchor text) and use CSS to format its appearance. This is as simple as making the link a block level element in your HTML, setting it a height and width and then defining it 2 different background images, 1 for when the link is in its 'off state' and when for when the user is hovering over the link.&lt;br /&gt;&lt;br /&gt;Conclusion:&lt;br /&gt;&lt;br /&gt;Cascading style sheets are a very powerful way of separating presentation code from your actual content and the search engine optimisation benefits the CSS will bring to your web design are undeniable. Why not put these CSS web design techniques to work on your website today?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For Website Designing and Development Services&lt;br /&gt;&lt;a href="http://www.varadesigns.com/"&gt;Web Development in India&lt;/a&gt;&lt;br /&gt;eMail : varadesigns@yahoo.com&lt;br /&gt;phone : +91 9247457705&lt;br /&gt;&lt;br /&gt;Article Source:  http://EzineArticles.com/?expert=Stuart_Mortimer&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-5794395888521710173?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5794395888521710173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5794395888521710173'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/search-engine-friendly-web-design-3_23.html' title='Search Engine Friendly Web Design - 3 Ways to Use CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-267901656731376597</id><published>2010-07-19T22:32:00.000-07:00</published><updated>2010-09-23T22:34:36.032-07:00</updated><title type='text'>All About Floats</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-267901656731376597?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/267901656731376597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/267901656731376597'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/all-about-floats.html' title='All About Floats'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-2189160116592122911</id><published>2010-07-19T05:28:00.000-07:00</published><updated>2010-07-19T05:29:16.934-07:00</updated><title type='text'>The Best Reasons For Using CSS Layouts</title><content type='html'>In the culture of modern web design, Cascading Style Sheet or CSS has become a popular tool and trend nowadays. With the development of numerous, fast and modern web design applications, the use of tables were no longer effective and efficient as it used to be. Today, CSS is found by most web designers as more effective, efficient and acceptable in their growing industry of web design. Such advantages are as follows:&lt;br /&gt;&lt;br /&gt;• Consistency - With effective use of the "inheritance and cascading" features of CSS, a global style sheet can be used to affect style elements site-wide. If the situation arises that the styling of the elements should need to be changed or adjusted, these changes can be made easily, simply by editing a few rules in the global style sheet.&lt;br /&gt;&lt;br /&gt;• Accessibility - Most of CSS features are accessible to many websites accessibility standards in different countries and industries of the world like the government. It is also accessible to JavaScript which most websites use.&lt;br /&gt;&lt;br /&gt;• Reformatting Friendly - At CSS, a simple change of one line and a different style sheet can be used for the same page. This helps and provides the user the option to tailor a page or site to different target devices. Also, devices not able to understand the styling will still display the content.&lt;br /&gt;&lt;br /&gt;• Flexibility - CSS is so flexible that combining it with the functionality of Content Management System (CMS), you can program it into content submission forms. Hence, the contributor is able to select and submit in the same form the layout of an article or page he is submitting, though he is not familiar with or able to edit CSS or HTML codes.&lt;br /&gt;&lt;br /&gt;• Enhancement Friendly - With a clean CSS-layout, it's easier to optimize your website for mobile device such as iPhone; and in creating animation and effects, say with flash.&lt;br /&gt;&lt;br /&gt;• Printer Friendly - With the CSS media type "print", users can specify a style sheet that is only used when printing. This can be very useful and allows for neatly styled printouts that hide non-essential parts of the page and only contain the main content.&lt;br /&gt;&lt;br /&gt;• Modem Speed - In CSS, style sheets are used on multiple pages without being reloaded because they are usually stored in the browser cache. Therefore, the download speeds are increased and the data transfer over network is reduced.&lt;br /&gt;&lt;br /&gt;• SEO Friendly - CSS makes your website SEO friendly, thus boosts your search page ranking. Since search engines do not go through the bundles of HTML codes to get to the indexed codes, if you use external CSS files to design and determine the design attributes; the HTML code will be clean and it will result to better search engine rankings. In CSS, you could easily make the main content of your site to show up above the header or navigation menu in the code of your website; thus will help to show search engine crawlers the importance of your content. Because modern search engines such as Google, Yahoo and MSN love light-weighted websites. They want to see your content; the text, not the code. With CSS you practically externalize excessive code into external file, thus leaving the actual page clean and simple.&lt;br /&gt;&lt;br /&gt;Though the use of pure CSS alone meets a number of difficulties and drawbacks, yet it offers more than any other framework in the market today. Which framework you choose is really a personal decision. Different frameworks are better for different types of web designs, and for different designers. CSS being: SEO-reformatting-enhancement friendly; fast-loader, accessible, usable, flexible and consistent, can definitely give a boost to your business inwardly and outwardly.&lt;br /&gt;&lt;br /&gt;For your virtual assistant/outsourcing services needs in web design and management, visit us online at http://www.remoteworkmate.com/web-design-virtual-assistant/.&lt;br /&gt;&lt;br /&gt;Article Source:  http://EzineArticles.com/?expert=Carla_Ramos_Loteria&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-2189160116592122911?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2189160116592122911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2189160116592122911'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/best-reasons-for-using-css-layouts.html' title='The Best Reasons For Using CSS Layouts'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-5610396602823578634</id><published>2010-07-15T00:38:00.000-07:00</published><updated>2010-07-15T00:39:49.238-07:00</updated><title type='text'>CSS Interview Questions and Answers</title><content type='html'>&lt;span style="font-weight:bold;"&gt;How do I place text over an image?&lt;/span&gt;&lt;br /&gt;To place text or image over an image you use the position property. The below exemple is supported by IE 4.0. All you have to do is adapt the units to your need.&lt;br /&gt;&lt;br /&gt;&amp;lt;div style="position: relative; width: 200px; height: 100px"&amp;gt;&lt;br /&gt;&amp;lt;div style="position: absolute; top: 0; left: 0; width: 200px"&amp;gt;&lt;br /&gt;&amp;lt;image&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div style="position: absolute; top: 20%; left: 20%; width: 200px"&amp;gt;&lt;br /&gt;Text that nicely wraps&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;what CSS is, why not start coding?&lt;/span&gt;&lt;br /&gt;CSS is sort of like scripting language made for the web. In contrary with HTML, DHTML, JavaScript, VBScript and many others. CSS is strictly for formatting your web-page and now many new browser support it. (NOTE: Older browser do not support CSS, so please check your browser version and make sure whether it supports it or not. You may have to update your current Browser.)&lt;br /&gt;&lt;br /&gt;The way the code goes into your Web-page is through a variety of ways. The way CSS works is that is the code is set between the&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt; tags. You can put the CSS code after &amp;lt;/title&amp;gt; which is what most people do. Now, here are the following ways of making your webpage with CSS enabled features:&lt;br /&gt;&lt;br /&gt;1.) Writing your CSS code within your HTML source code. This is how it would look like:&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;My First CSS!&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;!-- Now begin the CSS coding! --&amp;gt;&lt;br /&gt;&amp;lt;STYLE TYPE = "text/css"&amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;body {&lt;br /&gt;background-color: #eeeee;&lt;br /&gt;}&lt;br /&gt;p {&lt;br /&gt;text-align: left;&lt;br /&gt;color: black;&lt;br /&gt;font: Verdana;&lt;br /&gt;font-size: 80%;&lt;br /&gt;}&lt;br /&gt;a {&lt;br /&gt;text-decoration: none;&lt;br /&gt;color: black;&lt;br /&gt;font-weight: bold;&lt;br /&gt;}&lt;br /&gt;a:hover {&lt;br /&gt;text-decoration: underline;&lt;br /&gt;color: red;&lt;br /&gt;font-weight: bold;&lt;br /&gt;}&lt;br /&gt;--&amp;gt;&lt;br /&gt;&amp;lt;/STYLE&amp;gt;&lt;br /&gt;&amp;lt;!-- End CSS code --&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;br /&gt;2.) Linking to your CSS file. This tells the webpage to find the .css file and use it as the CSS code. Here is the code that would allow you to do:&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;CSS&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;link href="style.css" rel="stylesheet" type="text/css" /&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&amp;lt;body /&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;br /&gt;As you can see from the code above, the &amp;lt;link&amp;gt; tag is pretty helpful. What it does is that it links to the style.css file which has all the css code. Just like embedding an image throught he &amp;lt;img&amp;gt; tag.&lt;br /&gt;&lt;br /&gt;Now to explain a bit from the first example. CSS code isn't very hard to understand.Take for example the body { ..} part. What it does is that it formats how the &amp;lt;body&amp;gt; tag in HTML would work. That is a very simple way of formatting the body tag with the CSS. To help you understand better, here is a simple syntax for CSS:&lt;br /&gt;&lt;br /&gt;selector { property1: value1; property2: value2;}&lt;br /&gt;&lt;br /&gt;The "selector" sort of relates to the html tags used for outputting etc...&lt;br /&gt;&lt;br /&gt;We all know that &amp;lt;a&amp;gt; is a tag used for links. You will see in the example about a:hover and a itself. &amp;lt;br&amp;gt;What a does it just sets the characteristics of the format. You can set how you want a link to appear using the font size, weight etc..&lt;br /&gt;&lt;br /&gt;Then comes the "a:hover". What does is also pretty self explanatory. It acts on when a person moves the mouse cursor over the links.&lt;br /&gt;&lt;br /&gt;ADVANCED CSS FEATURES:&lt;br /&gt;&lt;br /&gt;CSS can be even used to change the appearance of the scroll bar at your right side. Unfortunately, that only works with IE. You have to be using IE in order for this to work. Here is how to change some appearances of your scroll bar:&lt;br /&gt;&lt;br /&gt;The CSS statements for doing this are:&lt;br /&gt;1) scrollbar-3dlight-color&lt;br /&gt;2)scrollbar-arrow-color&lt;br /&gt;3) scrollbar-base-color&lt;br /&gt;4) scrollbar-dark shadow-color&lt;br /&gt;5) scrollbar-face-color&lt;br /&gt;6) scrollbar-highlight-color&lt;br /&gt;7) scrollbar-shadow-color&lt;br /&gt;8) scrollbar-track-color&lt;br /&gt;&lt;br /&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;BODY {&lt;br /&gt;scrollbar-arrow-color: green;&lt;br /&gt;scrollbar-face-color: #FFFFFF;&lt;br /&gt;scrollbar-track-color: rgb(12,35,244);&lt;br /&gt;}&lt;br /&gt;// --&amp;gt;&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&lt;br /&gt;How to customize your textboxes.&lt;br /&gt;Here is the code on how to do it:&lt;br /&gt;&lt;br /&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;BODY {&lt;br /&gt;scrollbar-arrow-color: green;&lt;br /&gt;scrollbar-face-color: #FFFFFF;&lt;br /&gt;scrollbar-track-color: rgb(12,35,244);&lt;br /&gt;}&lt;br /&gt;TEXTAREA {&lt;br /&gt;scrollbar-arrow-color: green;&lt;br /&gt;scrollbar-face-color: #FFFFFF;&lt;br /&gt;scrollbar-track-color: rgb(12,35,244);&lt;br /&gt;}&lt;br /&gt;// --&amp;gt;&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&lt;br /&gt;That above code, has some similarities. The textbox area is treated with the same function statements as for the scrollbar. The scrollbar statements goes in the BODY selector.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Why does my content shift to the left on some pages (in FF)?&lt;/span&gt;&lt;br /&gt;That'll be the pages with more content? The ones that have a vertical scrollbar? If you look in IE there's probably a white space on the right where there would be a scrollbar if there were enough content to require one. In Firefox, the scrollbar appears when it's needed and the viewport becomes about 20px smaller, so the content seems to shift to the left when you move from a page with little content to one with lots of content. It's not a bug or something that needs to be fixed, but it does confuse and irritate some developers.&lt;br /&gt;&lt;br /&gt;If, for some reason, you'd like Firefox to always have scrollbars - whether they're needed or not - you can do this :&lt;br /&gt;&lt;br /&gt;CSS html {&lt;br /&gt;height:100.1%;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Source : http://www.techpreparation.com/computer-interview-questions/css-interview-questions-answers4.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-5610396602823578634?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5610396602823578634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5610396602823578634'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/css-interview-questions-and-answers_15.html' title='CSS Interview Questions and Answers'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-3240420101039265779</id><published>2010-07-14T03:17:00.000-07:00</published><updated>2010-07-14T03:19:55.648-07:00</updated><title type='text'>CSS Interview Questions and Answers</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Why do style sheets exist?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SGML (of which HTML is a derivative) was meant to be a device-independent method for conveying a document's structural and semantic content (its meaning.) It was never meant to convey physical formatting information. HTML has crossed this line and now contains many elements and attributes which specify visual style and formatting information. One of the main reasons for style sheets is to stop the creation of new HTML physical formatting constructs and once again separate style information from document content.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;What are the advantages/disadvantages of the various style methods?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;External Style Sheets&lt;br /&gt;Advantages&lt;br /&gt;&lt;br /&gt;* Can control styles for multiple documents at once&lt;br /&gt;* Classes can be created for use on multiple HTML element types in many documents&lt;br /&gt;* Selector and grouping methods can be used to apply styles under complex contexts&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Disadvantages&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* An extra download is required to import style information for each document&lt;br /&gt;* The rendering of the document may be delayed until the external style sheet is loaded&lt;br /&gt;* Becomes slightly unwieldy for small quantities of style definitions&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Embedded Style Sheets&lt;/span&gt;&lt;br /&gt;Advantages&lt;br /&gt;&lt;br /&gt;* Classes can be created for use on multiple tag types in the document&lt;br /&gt;* Selector and grouping methods can be used to apply styles under complex contexts&lt;br /&gt;* No additional downloads necessary to receive style information&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Disadvantages&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* This method can not control styles for multiple documents at once&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Inline Styles&lt;/span&gt;&lt;br /&gt;Advantages&lt;br /&gt;&lt;br /&gt;* Useful for small quantities of style definitions&lt;br /&gt;* Can override other style specification methods at the local level so only exceptions need to be listed in conjunction with other style methods&lt;br /&gt;&lt;br /&gt;Disadvantages&lt;br /&gt;&lt;br /&gt;* Does not distance style information from content (a main goal of SGML/HTML)&lt;br /&gt;* Can not control styles for multiple documents at once&lt;br /&gt;* Author can not create or control classes of elements to control multiple element types within the document&lt;br /&gt;* Selector grouping methods can not be used to create complex element addressing scenarios&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is inline style? How to link?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Inline style is the style attached to one specific element. The style is specified directly in the start tag as a value of the STYLE attribute and will apply exclusively to this specific element occurrence.&lt;br /&gt;&lt;br /&gt;&amp;lt;P STYLE="text-indent: 10pt"&amp;gt;Indented paragraph&amp;lt;/P&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is imported Style Sheet? How to link?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Imported Style Sheet is a sheet that can be imported to (combined with) another sheet. This allows creating one main sheet containing declarations that apply to the whole site and partial sheets containing declarations that apply to specific elements (or documents) that may require additional styling. By importing partial sheets to the main sheet a number of sources can be combined into one.&lt;br /&gt;To import a style sheet or style sheets include the @import notation or notations in the STYLE element. The @import notations must come before any other declaration. If more than one sheet is imported they will cascade in order they are imported - the last imported sheet will override the next last; the next last will override the second last, and so on. If the imported style is in conflict with the rules declared in the main sheet then it will be overridden.&lt;br /&gt;&lt;br /&gt;&amp;lt;LINK REL=STYLESHEET HREF="main.css" TYPE="text/css"&amp;gt;&lt;br /&gt;&amp;lt;STYLE TYPE="text=css"&amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;@import url(http://www.and.so.on.partial1.css);&lt;br /&gt;@import url(http://www.and.so.on.partial2.css);&lt;br /&gt;.... other statements&lt;br /&gt;--&amp;gt;&lt;br /&gt;&amp;lt;/STYLE&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is a Style Sheet?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Style sheets are the way that standards-compliant Web designers define the layout, look-and-feel, and design of their pages. They are called Cascading Style Sheets or CSS. With style sheets, a designer can define many aspects of a Web page:&lt;br /&gt;&lt;br /&gt;* fonts&lt;br /&gt;* colors&lt;br /&gt;* layout&lt;br /&gt;* positioning&lt;br /&gt;* imagery&lt;br /&gt;* accessibility&lt;br /&gt;&lt;br /&gt;Style sheets give you a lot of power to define how your pages will look. And another great thing about them is that style sheets make it really easy to update your pages when you want to make a new design. Simply load in a new style sheet onto your pages and you're done.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is alternate Style Sheet? How to link?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Alternate Style Sheet is a sheet defining an alternate style to be used in place of style(s) declared as persistent and/or preferred .&lt;br /&gt;Persistent style is a default style that applies when style sheets are enabled but can disabled in favor of an alternate style, e.g.:&lt;br /&gt;&lt;br /&gt;&amp;lt;LINK REL=Stylesheet HREF="style.css" TYPE="text/css"&amp;gt;&lt;br /&gt;&lt;br /&gt;Preferred style is a default style that applies automatically and is declared by setting the TITLE attribute to the LINK element. There can only be one preferred style, e.g.:&lt;br /&gt;&lt;br /&gt;&amp;lt;LINK REL=Stylesheet HREF="style2.css" TYPE="text/css" TITLE="appropriate style description"&amp;gt;&lt;br /&gt;&lt;br /&gt;Alternate style gives an user the choice of selecting an alternative style - a very convenient way of specifying a media dependent style. Note: Each group of alternate styles must have unique TITLE, e.g.:&lt;br /&gt;&lt;br /&gt;&amp;lt;LINK REL="Alternate Stylesheet" HREF="style3.css" TYPE="text/css" TITLE="appropriate style description" MEDIA=screen&amp;gt;&lt;br /&gt;&amp;lt;LINK REL="Alternate Stylesheet" HREF="style4.css" TYPE="text/css" TITLE="appropriate style description" MEDIA=print&amp;gt;&lt;br /&gt;&lt;br /&gt;Alternate stylesheet are not yet supported.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How can you set a minimum width for IE?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To set a minimum width, the CSS property is 'min-width'. This can be very useful and works well in good browsers. IE doesn't understand 'min-width'. However, it has a proprietary property called 'expression' which allows us to feed it javascript via a stylesheet. Below is how to set a (780px) minimum width for IE...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!--[if gte IE 5]&amp;gt; &amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;body {&lt;br /&gt;width:expression(documentElement.clientWidth &amp;lt; 780 ? (documentElement.clientWidth == 0 ? (body.clientWidth &amp;lt; 780 ? "780px" : "auto") : "780px") : "auto" );&lt;br /&gt;}&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&amp;lt;![endif]--&amp;gt;&lt;br /&gt;&lt;br /&gt;As the property is non-standard, it won't validate with the W3C validator, so if we put it in the head like this (above) - in an IE conditional comment - the validator will ignore it and the page will get a clean bill of health.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Which browsers support CSS?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It depends on your definition of "support." If you are interested in those browsers which makes some attempt at supporting CSS, no matter how partial or bug-ridden, then the list is:&lt;br /&gt;&lt;br /&gt;* Internet Explorer 3.0 and above&lt;br /&gt;* Navigator 4.0 and above&lt;br /&gt;* Opera 3.6 and above&lt;br /&gt;* Konqueror&lt;br /&gt;* Arena&lt;br /&gt;* Emacs-w3&lt;br /&gt;* Amaya&lt;br /&gt;* Lexicon&lt;br /&gt;* XPublish by Media Design in·Progress&lt;br /&gt;&lt;br /&gt;If instead you're interested in those browsers which are known to do a credible job of bug-free and mostly completel support for CSS1, then the list narrows somewhat dramatically:&lt;br /&gt;&lt;br /&gt;* Internet Explorer 5.0 for Macintosh and above&lt;br /&gt;* Internet Exporer 5.5 for Windows and above&lt;br /&gt;* Netscape Navigator 6.0 and above&lt;br /&gt;* Opera 4.0 and above&lt;br /&gt;&lt;br /&gt;While none of these browser can be claimed to have a perfect implementation of CSS1, they are all quite good and can be relied upon to operate in a consistent fashion for most of CSS1.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-3240420101039265779?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3240420101039265779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3240420101039265779'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/css-interview-questions-and-answers_14.html' title='CSS Interview Questions and Answers'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-5434041890642590512</id><published>2010-07-13T01:52:00.000-07:00</published><updated>2010-07-13T02:06:47.671-07:00</updated><title type='text'>CSS Interview Questions and Answers</title><content type='html'>&lt;span style="font-weight:bold;"&gt;What is CSS?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. Every element type as well as every occurrence of a specific element within that type can be declared an unique style, e.g. margins, positioning, color or size.&lt;br /&gt;&lt;br /&gt;2. CSS is a web standard that describes style for XML/HTML documents.&lt;br /&gt;&lt;br /&gt;3. CSS is a language that adds style (colors, images, borders, margins…) to your site. It’s really that simple. CSS is not used to put any content on your site, it’s just there to take the content you have and make it pretty. First thing you do is link a CSS-file to your HTML document. Do this by adding this line:&lt;br /&gt;&lt;br /&gt;&amp;lt;link rel="stylesheet" href="style.css" type="text/css"&amp;gt;&lt;br /&gt;&lt;br /&gt;The line should be placed in between your &amp;lt;head&amp;gt; and &amp;lt;/head&amp;gt; tags. If you have several pages you could add the exact same line to all of them and they will all use the same stylesheet, but more about that later. Let’s look inside the file “style.css” we just linked to.&lt;br /&gt;&lt;br /&gt;h1 {&lt;br /&gt;font-size: 40px;&lt;br /&gt;height: 200px;&lt;br /&gt;}&lt;br /&gt;.warning {&lt;br /&gt;color: Red;&lt;br /&gt;font-weight: bold;&lt;br /&gt;}&lt;br /&gt;#footer {&lt;br /&gt;background-color: Gray;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;4. Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents. This is also where information meets the artistic abilities of a web-designer. CSS helps you spice up your web-page and make it look neat in wide variety of aspects.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What are Cascading Style Sheets?&lt;/span&gt;&lt;br /&gt;A Cascading Style Sheet (CSS) is a list of statements (also known as rules) that can assign various rendering properties to HTML elements. Style rules can be specified for a single element occurrence, multiple elements, an entire document, or even multiple documents at once. It is possible to specify many different rules for an element in different locations using different methods. All these rules are collected and merged (known as a "cascading" of styles) when the document is rendered to form a single style rule for each element. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How do I center block-elements with CSS1?&lt;/span&gt;&lt;br /&gt;There are two ways of centering block level elements:&lt;br /&gt;&lt;br /&gt;1. By setting the properties margin-left and margin-right to auto and width to some explicit value:&lt;br /&gt;&lt;br /&gt;BODY {width: 30em; background: cyan;}&lt;br /&gt;P {width: 22em; margin-left: auto; margin-right: auto}&lt;br /&gt;&lt;br /&gt;In this case, the left and right margins will each be four ems wide, since they equally split up the eight ems left over from (30em - 22em). Note that it was not necessary to set an explicit width for the BODY element; it was done here to keep the math clean.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Another example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;TABLE {margin-left: auto; margin-right: auto; width: 400px;}&lt;br /&gt;In most legacy browsers, a table's width is by default determined by its content. In CSS-conformant browsers, the complete width of any element (including tables) defaults to the full width of its parent element's content area. As browser become more conformant, authors will need to be aware of the potential impact on their designs.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;If background and color should always be set together, why do they exist as separate properties?&lt;/span&gt;&lt;br /&gt;There are several reasons for this. First, style sheets become more legible -- both for humans and machines. The background property is already the most complex property in CSS1 and combining it with color would make it even more complex. Second, color inherits, but background doesn't and this would be a source of confusion. &lt;br /&gt;&lt;br /&gt;What is class?&lt;br /&gt;Class is a group of 1) instances of the same element to which an unique style can be attached or 2) instances of different elements to which the same style can be attached.&lt;br /&gt;&lt;br /&gt;1) The rule P {color: red} will display red text in all paragraphs. By classifying the selector P different style can be attached to each class allowing the display of some paragraphs in one style and some other paragraphs in another style.&lt;br /&gt;2) A class can also be specified without associating a specific element to it and then attached to any element which is to be styled in accordance with it's declaration. All elements to which a specific class is attached will have the same style.&lt;br /&gt;&lt;br /&gt;To classify an element add a period to the selector followed by an unique name. The name can contain characters a-z, A-Z, digits 0-9, period, hyphen, escaped characters, Unicode characters 161-255, as well as any Unicode character as a numeric code, however, they cannot start with a dash or a digit. (Note: in HTML the value of the CLASS attribute can contain more characters). (Note: text between /* and */ are my comments).&lt;br /&gt;&lt;br /&gt;CSS&lt;br /&gt;P.name1 {color: red} /* one class of P selector */&lt;br /&gt;P.name2 {color: blue} /* another class of P selector */&lt;br /&gt;.name3 {color: green} /* can be attached to any element */&lt;br /&gt;&lt;br /&gt;HTML&lt;br /&gt;&amp;lt;P class=name1&amp;gt;This paragraph will be red&amp;lt;/P&amp;gt;&lt;br /&gt;&amp;lt;P class=name2&amp;gt;This paragraph will be blue&amp;lt;/P&amp;gt;&lt;br /&gt;&amp;lt;P class=name3&amp;gt;This paragraph will be green&amp;lt;/P&amp;gt;&lt;br /&gt;&amp;lt;LI class=name3&amp;gt;This list item will be green&amp;lt;/LI&amp;gt;&lt;br /&gt;&lt;br /&gt;It is a good practice to name classes according to their function than their appearance; e.g. P.fotnote and not P.green. In CSS1 only one class can be attached to a selector. CSS2 allows attaching more classes, e.g.:&lt;br /&gt;P.name1.name2.name3 {declaration} &amp;lt;P class="name1 name2 name2"&amp;gt;This paragraph has three classes attached&amp;lt;/P&amp;gt;&lt;br /&gt;&lt;br /&gt;What is grouping ?&lt;br /&gt;Grouping is gathering (1) into a comma separated list two or more selectors that share the same style or (2) into a semicolon separated list two or more declarations that are attached to the same selector (2).&lt;br /&gt;&lt;br /&gt;1. The selectors LI, P with class name .first and class .footnote share the same style, e.g.:&lt;br /&gt;LI {font-style: italic}&lt;br /&gt;P.first {font-style: italic}&lt;br /&gt;.footnote {font-style: italic}&lt;br /&gt;&lt;br /&gt;To reduce the size of style sheets and also save some typing time they can all be grouped in one list.&lt;br /&gt;LI, P.first, .footnote {font-style: italic}&lt;br /&gt;&lt;br /&gt;2. The declarations {font-style: italic} and {color: red} can be attached to one selector, e.g.:&lt;br /&gt;H2 {font-style: italic}&lt;br /&gt;H2 {color: red}&lt;br /&gt;and can also be grouped into one list:&lt;br /&gt;H2 {font-style: italic; color: red}&lt;br /&gt;&lt;br /&gt;What is external Style Sheet? How to link?&lt;br /&gt;External Style Sheet is a template/document/file containing style information which can be linked with any number of HTML documents. This is a very convenient way of formatting the entire site as well as restyling it by editing just one file. The file is linked with HTML documents via the LINK element inside the HEAD element. Files containing style information must have extension .css, e.g. style.css. &amp;lt;HEAD&amp;gt; &amp;lt;LINK REL=STYLESHEET HREF="style.css" TYPE="text/css"&amp;gt; &amp;lt;/HEAD&amp;gt;&lt;br /&gt;&lt;br /&gt;Is CSS case sensitive?&lt;br /&gt;Cascading Style Sheets (CSS) is not case sensitive. However, font families, URLs to images, and other direct references with the style sheet may be.&lt;br /&gt;The trick is that if you write a document using an XML declaration and an XHTML doctype, then the CSS class names will be case sensitive for some browsers.&lt;br /&gt;&lt;br /&gt;It is a good idea to avoid naming classes where the only difference is the case, for example:&lt;br /&gt;&lt;br /&gt;div.myclass { ...}&lt;br /&gt;div.myClass { ... }&lt;br /&gt;&lt;br /&gt;If the DOCTYPE or XML declaration is ever removed from your pages, even by mistake, the last instance of the style will be used, regardless of case.&lt;br /&gt;&lt;br /&gt;Three selectors: h1, .warning and #footer, what they do ?&lt;br /&gt;An element points at a HTML-tag somewhere on your page. In the example above we want to style the &amp;lt;h1&amp;gt;-tag. Note that using an element like that affects all tags with that name, so using p { margin-left: 100px; } gives all &amp;lt;p&amp;gt;-tags a left-margin.&lt;br /&gt;Using a class is just as simple. When writing .your_class you style all tags with a class with the name “your_class”. In the example above we have .warning which will style e.g. &amp;lt;div class="warning"&amp;gt; and &amp;lt;em class="warning"&amp;gt;, that is, any element with the class warning. Classes are used when you want to style just a few of your tags in a way, perhaps you want some of your links red? Add a class to all those links.&lt;br /&gt;You need one more building block: the id. This time you style an element with the attribute “id” set to the id you have chosen. Ids work exactly like classes except for one thing; you can only have one id with a certain name in each of your HTML documents. In the example above we style &amp;lt;div id="footer"&amp;gt;. If you look at the example it does make sense: a HTML document may contain several warnings but only one footer. Ids should be used when you want to style just one specific tag.&lt;br /&gt;Using those three building blocks will take you far but when you get to more advanced layouts you might want to combine the building blocks into more advanced selectors. Just to give you two examples of what you can do: em.warning to style only those &amp;lt;em&amp;gt;-tags with the class .warning set. You can also use #footer a to style only the links that are nested inside the tag with id “footer.&lt;br /&gt;Each of the selectors has a set of declarations tied to them. Each declaration has a property, describing what we want to change and a value, what we should change it to. An example: a { color: Blue; font-size: 3em; }. You have the selector a there, so all links in your document will be styled. We have two declarations: color: Blue and font-size: 3em;. Lastly each declaration consists of two parts: the property color and the value Blue.&lt;br /&gt;there is a LOT of things you can style and play with. Additionally (close to) all tags are equal in CSS, so you can set e.g. borders and colors of any element just like you could with a table if you used only HTML.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What are Style Sheets?&lt;/span&gt;&lt;br /&gt;Style Sheets are templates, very similar to templates in desktop publishing applications, containing a collection of rules declared to various selectors (elements).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is CSS rule 'ruleset'?&lt;/span&gt;&lt;br /&gt;There are two types of CSS rules: ruleset and at-rule. Ruleset identifies selector or selectors and declares style which is to be attached to that selector or selectors. For example P {text-indent: 10pt} is a CSS rule. CSS rulesets consist of two parts: selector, e.g. P and declaration, e.g. {text-indent: 10pt}.&lt;br /&gt;&lt;br /&gt;P {text-indent: 10pt} - CSS rule (ruleset)&lt;br /&gt;{text-indent: 10pt} - CSS declaration&lt;br /&gt;text-indent - CSS property&lt;br /&gt;10pt - CSS value&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;'Fixed' Background?&lt;/span&gt;&lt;br /&gt;There is the possibility to use the HTML tag bgproperties="fixed", but that is IE proprietary, and dependent upon the 'background' attribute (deprecated in HTML4).&lt;br /&gt;&lt;br /&gt;With CSS, you can declare the background like:&lt;br /&gt;&lt;br /&gt;BODY {&lt;br /&gt;font-family : "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;&lt;br /&gt;background-image: url(images/yourimage.gif);&lt;br /&gt;background-repeat: no-repeat; /*no-tiling background*/&lt;br /&gt;background-position: center;&lt;br /&gt;background-attachment: fixed;&lt;br /&gt;background-color: #hexcolor;&lt;br /&gt;color : #hexcolor;&lt;br /&gt;margin: 10px;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;that shows a background-image in the center of the &amp;lt;BODY&amp;gt; element, non-scrolling and non-repeating - in IE or NN6. NN 4.xx gets the non-repeat-part right, but stuffs the picture in the upper left corner and scrolls ...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is embedded style? How to link?&lt;/span&gt;&lt;br /&gt;Embedded style is the style attached to one specific document. The style information is specified as a content of the STYLE element inside the HEAD element and will apply to the entire document.&lt;br /&gt;&lt;br /&gt;&amp;lt;HEAD&amp;gt;&lt;br /&gt;&amp;lt;STYLE TYPE="text/css"&amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;P {text-indent: 10pt}&lt;br /&gt;--&amp;gt;&lt;br /&gt;&amp;lt;/STYLE&amp;gt;&lt;br /&gt;&amp;lt;/HEAD&amp;gt;&lt;br /&gt;&lt;br /&gt;Note: The styling rules are written as a HTML comment, that is, between &amp;lt;!-- and --&amp;gt; to hide the content in browsers without CSS support which would otherwise be displayed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is ID selector?&lt;/span&gt;&lt;br /&gt;ID selector is an individually identified (named) selector to which a specific style is declared. Using the ID attribute the declared style can then be associated with one and only one HTML element per document as to differentiate it from all other elements. ID selectors are created by a character # followed by the selector's name. The name can contain characters a-z, A-Z, digits 0-9, period, hyphen, escaped characters, Unicode characters 161-255, as well as any Unicode character as a numeric code, however, they cannot start with a dash or a digit.&lt;br /&gt;&lt;br /&gt;#abc123 {color: red; background: black}&lt;br /&gt;&lt;br /&gt;&amp;lt;P ID=abc123&amp;gt;This and only this element can be identified as abc123 &amp;lt;/P&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is contextual selector?&lt;/span&gt;&lt;br /&gt;Contextual selector is a selector that addresses specific occurrence of an element. It is a string of individual selectors separated by white space, a search pattern, where only the last element in the pattern is addressed providing it matches the specified context.&lt;br /&gt;&lt;br /&gt;TD P CODE {color: red}&lt;br /&gt;&lt;br /&gt;The element CODE will be displayed in red but only if it occurs in the context of the element P which must occur in the context of the element TD.&lt;br /&gt;&lt;br /&gt;TD P CODE, H1 EM {color: red}&lt;br /&gt;&lt;br /&gt;The element CODE will be displayed in red as described above AND the element EM will also be red but only if it occurs in the context of H1&lt;br /&gt;&lt;br /&gt;P .footnote {color: red}&lt;br /&gt;&lt;br /&gt;Any element with CLASS footnote will be red but only if it occurs in the context of P&lt;br /&gt;&lt;br /&gt;P .footnote [lang]{color: red}&lt;br /&gt;&lt;br /&gt;Any element with attribute LANG will be red but only if it is classed as "footnote" and occurs in the context of P&lt;br /&gt;&lt;br /&gt;How do I have a background image that isn't tiled?&lt;br /&gt;Specify the background-repeat property as no-repeat. You can also use the background property as a shortcut for specifying multiple background-* properties at once. Here's an example:&lt;br /&gt;&lt;br /&gt;BODY {background: #FFF url(watermark.jpg) no-repeat;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What does \ABCD (and \ABCDE) mean?&lt;/span&gt;&lt;br /&gt;CSS allows Unicode characters to be entered by number. For example, if a CLASS value in some Russian document contains Cyrillic letters EL PE (Unicode numbers 041B and 041F) and you want to write a style rule for that class, you can put that letter into the style sheet by writing:&lt;br /&gt;&lt;br /&gt;.\041B\041F {font-style: italic;}&lt;br /&gt;This works on all keyboards, so you don't need a Cyrillic keyboard to write CLASS names in Russian or another language that uses that script.&lt;br /&gt;&lt;br /&gt;The digits and letters after the backslash (\) are a hexadecimal number. Hexadecimal numbers are made from ordinary digits and the letters A to F (or a to f). Unicode numbers consist of four such digits.&lt;br /&gt;&lt;br /&gt;If the number starts with a 0, you may omit it. The above could also be written as:&lt;br /&gt;&lt;br /&gt;.\41B\41F {font-style: italic;}&lt;br /&gt;But be careful if the next letter after the three digits is also a digit or a letter a to f! This is OK: .\41B-\41F, since the dash (-) cannot be mistaken for a hexadecimal digit, but .\41B9\41F is only two letters, not three.&lt;br /&gt;&lt;br /&gt;Four digits is the maximum, however, so if you write:&lt;br /&gt;.\041B9\041F {font-style: italic;}&lt;br /&gt;&lt;br /&gt;Source : http://www.techpreparation.com/css-interview-questions-answers1.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-5434041890642590512?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5434041890642590512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5434041890642590512'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/css-interview-questions-and-answers.html' title='CSS Interview Questions and Answers'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4754676509548887444</id><published>2010-07-11T01:20:00.000-07:00</published><updated>2010-07-11T01:21:19.696-07:00</updated><title type='text'>How to Create and Validate Your Own HTML and CSS</title><content type='html'>When I write an article--or any web page, for that matter--I like to begin with basic HTML, XHTML, and CSS documents I know contain valid code. After reading this tutorial, you will be able to use this approach, too.&lt;br /&gt;&lt;br /&gt;There are two types of basic, standards-based documents that I use to write web pages. The first has a Document Type Definition(DTD) of XHTML 1.0 Transitional, just like WordPress uses. The second is a basic HTML document with a Document Type Definition(DTD) of HTML 4.01 Transitional. These definitions tell the browser which specification the document uses. For example, the DTD would be used to tell a browser if the document was HTML or XHTML. The DTD is the first line of code in a web page.&lt;br /&gt;&lt;br /&gt;The syntax rules for HTML and XHTML are different in some ways. You must use the correct syntax for the DTD you use or your code will not pass at W3C.This is so even though the browser you use might display your page as expected: browsers are very forgiving with respect to non-standard code.&lt;br /&gt;&lt;br /&gt;For the content on my web site, I use the HTML 4.01 Transitional DTD because I am comfortable with its syntax.&lt;br /&gt;&lt;br /&gt;The best way to insure that you are starting with a standards-based web page is to first copy a known good skeletal web page and paste it into a basic text editor. Next, save the code as a text file with the ".txt" extension. You could name the file, my-html-template.txt.&lt;br /&gt;&lt;br /&gt;You can also paste the code into the W3C Markup Validation Service to check that it is up to snuff: if the code passes the validator "in the green," you know your code is good. Simple skeletal web pages, can be found at W3 Schools. Other code, such as the DTD for HTML and XHTML, can also be found there.&lt;br /&gt;&lt;br /&gt;It is very common to find that online web pages fail W3C validation with a massive number of errors. Sometimes this is because the wrong DTD is specified for a page; at other times, the failure is due to using non-standard or deprecated code. If you start with a valid, basic template and correct any validation errors that show up, your pages will always be "in the green" when they are published to the Web.&lt;br /&gt;&lt;br /&gt;Once you have a valid basic template, you can begin to add your content between the body tags and extra code between the head tags.&lt;br /&gt;&lt;br /&gt;Normally, I do not use hard carriage returns inside a paragraph. The editors I use all have a "word wrap" feature that enables me to see all the text I write without having to use the horizontal scroll bar. The actual line length of the published content will be determined later when the page display is styled.&lt;br /&gt;&lt;br /&gt;I do use a hard carriage return after the last sentence of a paragraph and add an extra one between paragraphs. Hard returns can also be added for extra space between other elements, such as image code.&lt;br /&gt;&lt;br /&gt;If you have added content to the my-html-template.txt file, save it again with a ".html" file extension. You can then open it in a browser. What you will see is that all of the content runs together. That is because browsers look for line break tags and not carriage returns. You can fix this by doing a find and replace with your editor: just find every carriage return and replace it with a break tag. When you open the HTML document again, the various parts of the content will be neat and tidy but not very pretty. CSS styling will fix this.&lt;br /&gt;&lt;br /&gt;If you are just "dropping" the content between the body tags into a visual editor on the web, such as a WordPress editor or the article content box at EzineArticles, you don't have to worry about the line breaks as they will be added to the HTML code for you.&lt;br /&gt;&lt;br /&gt;Copy and paste the CSS code below into your text editor. Save it as "my-template. css" in the same folder in which you saved your HTML template file.&lt;br /&gt;&lt;br /&gt;body&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;background: #fffef2;&lt;br /&gt;&lt;br /&gt;color: black;&lt;br /&gt;&lt;br /&gt;line-height: normal;&lt;br /&gt;&lt;br /&gt;margin: 3% 25% 3% 25%;&lt;br /&gt;&lt;br /&gt;min-width: 400px;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The link meta tag associates a CSS file with the HTML document. Copy and paste the link tag shown below between the head tags in the my-html-template.txt file you saved. Replace the bracket characters with "", respectively.&lt;br /&gt;&lt;br /&gt;[link title="Template Style Sheet" rel="stylesheet" href="my-template.css"type="text/css"]&lt;br /&gt;&lt;br /&gt;If you have added some content to your my-html-template.txt file,  when you now open the  file in a browser, you will begin to see some pretty nice formatting. The page content is now centered in about the middle half of the page, there is a nice background color, and the text is Verdana. This is all due to the specifications in the CSS code for "body."The "body" code determines the overall appearance of the page.&lt;br /&gt;&lt;br /&gt;You can also validate your CSS code. W3C has a CSS code validator. Just copy the CSS code and paste it in the validator's text box and click the "Check" button. You will find that the code above passes "in the green," as it should.&lt;br /&gt;&lt;br /&gt;In order to apply display formatting, the content to receive the formatting must be identified. Content can be bracketed with HTML tags which contain names that reference styling definitions in the CSS file. Examples of these tags are "div" and "span". When a browser encounters an HTML tag and finds a name reference, it looks in the CSS file for the styling and then applies the styling to the web page display. If there is no styling referenced in the HTML tags the browser will use its defaults for the display.&lt;br /&gt;&lt;br /&gt;W3 Schools has comprehensive information and tutorials about CSS.&lt;br /&gt;&lt;br /&gt;Building your own (X)HTML and CSS templates--and then putting them through the W3C validators--is a great way to insure that your web pages will always be standards-based. You don't need an expensive web-development software package to develop your templates; you can use a basic text editor. Use the text editor to build the web page structure and add the content. Use CSS to style the display of the content. If you are publishing your content online, you will probably be able to drop the content from your text file (between the body tags) right into the editors text box without any changes. If you want to view your document in a browser as you create it, you might have to add break tags between content elements and then save the file with a ".html" extension. If you validate your web pages as you create them, you can always be sure that when they are published online, they will validate "in the green."&lt;br /&gt;&lt;br /&gt;An extended HTML version of this article, including lots of HTML and CSS code, can be found at www.selectdigitals.com&lt;br /&gt;Please feel free to visit my WordPress Blog at&lt;br /&gt;www.blog.selectdigitals.com&lt;br /&gt;for additional (X)HTML and CSS tips and tricks.&lt;br /&gt;&lt;br /&gt;Article Source: http://EzineArticles.com/?expert=Royce_Tivel&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4754676509548887444?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4754676509548887444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4754676509548887444'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/how-to-create-and-validate-your-own.html' title='How to Create and Validate Your Own HTML and CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-8972185629597030662</id><published>2010-07-08T22:46:00.000-07:00</published><updated>2010-07-08T22:48:47.041-07:00</updated><title type='text'>Advantages of CSS</title><content type='html'>&lt;span style="font-weight:bold;"&gt;What is CSS and why is it useful?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CSS stands for "cascading style sheets". A single CSS file can contain positioning, layout , font, colors and style information for an entire web site. The file can be referenced by each html file on the site.&lt;br /&gt;&lt;br /&gt;CSS is a means of separating the content of an html document from the style and layout of that document. It's useful to be able to do this for a number of reasons:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Making changes to the layout&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CSS makes it very easy to change the style of a document. Let's say we wanted to move the picture in the title of this page to the right by 10 pixels. This would be a nightmare in a table based design. We would have to open every page and alter the table width manually.&lt;br /&gt;&lt;br /&gt;Fortunately we have used CSS, and all we have to do is open our CSS file which stores the layout of the site, and change the number relating to the position of the image. That will change his position throughout the whole site.&lt;br /&gt;&lt;br /&gt;The look and layout of a site can be changed beyond recognition just by altering the CSS file. This makes CSS indispensable for large web sites.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;File Size&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Probably the mostly useful feature of CSS is that all of the style and layout is removed from the html, so the html page size is very much smaller. The CSS file is downloaded just once by the visitor's browser and re-used for different pages on a web site. This reduces the bandwidth requirements for your server and also ensures a faster download for your visitors.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Search Engines&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A search engine robot will normally consider the content in the start of your html code is more important than the text towards the end of the code. For a table based page the contents of the navigation bar will normally show up as the page description in search engine results. With a CSS page the navigation can be moved to the bottom of the source code, so the search engine displays your content instead of your navigation.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Accessibility&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Separating style from content makes life very easy for visitors who prefer to view only the content of a web page, or to modify the content. These could be blind or partially sighted people who might use a screen reader to interpret a page.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Consistency&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Layout and position of navigation can be completely consistent across a site. This was previously possible only using frames.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Disadvantages of CSS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CSS does not work consistently in different browsers. Microsoft Internet Explorer and Opera support CSS in a pretty logical way. Unfortunately their logic does not conform to current CSS standards.&lt;br /&gt;&lt;br /&gt;Netscape and Firefox conform more closely to the standards, so a site could look quite different on Internet Explorer from the way it looks in Firefox. This discrepancy restricts the CSS features that can be used on a site - because Firefox is becoming more and more popular the site must be designed for both Firefox and Internet Explorer.&lt;br /&gt;&lt;br /&gt;Dreamweaver MX design view has it's own set of limitations (although I'm told Dreamweaver 2004 is an improvement).&lt;br /&gt;&lt;br /&gt;CSS doesn't work at all in very early versions of Internet Explorer and Netscape. These browsers will display your page as plain html. This is not necessarily a problem - a quick look at our logs suggest that less than 0.1% of visitors are using browsers that are incompatible with CSS, and they will still be able to use our pages, just without the layout.&lt;br /&gt;&lt;br /&gt;Article Source : http://www.vordweb.co.uk/css/advantages-of-css.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-8972185629597030662?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8972185629597030662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8972185629597030662'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/advantages-of-css.html' title='Advantages of CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-644709512296663667</id><published>2010-07-07T22:52:00.000-07:00</published><updated>2010-09-23T22:33:00.265-07:00</updated><title type='text'>CSS Content</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-644709512296663667?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/644709512296663667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/644709512296663667'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/css-content.html' title='CSS Content'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4204661445472572940</id><published>2010-07-06T23:38:00.000-07:00</published><updated>2010-07-06T23:44:45.225-07:00</updated><title type='text'>How to Build a Basic CSS Layout</title><content type='html'>Designing without tables by using CSS layouts is fast becoming the new standard on the Web because of the benefits mentioned in my previous article. Web browsers  used these days are now able to render web pages proficiently. In this article I will endeavor to create a basic 2 column CSS layout which you can use for future design projects.&lt;br /&gt;&lt;br /&gt;Web Page: http://www.isitebuild.com/css/css-layout.html &lt;br /&gt;Style Sheet: http://www.isitebuild.com/css/stylesheet.htm&lt;br /&gt;&lt;br /&gt;1. Divide your page into sections - the div id tags allows you to create distinct divisions on your web page. They are identified with a unique id. You can then add a &lt;br /&gt;style (css selector) that specifically applies to the div of that id. Remember to include the DOCTYPE (to render your page accurately in the browsers) and meta tags (enables search engines to spider your pages).&lt;br /&gt;&lt;br /&gt;wrapper: is the div that wraps around all the other divs like a container for the page elements. &lt;br /&gt;header: defines the top banner of the page &lt;br /&gt;main: defines the main content of the page &lt;br /&gt;nav: defines the navigation of the page &lt;br /&gt;footer: defines the footer and sub-navigation of the page&lt;br /&gt;&lt;br /&gt;2. Create the CSS code - the CSS code styles the page as a centered 2 column CSS layout with a navigation bar and a footer. The div#wrapper style creates the centered box which acts as a container for the rest of the page content. The width: 80% rule sets the width of the div. The background-color:#FFFFFF rule creates a white background for the div. The margin-top: 50px and margin-bottom: 50px rules create a space of 50 pixels for the top and bottom margins for the div itself.&lt;br /&gt;&lt;br /&gt;The proper way to center a block-level element with CSS is to set margin-left: auto and margin-right: auto. This instructs the browser to automatically calculate equal &lt;br /&gt;margins for both sides, thus centering the div. &lt;br /&gt;&lt;br /&gt;The border: thin solid #000000 rule adds a border around the outer div. The rest of the CSS code styles the divs for the header, footer, nav, and main content.&lt;br /&gt;&lt;br /&gt;The div#header and div#footer styles set margins and padding for those divs. In addition, div#header includes the text-align: center rule to center the header text, and div#footer includes the border-top: thin solid #000000 rule to create a border along the top edge of the div to replace the horizontal rule above the footer in the table-based layout.&lt;br /&gt;&lt;br /&gt;The div#nav and div#main styles create the two columns in the middle of the centered box. In the div#nav style, the float: left rule pushes the div to the left side of its parent element (the wrapper div), and the width: 25% rule sets the div's width to 25 percent of the parent element. With the nav div floated to the left and limited to a set width, it leaves room for the main div to move up to the right of the nav div, thus creating the two-column effect. The div#main style includes the margin-left: 30% rule to keep the main text aligned in a neat column instead of spreading out below the nav column. The main div's left margin is set to a value slightly larger than the width of the nav div.&lt;br /&gt;&lt;br /&gt;Style Sheet &lt;br /&gt;http://www.isitebuild.com/css/stylesheet.htm&lt;br /&gt;&lt;br /&gt;If links are placed elsewhere on the page they will inherit the same properties as above..a blue link that hovers to red. What if you wish to create another set of links that are a different color and on passing your mouse over them they are underlined. &lt;br /&gt;&lt;br /&gt;4. Create the bottom navigation - to include this in the&lt;br /&gt;&lt;br /&gt;section of the page, I use div#footer and code each link accordingly. To make the list go horizontally I use: display: inline;&lt;br /&gt;&lt;br /&gt;Now that I have finished creating my style sheet I want to shorten the code on page by linking it to my external style sheet. Here's how:&lt;br /&gt;&lt;br /&gt;4. Create an external style sheet - copy and paste all the css code (without these tags: ) into notepad and label it something like "style sheet". Place this style sheet between the head tags of your web page.&lt;br /&gt;&lt;br /&gt;This will reduce the code on your page so it will load fast plus the search engines can more easily spider your web page.&lt;br /&gt;&lt;br /&gt;4. Add content to your page - after you have got your page looking correctly, you can add more content to it. Adjustments can easily be made to any style on the page (or &lt;br /&gt;your whole site) by simply editing one style sheet.&lt;br /&gt;&lt;br /&gt;5. Upload your files - be sure to upload your web pages and style sheet to the root directory of your server.&lt;br /&gt;&lt;br /&gt;6. Validate your code - be sure to validate your xhtml &lt;br /&gt;code: http://validator.w3.org/ and css code: &lt;br /&gt;http://jigsaw.w3.org/css-validator/ and make corrections where necessary.&lt;br /&gt;&lt;br /&gt;7. Check browser compatibility and screen resolution - check that your page renders well in the popular browsers (IE6, NN7, Firefox)&lt;br /&gt;&lt;br /&gt;If you are beginning with CSS layouts, implement then slowly by making small changes to your pages i.e. creating a style sheet for your main headers and fonts only. As you become more familiar with CSS you may eventually build all your future sites with CSS layouts.&lt;br /&gt;&lt;br /&gt;Resources:&lt;br /&gt;&lt;br /&gt;Basic CSS layout&lt;br /&gt;&lt;br /&gt;http://www.isitebuild.com/css/css-layout.html&lt;br /&gt;&lt;br /&gt;CSS Style Sheet&lt;br /&gt;&lt;br /&gt;http://www.isitebuild.com/css/stylesheet.htm&lt;br /&gt;&lt;br /&gt;Benefits of CSS&lt;br /&gt;&lt;br /&gt;http://www.isitebuild.com/css/index.htm&lt;br /&gt;&lt;br /&gt;For Website Designing and Development&lt;br /&gt;&lt;a href="http://www.varadesigns.com/"&gt;CSS Website Designer Hyderabad&lt;/a&gt;&lt;br /&gt;eMail : varadesigns@yahoo.com&lt;br /&gt;phone : +91 9247457705&lt;br /&gt;&lt;br /&gt;Article Source: http://EzineArticles.com/?expert=Herman_Drost&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4204661445472572940?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4204661445472572940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4204661445472572940'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/how-to-build-basic-css-layout_06.html' title='How to Build a Basic CSS Layout'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-8114247534231822452</id><published>2010-07-04T23:31:00.000-07:00</published><updated>2010-07-04T23:32:10.725-07:00</updated><title type='text'>Search Engine Friendly Web Design - 3 Ways to Use CSS</title><content type='html'>This article will point out 3 simple and highly effective web design techniques that use cascading style sheets to improve your web design and make your website perform better in the major search engines.&lt;br /&gt;&lt;br /&gt;First of all, what is CSS? CSS stands for cascading style sheets and CSS is a way of separating presentation code from your actual content in web design. Usually you build up a set of CSS style rules that are stored in a separate file that has a .css file extension. You then link to the CSS file from your web pages using an HTML link tag.&lt;br /&gt;&lt;br /&gt;There are many, many web design advantages to separating your presentation code off into separate CSS files and this article will tell you 3 excellent ways that you can use CSS to make your web design more search engine friendly.&lt;br /&gt;&lt;br /&gt;Web Design Technique 1 - Us CSS to Structure Your Document&lt;br /&gt;&lt;br /&gt;Let's consider the facts that we know about search engines. They send their search engine robots to your site to read the content that you have there and the easier it is to find for them the better because they don't waste much time looking. So having said this, what is the point of bogging down your pages with lots of un-necessary presentation markup that could quite easily be stored off in a separate CSS file. Most often this means removed any extraneous table tags and replacing them with a smaller number of HTML div tags which can be formatted using CSS rules. This removes the vast majority of presentational markup and leaves you with nicely formatted content that the search engines can easily find and index.&lt;br /&gt;&lt;br /&gt;Web Design Technique 2 - Us CSS to Style Your Header Tags&lt;br /&gt;&lt;br /&gt;We also know that search engines place a huge amount of importance on the header tags - h1,h2,h3 e.t.c. that they find in your pages. The thing that puts most inexperienced web designers off using header tags is that by default modern browsers render them in massive black text that looks really ugly. This is where CSS comes in. CSS can be used to easily make your header tags appear in nicely formatted, attractive text that both scores well with search engines and is pleasing to the eye of the user - perfect!&lt;br /&gt;&lt;br /&gt;Web Design Technique 3 - Us CSS to Create Rollover Images&lt;br /&gt;&lt;br /&gt;Traditionally rollover images are created using 2 graphics for the on and off states that are toggled on and off using some complex JavaScript code. This JavaScript code can bloat your web pages and since it is not content and just appears as gibberish to search engines it can adversely affect your rankings to have lots of embedded JavaScript in your web pages. A much better way to accomplish the same web design effect is to use CSS. Your still need your 2 graphics but you actually create a normal text link in your (that can also have keyword targeted anchor text) and use CSS to format its appearance. This is as simple as making the link a block level element in your HTML, setting it a height and width and then defining it 2 different background images, 1 for when the link is in its 'off state' and when for when the user is hovering over the link.&lt;br /&gt;&lt;br /&gt;Conclusion:&lt;br /&gt;&lt;br /&gt;Cascading style sheets are a very powerful way of separating presentation code from your actual content and the search engine optimisation benefits the CSS will bring to your web design are undeniable. Why not put these CSS web design techniques to work on your website today?&lt;br /&gt;&lt;br /&gt;For Website Designing and Development&lt;br /&gt;&lt;a href="http://www.varadesigns.com/"&gt;Website Designer Hyderabad&lt;/a&gt;&lt;br /&gt;eMail : varadesigns@yahoo.com&lt;br /&gt;phone : +91 9247457705&lt;br /&gt;&lt;br /&gt;Article Source:  http://EzineArticles.com/?expert=Stuart_Mortimer&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-8114247534231822452?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8114247534231822452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8114247534231822452'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/search-engine-friendly-web-design-3.html' title='Search Engine Friendly Web Design - 3 Ways to Use CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-5417125798558065764</id><published>2010-07-04T23:30:00.000-07:00</published><updated>2010-07-04T23:31:26.942-07:00</updated><title type='text'>Why a CSS Website Layout Will Make You Money</title><content type='html'>Although CSS layouts have been around for years, they haven't become so commonplace until recently. This was basically due to limited browser support (especially from Netscape 4) - nowadays though, CSS 2.0 (which introduced positioning) is compatible with over 99% of browsers out there (check out the browser stats over at http://www.thecounter.com/stats/2004/August/browser.php).&lt;br /&gt;&lt;br /&gt;So, why should you convert your website from its current table-based layout to a CSS layout? It'll make you money. Simple really. And here's four reasons to explain why:&lt;br /&gt;&lt;br /&gt;Reduced bandwidth costs&lt;br /&gt;&lt;br /&gt;Web pages using CSS for layout tend to have much smaller file sizes than those using tabular layouts. It's not unusual to see reductions of 50% or more in file size when switching from CSS to tables. Smaller file sizes obviously mean reduced bandwidth costs, which for high traffic sites can mean enormous savings.&lt;br /&gt;&lt;br /&gt;The main reason for this dramatic decrease in file size is that presentation information is placed in the external CSS document, called up once when the homepage loads up and then cached (stored) on to the user's computer. Table layouts on the other hand, place all presentation information inside each HTML, which is then called up and downloaded for every page on the site.&lt;br /&gt;&lt;br /&gt;Additionally, CSS can be used to replace JavaScript image rollovers, again allowing a large reduction in overall page size. See the article, CSS navigation menu for more on this (http://www.webcredible.co.uk/user-friendly-resources/css/css-navigation-menu.shtml).&lt;br /&gt;&lt;br /&gt;A higher search engine ranking&lt;br /&gt;&lt;br /&gt;A CSS-based website will appear higher in the search engine rankings for three reasons:&lt;br /&gt;&lt;br /&gt;- The code is cleaner and therefore more accessible to search engines&lt;br /&gt;&lt;br /&gt;- Important content can be placed at the top of the HTML document&lt;br /&gt;&lt;br /&gt;- There is a greater density of content compared to coding&lt;br /&gt;&lt;br /&gt;A higher search engine ranking means more site visitors, which, provided your website is usable, should lead to an increase in enquiries or sales.&lt;br /&gt;&lt;br /&gt;Faster download speed&lt;br /&gt;&lt;br /&gt;A faster download speed will make you money? Well, yes. Slow download speed is often cited as one of the biggest usability complaints for websites. A faster download speed therefore leads to increased usability, and a web usability redesign can increase the sales/conversion rate by 100% (source: http://www.useit.com/alertbox/20030107.html).&lt;br /&gt;&lt;br /&gt;CSS downloads faster than tables because:&lt;br /&gt;&lt;br /&gt;- Browsers read through tables twice before displaying their contents, once to work out their structure and once to determine their content&lt;br /&gt;&lt;br /&gt;- Tables appear on the screen all in one go - no part of the table will appear until the entire table is downloaded and rendered&lt;br /&gt;&lt;br /&gt;- Tables encourage the use of spacer images to aid with positioning&lt;br /&gt;&lt;br /&gt;- CSS generally requires less code than cumbersome tables&lt;br /&gt;&lt;br /&gt;- All code to do with the layout can be placed in an external CSS document, which will be called up just once and then cached (stored) on the user's computer; table layout, stored in each HTML document, must be loaded up each time a new page downloads&lt;br /&gt;&lt;br /&gt;- With CSS you can control the order items download on to the screen - make the content appear before slow-loading images and your site users will definitely appreciate it&lt;br /&gt;&lt;br /&gt;Increase in reach&lt;br /&gt;&lt;br /&gt;The more people you can reach, the more visitors you'll get to your site and the more enquiries or sales you should get. A CSS-based website is compatible with PDAs, mobile phones, in-car browsers and WebTV. Don't underestimate the importance of this: In 2008 alone an estimated 58 million PDAs will be sold (source: http://www.etforecasts.com/pr/pr0603.htm) and one third of the world's population will own a wireless device (source: [http://www.clickz.com/stats/markets/wireless/article.php/10094_950001]).&lt;br /&gt;&lt;br /&gt;You can make an additional CSS document specifically for handheld devices, which will be called up in place of the regular CSS document, thereby ensuring your website is accessible to this lucrative market. This isn't possible with a tabular layout.&lt;br /&gt;&lt;br /&gt;Conclusion: Switch to CSS!&lt;br /&gt;&lt;br /&gt;Switching your website from a table layout to a CSS layout can be a long, arduous process, especially for large websites. Given the money making possibilities though, it could very well prove to be well worth it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For Website Designing and Development&lt;br /&gt;&lt;a href="http://www.varadesigns.com/"&gt;Affordable Website Designing Hyderabad&lt;/a&gt;&lt;br /&gt;eMail : varadesigns@yahoo.com&lt;br /&gt;phone : +91 9247457705&lt;br /&gt;Article Source:  http://EzineArticles.com/?expert=Trenton_Moss&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-5417125798558065764?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5417125798558065764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/5417125798558065764'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/why-css-website-layout-will-make-you.html' title='Why a CSS Website Layout Will Make You Money'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4072456591717213106</id><published>2010-07-04T23:29:00.000-07:00</published><updated>2010-07-04T23:35:24.653-07:00</updated><title type='text'>How to Build a Basic CSS Layout</title><content type='html'>Designing without tables by using CSS layouts is fast becoming the new standard on the Web because of the benefits mentioned in my previous article. Web browsers used these days are now able to render web pages proficiently. In this article I will  ndeavor to create a basic 2 column CSS layout which you can use for future design projects.&lt;br /&gt;&lt;br /&gt;Web Page: http://www.isitebuild.com/css/css-layout.html&lt;br /&gt;Style Sheet: http://www.isitebuild.com/css/stylesheet.htm&lt;br /&gt;&lt;br /&gt;1. Divide your page into sections - the div id tags allows you to create distinct  divisions on your web page. They are identified with a unique id. You can then add a&lt;br /&gt;style (css selector) that specifically applies to the div of that id. Remember to include the DOCTYPE (to render your page accurately in the browsers) and meta tags (enables search engines to spider your pages). &lt;br /&gt;&lt;br /&gt;wrapper: is the div that wraps around all the other divs like a container for the  page elements. header: defines the top banner of the page main: defines the main content of the page nav: defines the navigation of the page footer: defines the footer and sub-navigation of the page &lt;br /&gt;&lt;br /&gt;2. Create the CSS code - the CSS code styles the page as a centered 2 column CSS  ayout with a navigation bar and a footer. The div#wrapper style creates the centered box which acts as a container for the rest of the page content. The width: 80% rule sets the width of the div. The background-color:#FFFFFF rule creates a white background for the div. The margin-top: 50px and margin-bottom: 50px rules create a space of 50 pixels for the top and bottom margins for the div itself.&lt;br /&gt;&lt;br /&gt;The proper way to center a block-level element with CSS is to set margin-left: auto and margin-right: auto. This instructs the browser to automatically calculate equal&lt;br /&gt;margins for both sides, thus centering the div. The border: thin solid #000000 rule adds a border around the outer div. &lt;br /&gt;&lt;br /&gt;The rest of the CSS code styles the divs for the header, footer, nav, and main content.  The div#header and div#footer styles set margins and padding for those divs. In addition, div#header includes the text-align: center rule to center the header text, and div#footer includes the border-top: thin solid #000000 rule to create a border along the top edge of the div to replace the horizontal rule above the footer in the table-based layout.&lt;br /&gt;&lt;br /&gt;The div#nav and div#main styles create the two columns in the middle of the centered box. In the div#nav style, the float: left rule pushes the div to the left side of its parent element (the wrapper div), and the width: 25% rule sets the div's width to 25 percent of the parent element. With the nav div floated to the left and limited to a set width, it leaves room for the main div to move up to the right of the nav div, thus creating the two-column effect. The div#main style includes the margin-left: 30% rule to keep the main text aligned in a neat column instead of spreading out below the nav column. The main div's left margin is set to a value slightly larger than the width of the nav div. &lt;br /&gt;&lt;br /&gt;Style Sheet&lt;br /&gt;http://www.isitebuild.com/css/stylesheet.htm&lt;br /&gt;&lt;br /&gt;If links are placed elsewhere on the page they will inherit the same properties as above..a blue link that hovers to red. What if you wish to create another set of links that are a different color and on passing your mouse over them they are  nderlined.&lt;br /&gt;&lt;br /&gt;4. Create the bottom navigation - to include this in the&lt;br /&gt;&lt;br /&gt;section of the page, I use div#footer and code each link accordingly. To make the list go horizontally I use: display: inline; Now that I have finished creating my style sheet I want to shorten the code on page by linking it to my external style&lt;br /&gt;sheet. Here's how: &lt;br /&gt;&lt;br /&gt;4. Create an external style sheet - copy and paste all the css code (without these tags: ) into notepad and label it something like "style sheet". Place this style sheet between the head tags of your web page.&lt;br /&gt;&lt;br /&gt;This will reduce the code on your page so it will load fast plus the search engines can more easily spider your web page. &lt;br /&gt;&lt;br /&gt;4. Add content to your page - after you have got your page looking correctly, you can add more content to it. Adjustments can easily be made to any style on the page (or your whole site) by simply editing one style sheet. &lt;br /&gt;&lt;br /&gt;5. Upload your files - be sure to upload your web pages and style sheet to the root directory of your server. &lt;br /&gt;&lt;br /&gt;6. Validate your code - be sure to validate your xhtml code: http://validator.w3.org/ and css code:&lt;br /&gt;http://jigsaw.w3.org/css-validator/ and make corrections&lt;br /&gt;where necessary.&lt;br /&gt;&lt;br /&gt;7. Check browser compatibility and screen resolution - check that your page renders well in the popular browsers (IE6, NN7, Firefox)&lt;br /&gt;&lt;br /&gt;If you are beginning with CSS layouts, implement then slowly by making small changes to your pages i.e. creating a style sheet for your main headers and fonts only. As you become more familiar with CSS you may eventually build all your future sites with CSS layouts.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For Website Designing and Development&lt;br /&gt;&lt;a href="http://www.varadesigns.com/"&gt;Website Designing Services Hyderabad&lt;/a&gt;&lt;br /&gt;eMail : varadesigns@yahoo.com&lt;br /&gt;phone : +91 9247457705&lt;br /&gt;&lt;br /&gt;Resources:&lt;br /&gt;&lt;br /&gt;Basic CSS layout&lt;br /&gt;&lt;br /&gt;http://www.isitebuild.com/css/css-layout.html&lt;br /&gt;&lt;br /&gt;CSS Style Sheet&lt;br /&gt;&lt;br /&gt;http://www.isitebuild.com/css/stylesheet.htm&lt;br /&gt;&lt;br /&gt;Benefits of CSS&lt;br /&gt;&lt;br /&gt;http://www.isitebuild.com/css/index.htm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Article Source:  http://EzineArticles.com/?expert=Herman_Drost&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4072456591717213106?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4072456591717213106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4072456591717213106'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/07/how-to-build-basic-css-layout.html' title='How to Build a Basic CSS Layout'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-522850532700632370</id><published>2010-06-30T20:14:00.000-07:00</published><updated>2010-09-23T22:41:39.324-07:00</updated><title type='text'>CSS-Tricks Mobile</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-522850532700632370?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/522850532700632370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/522850532700632370'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/css-tricks-mobile.html' title='CSS-Tricks Mobile'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-3093091388671330402</id><published>2010-06-29T21:50:00.000-07:00</published><updated>2010-09-23T22:41:07.958-07:00</updated><title type='text'>How To Create an IE-Only Stylesheet</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-3093091388671330402?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3093091388671330402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/3093091388671330402'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/how-to-create-ie-only-stylesheet.html' title='How To Create an IE-Only Stylesheet'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-6827441523670141662</id><published>2010-06-28T05:27:00.000-07:00</published><updated>2010-06-29T23:00:37.025-07:00</updated><title type='text'>15+ CSS Tips and Tricks</title><content type='html'>A list of CSS tips and tricks that will make your life so much easier! I have also make a list of CSS shorthands for your convenience.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Introduction&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CSS (Cascading Style Sheet) is not very difficult to learn. The hardest thing is to ensure the CSS layout being displayed identically among different browsers. Even though CSS3 will be released soon, but I believe it will take quite a long time for all the browsers to start supporting it, especially all the old browsers like Internet Explorer 6 *AHEM*.&lt;br /&gt;&lt;br /&gt;Right, here is a list of CSS tips and tricks that I believe will help you! You might also want to use some of the tools that will help you in web design and development - 22 extremely useful tools for web designers and developers&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. Avoid CSS hacks, use future proof method&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We should avoid using hacks unless there are no other ways to fix it. Because, we will not able to know when those hacks will stop working. The most common way to tackle with different version of IEs is using the if else statement:&lt;br /&gt;&lt;br /&gt;&amp;lt;!--[If IE 5]&amp;gt;  &lt;br /&gt;ie 5  &lt;br /&gt;&amp;lt;![endif]--&amp;gt;  &lt;br /&gt;  &lt;br /&gt;&amp;lt;!--[If lte 6]&amp;gt;  &lt;br /&gt;ie 6 and lower  &lt;br /&gt;&amp;lt;![endif]--&amp;gt;  &lt;br /&gt;  &lt;br /&gt;&amp;lt;!--[If gte 7]&amp;gt;  &lt;br /&gt;ie 7 or higher  &lt;br /&gt;&amp;lt;![endif]--&amp;gt;  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. Use group selector&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Using group selector is a good practise to minimize your coding effort and also save a few bytes out of your stylesheet. We can group the selector to avoid repeating declaring the same properties for different elements&lt;br /&gt;&lt;br /&gt;h1, h2, h3, h4, h5, h6 {  &lt;br /&gt;font-family:arial;   &lt;br /&gt;margin:0.5em 0;   &lt;br /&gt;padding:0;    &lt;br /&gt;}  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. Center elements&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It's easy to center an element, for firefox and safari, we only need to specify the width and margin left and right set to auto. However, you will need to specify text-align to center in the parent element for IE.&lt;br /&gt;&lt;br /&gt;body {  &lt;br /&gt;    text-align:center;  /* for ie   */  &lt;br /&gt;}  &lt;br /&gt;  &lt;br /&gt;#container {  &lt;br /&gt;    width:800px;  &lt;br /&gt;    margin:0 auto;    &lt;br /&gt;    text-align:left;  &lt;br /&gt;}  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. CSS Positioning&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is something I've just discovered it few weeks ago. Set the abolute position within a container. #item will appear inside the #container exactly 200px from the left and 50px from the top.&lt;br /&gt;&lt;br /&gt;#container {  &lt;br /&gt;    position: relative;  &lt;br /&gt;    width:500; height:300;  &lt;br /&gt;}  &lt;br /&gt;  &lt;br /&gt;#item {  &lt;br /&gt;    position: absolute;  &lt;br /&gt;    left: 200px;  &lt;br /&gt;    top: 50px;  &lt;br /&gt;}  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. Text transform&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is something I discovered long time ago, CSS has the ability to transform text to lowercase, uppercase and capitalized the first character of a word. w3schools CSS - Text transform&lt;br /&gt;&lt;br /&gt;h1 {text-transform:uppercase;   }  &lt;br /&gt;h2 {text-transform:capitalize;  }  &lt;br /&gt;p { text-transform:lowercase;  }  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6. Remove links or textbox hightlight border&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When you click on textbox or link, you will able to see a border highlighting the element. It's even more obvious if you are using mac os. Luckily, you can solve it using outline property. I used it when I set the indentation of a link text to -999em and also when I'm building a textfield with rounded border.&lt;br /&gt;&lt;br /&gt;a, input { outline:none;   }  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7. Hidden text&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I think the correct way to do it is using text-indent. And also, you'd want to apply outline:none to hide the border. We use hidden text when we're using images to replace text but we want to make sure search engine can crawl the keyword.&lt;br /&gt;&lt;br /&gt;a {  &lt;br /&gt;    text-indent:-999em;   &lt;br /&gt;    outline:none;  &lt;br /&gt;      &lt;br /&gt;    background: url(button.jpg) no-repeat 0 0;  &lt;br /&gt;    width:100px; height:50px;  &lt;br /&gt;    display:block;  &lt;br /&gt;}  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8. Keep consistent with SUP and SUB&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I have a chance to work on one website that uses ® and ™ massively (bad... bad experience). The problem I was facing is, the sup and sub being rendered differently in different browsers, so, I found this and it solved my problem. Adobe Advisor / CSS&lt;br /&gt;&lt;br /&gt;sup,  &lt;br /&gt;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;  &lt;br /&gt;sup { bottom: 1ex;  }  &lt;br /&gt;  &lt;br /&gt;sub {  top: .5ex;  }  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9. CSS Transparency Setting for all browsers&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Yes, I can never able to remember it, so I guess it's a must to list it out here for future reference.&lt;br /&gt;&lt;br /&gt;.transparent_class {    &lt;br /&gt;    filter:alpha(opacity=50);    /* ie  */  &lt;br /&gt;    -moz-opacity:0.5;    /* old mozilla browser like netscape  */  &lt;br /&gt;    -khtml-opacity: 0.5;    /* for really really old safari */    &lt;br /&gt;    opacity: 0.5;    /* css standard, currently it works in most modern browsers like firefox,  */  &lt;br /&gt;}   &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10. PNG Fix for IE6&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Yes, this is the best thing ever to fix ie6 annoying short coming (it doesn't work with background-position). However, if you want a better solution to could fix all the png images in your css files, you can try this IE PNG Fix from twinhelix and the new version support background position!&lt;br /&gt;&lt;br /&gt;.png_hack{  &lt;br /&gt;  background-image: url(../img/the_image.png) !important;  &lt;br /&gt;  background-image: none;  &lt;br /&gt;  filter: none !important;  &lt;br /&gt;  filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/the_image.png');  &lt;br /&gt;}  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11. Prevent line break&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is a simple css tips, but some of us might not know about it. It forces the text display in one line.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;view plaincopy to clipboardprint?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;h1{ white-space:nowrap;  }  &lt;br /&gt;&lt;br /&gt;12. Force page breaks when printing your document&lt;br /&gt;&lt;br /&gt;When you're creating a printer friendly webpages, you want to know about these property. More about printing CSS property, visit W3C CSS Print Reference and also the CSS3 stardard&lt;br /&gt;&lt;br /&gt;h1{ page-break-before:always;  }  &lt;br /&gt;&lt;br /&gt;h2{ page-break-after:avoid;  }  &lt;br /&gt;  &lt;br /&gt;h2{ page-break-inside:always;  }  &lt;br /&gt;&lt;br /&gt;13. Remove vertical textarea scollbar in IE&lt;br /&gt;&lt;br /&gt;Remember that annoying textarea scrollbar that display by default in IE? Yes, we can remove it.&lt;br /&gt;&lt;br /&gt;textarea{  &lt;br /&gt;    overflow:auto;  &lt;br /&gt;}  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;14. 3D push button effect&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can create a 3D button effect easily using CSS. The most important thing is the border, set light color on top and left border, and dark color on bottom and left (shadow).&lt;br /&gt;&lt;br /&gt;a {  &lt;br /&gt;display: block;  &lt;br /&gt;border: 1px solid;  &lt;br /&gt;border-color: #aaa #000 #000 #aaa;  &lt;br /&gt;width: 8em;  &lt;br /&gt;background: #fc0;  &lt;br /&gt;}  &lt;br /&gt;  &lt;br /&gt;a:hover  &lt;br /&gt;{  &lt;br /&gt;position: relative;  &lt;br /&gt;top: 1px;  &lt;br /&gt;left: 1px;  &lt;br /&gt;border-color: #000 #aaa #aaa #000;  &lt;br /&gt;}  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15. CSS Tooltips&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So, you must be thinking, we will need javascript to make tooltips! :) I got this trick from Kollermedia.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;a:hover {  &lt;br /&gt;    background:#ffffff;     /*BG color is a must for IE6*/  &lt;br /&gt;    text-decoration:none;  &lt;br /&gt;}   &lt;br /&gt;  &lt;br /&gt;a.tooltip span {  &lt;br /&gt;    display:none;   &lt;br /&gt;    padding:2px 3px;   &lt;br /&gt;    margin-left:8px;   &lt;br /&gt;    width:130px;  &lt;br /&gt;}  &lt;br /&gt;  &lt;br /&gt;a.tooltip:hover span{  &lt;br /&gt;    display:inline;   &lt;br /&gt;    position:absolute;   &lt;br /&gt;    background:#ffffff;   &lt;br /&gt;    border:1px solid #cccccc;   &lt;br /&gt;    color:#6c6c6c;  &lt;br /&gt;}  &lt;br /&gt;view plaincopy to clipboardprint?&lt;br /&gt;&amp;lt;a href="#" class="tooltip"&amp;gt;Tooltip &amp;lt;span&amp;gt; Extra info &amp;lt;/span&amp;gt; &amp;lt;/a&amp;gt; &lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;16. CSS links sequence&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Apparently, the sequence of the links is very important, read more. Honestly, I don't use this much, but hey, good for future reference! :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;a:link {  &lt;br /&gt;    color: #000;  &lt;br /&gt;    text-decoration: underline  &lt;br /&gt;}   &lt;br /&gt;a:visited {  &lt;br /&gt;    color: #666;  &lt;br /&gt;}  &lt;br /&gt;a:hover {  &lt;br /&gt;    color: #333;  &lt;br /&gt;    text-decoration: none;  &lt;br /&gt;}  &lt;br /&gt;a:active {  &lt;br /&gt;    color: #333;  &lt;br /&gt;    text-decoration: none;  &lt;br /&gt;}  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;17. CSS Shorthands!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Last but not least, here are the CSS shorthands that will make our life easier!&lt;br /&gt;&lt;br /&gt;/* MARGIN */  &lt;br /&gt;h1 {margin:1em 0 2em 0.5em;}  &lt;br /&gt;  &lt;br /&gt;h1 {margin-top:1em;  &lt;br /&gt;    margin-right:0;  &lt;br /&gt;    margin-bottom:2em;  &lt;br /&gt;    margin-left:0.5em;  &lt;br /&gt;}  &lt;br /&gt;  &lt;br /&gt;/* BORDER */  &lt;br /&gt;h1 {border:1px solid #000;}  &lt;br /&gt;  &lt;br /&gt;h1 {border-width:1px;  &lt;br /&gt;    border-style:solid;  &lt;br /&gt;    border-color:#000;  &lt;br /&gt;}  &lt;br /&gt;  &lt;br /&gt;/* BORDER WIDTH */  &lt;br /&gt;h1 {border-width:1px 2px 3px 4px;}  &lt;br /&gt;  &lt;br /&gt;h1 {border-top-width:1px;  &lt;br /&gt;    border-right-width:2px;  &lt;br /&gt;    border-bottom-width:3px;  &lt;br /&gt;    border-left-width:4px;  &lt;br /&gt;}  &lt;br /&gt;  &lt;br /&gt;/* BACKGROUND */  &lt;br /&gt;div {background:#f00 url(background.gif) no-repeat fixed 0 0;}  &lt;br /&gt;  &lt;br /&gt;div {background-color:#f00;  &lt;br /&gt;     background-image:url(background.gif);  &lt;br /&gt;     background-repeat:no-repeat;  &lt;br /&gt;     background-attachment:fixed;  &lt;br /&gt;     background-position:0 0;  &lt;br /&gt;}  &lt;br /&gt;  &lt;br /&gt;/* FONT */  &lt;br /&gt;h1 {font:italic small-caps bold 1em/140% "Lucida Grande",sans-serif;}  &lt;br /&gt;  &lt;br /&gt;h1 {font-style:italic;  &lt;br /&gt;    font-variant:small-caps;  &lt;br /&gt;    font-weight:bold;  &lt;br /&gt;    font-size:1em;  &lt;br /&gt;    line-height:140%;  &lt;br /&gt;    font-family:"Lucida Grande",sans-serif;  &lt;br /&gt;}  &lt;br /&gt;  &lt;br /&gt;/* LIST STYLE */  &lt;br /&gt;ul {list-style:square inside url(image.gif);}  &lt;br /&gt;  &lt;br /&gt;ul {list-style-type:square;  &lt;br /&gt;    list-style-position:inside;  &lt;br /&gt;    list-style-image:url(image.gif);  &lt;br /&gt;}  &lt;br /&gt;  &lt;br /&gt;/* OUTLINE */  &lt;br /&gt;h1 {outline:#f00 solid 2px;}  &lt;br /&gt;  &lt;br /&gt;h1 {outline-color:#f00;  &lt;br /&gt;    outline-style:solid;  &lt;br /&gt;    outline-width:2px;  &lt;br /&gt;}  &lt;br /&gt;&lt;br /&gt;For Website Designing Services&lt;br /&gt;&lt;a href="http://www.varadesigns.com"&gt;website designing hyderabad&lt;/a&gt;&lt;br /&gt;eMail : varadesigns@yahoo.com&lt;br /&gt;phone : +91 9247457705&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source : http://www.queness.com/post/402/15-css-tips-and-tricks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-6827441523670141662?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6827441523670141662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6827441523670141662'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/15-css-tips-and-tricks.html' title='15+ CSS Tips and Tricks'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-1445933640921895585</id><published>2010-06-24T23:24:00.000-07:00</published><updated>2010-06-24T23:36:00.345-07:00</updated><title type='text'>Styling Links with CSS</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Learn how to style links in a Web page using CSS. This article shows you how to add CSS styles to any type of link, including non-visited, visited, active, and hovered links.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CSS gives you a fair amount of flexibility when it comes to styling links. You can alter the look of:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;normal links&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* links that have already been visited&lt;br /&gt;* links that are being clicked on, and&lt;br /&gt;* links that are hovered over with the mouse.&lt;br /&gt;&lt;br /&gt; You can even turn text links into image links, using nothing but CSS. In this article you learn how to change the look of different link states using CSS, as well as how to alter link colours, underlining, and appearance in general.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Different link states&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CSS distinguishes between 4 different states for a link using a concept called pseudo-classes. A pseudo-class is a way of selecting page elements based on special characteristics such as whether an element is being rolled over with a mouse, or whether the element has focus.&lt;br /&gt;&lt;br /&gt;Here are the 4 pseudo-classes that you can use to select and style the different link states in &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;CSS:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;a:link&lt;/span&gt;  - Selects links that have never been visited in the browser&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;a:visited&lt;/span&gt; - Selects links that have been visited before in the browser&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;a:active&lt;/span&gt; - Selects links that are being clicked on or otherwise activated by the user&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;a:hover&lt;/span&gt; - Selects links that are being hovered over by the user's mouse cursor&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Selecting links regardless of their state&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As well as using pseudo-classes to select particular link states, you can of course use the a selector on its own to select links in general:&lt;br /&gt;&lt;br /&gt;a { color: pink; } /* Set all links to pink */&lt;br /&gt;&lt;br /&gt;However, note that using a pseudo-class overrides any styling that you've set using the a selector. For example, the following code makes all links pink except visited links, which become green:&lt;br /&gt;&lt;br /&gt;a { color: pink; }&lt;br /&gt;a:visited { color: green; }&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Mixing pseudo-classes with classes and ids&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You might want to style only certain types of links within your website. To do this, assign a class to the links:&lt;br /&gt;&lt;br /&gt;&lt;a class="nav"&gt;Home&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can then style those links using pseudo-classes as follows:&lt;br /&gt;&lt;br /&gt;/* Make all navigation links red when hovered over */&lt;br /&gt;a.nav:hover { color: red; }&lt;br /&gt;&lt;br /&gt;If you only want to style a single link on the page, you can use an id instead of a class, and select the link's pseudo-classes in the same way — for example&lt;br /&gt;&lt;br /&gt;&amp;lt;a id="home" href="home.html"&amp;gt;Home&amp;lt;/a&amp;gt;&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;/* Make the "home" link yellow, whether visited or not */&lt;br /&gt;a#home:link, a#home:visited { color: yellow; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Some examples&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Once you've selected the particular link state you're interested in, you can apply any styles you want to that state, as you'll see in the following examples.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Styling link colours&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It's easy to change the colour of links from the default values. On most browsers, the default link colours are:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;:link&lt;/span&gt;             - blue&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;:visited&lt;/span&gt;          - purple&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;:active &lt;/span&gt;          - red&lt;br /&gt;&lt;br /&gt;Here are some examples of how to change link colours:&lt;br /&gt;&lt;br /&gt;/* Make all links grey on black, whatever their state */&lt;br /&gt;a { color: gray; background-color: black; }&lt;br /&gt;&lt;br /&gt;/* Use the default colours except for links that are being&lt;br /&gt;   clicked on, which become yellow instead of red */&lt;br /&gt;a:active { color: yellow; }&lt;br /&gt;&lt;br /&gt;/* Set unvisited links to green; visited and hovered&lt;br /&gt;   links to brown */&lt;br /&gt;a:link { color: green; }&lt;br /&gt;a:visited, a:hover { color: brown; }&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;INFO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use caution when changing link colours. Most visitors expect normal links to be a shade of blue, visited links to be a shade of purple, and links generally to be underlined. If you deviate too wildly from these standards then visitors may have a hard time navigating your site.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Turning off underlines on links&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To remove the underlining from text links, use the text-decoration property, as follows:&lt;br /&gt;&lt;br /&gt;a { text-decoration: none; }&lt;br /&gt;&lt;br /&gt;To remove the underlining from links except when they're hovered over, use:&lt;br /&gt;&lt;br /&gt;a { text-decoration: none; }&lt;br /&gt;a:hover { text-decoration: underline; }&lt;br /&gt;&lt;br /&gt;Giving links a button effect&lt;br /&gt;&lt;br /&gt;You can style links — and their pseudo-classes — pretty much any way you like. This example turns a standard text link into something more closely resembling a form button:&lt;br /&gt;&lt;br /&gt;a&lt;br /&gt;{&lt;br /&gt;  color: #000;&lt;br /&gt;  background-color: #f0f0f0;&lt;br /&gt;  padding: 2px 11px;&lt;br /&gt;  border: 2px outset #fafafa;&lt;br /&gt;  text-decoration: none;&lt;br /&gt;  font-family: Arial, Helvetica, sans-serif;&lt;br /&gt;  font-size: 0.9em;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Adding background images to links&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here's another example of styling a link purely using CSS. It adds an arrow graphic to the link by inserting the graphic as a background image and moving the link text to the right to allow space for the image:&lt;br /&gt;&lt;br /&gt;a&lt;br /&gt;{ &lt;br /&gt;  background: #fff url('red-recessed-arrow.gif') no-repeat 0 0;&lt;br /&gt;  padding: 3px 0 4px 34px;&lt;br /&gt;  text-decoration: none;&lt;br /&gt;  font-family: Arial, Helvetica, sans-serif;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Replacing link text with an image&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What if you wanted to use just an image for a link, without any text? It's a good idea to keep the link text in your HTML markup, so that non-graphical browsers and search engines can still read and understand the link. However, you can still hide the link text within your CSS. Here's how it's done.&lt;br /&gt;&lt;br /&gt;First, put your link text within a span element in your markup:&lt;br /&gt;&lt;br /&gt;&amp;lt;a href="home.html"&amp;gt;&amp;lt;span&amp;gt;Home&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&lt;br /&gt;Then you can style the link as follows:&lt;br /&gt;&lt;br /&gt;a&lt;br /&gt;{&lt;br /&gt;  background: #fff url('remote-control-home.gif') no-repeat 0 0;&lt;br /&gt;  display: block;&lt;br /&gt;  width: 114px;&lt;br /&gt;  height: 24px;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;a span&lt;br /&gt;{&lt;br /&gt;  display: none;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;First the CSS sets the button as a background image on the link, and adjusts the link's width and height to match the dimensions of the image. Then the a span selector ensures that the link text is hidden from CSS-aware browsers.&lt;br /&gt;&lt;br /&gt;Here's how the above example looks:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;INFO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Why the display: block? Well, links are inline elements, which means that (amongst other things) you can't apply certain properties such as width and height to them. If you want to specify a width and height for a link, you first need to make it display as a block-level element using the display: block property.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.varadesigns.com" target="_blank"&gt;WEBSITE DESIGNING COMPANY HYDERABAD&lt;/a&gt;&lt;br /&gt;contact : +91 9247457705&lt;br /&gt;eMail   : varadesigns@yahoo.com&lt;br /&gt;&lt;br /&gt;Article Source : http://www.elated.com/articles/styling-links-with-css/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-1445933640921895585?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1445933640921895585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1445933640921895585'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/styling-links-with-css.html' title='Styling Links with CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-2943983474176136397</id><published>2010-06-24T04:45:00.000-07:00</published><updated>2010-06-29T23:02:54.541-07:00</updated><title type='text'>Css tips: how to use the position fixed property?</title><content type='html'>&lt;span style="font-weight:bold;"&gt;What is meant by fixed positioning and what is the difference with absolute positioning?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For &lt;span style="font-weight:bold;"&gt;fixed positioning&lt;/span&gt; the same rules apply as in the case of absolute positioning: the “fixed” value set to the “position” property indicates that the element should be positioned in absolute mode with regard to the HTML root element which coincides with the browser’s area, thus subtracting it from the normal flow of the document. The element is subsequently positioned on the basis of the value of the coordinates provided through the properties: “top”, “left”, “right” or “bottom”.&lt;br /&gt;&lt;br /&gt;The difference with absolute positioning consists in the fact that when the user scrolls the page, the element with fixed positioning does not scroll with it but remains fixed on screen.&lt;br /&gt;&lt;br /&gt;After having discussed the theoretical part it is the moment to pass on to practice and see how to implement this property inside our works.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How is fixed positioning used?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As a practical example we will take into consideration a real case applied to the theme of our blog, the fixed positioning of the three icons relative to our Twitter, Facebook accounts and feed subscription.&lt;br /&gt;If you have a video resolution superior to 1024px of width you must have noticed that these three icons – displayed on the external right side of our blog’s container – keep staying in their original position even when the page scrolls down.&lt;br /&gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt; &lt;br /&gt;&amp;lt;!-- START SOCIAL FIXED --&amp;gt;&lt;br /&gt;&amp;lt;div class="box-fixed"&amp;gt;&lt;br /&gt;    &amp;lt;a href="#" title="YIW on Twitter"&amp;gt;&lt;br /&gt;        &amp;lt;img src="images/bg/fixed/twitterfixed.gif" alt="twitter" /&amp;gt;&lt;br /&gt;    &amp;lt;/a&amp;gt;&lt;br /&gt; &lt;br /&gt;    &amp;lt;a href="#" title="Become a Fan"&amp;gt;&lt;br /&gt;        &amp;lt;img src="images/bg/fixed/facebookfixed.gif" alt="facebook" /&amp;gt;&lt;br /&gt;    &amp;lt;/a&amp;gt;&lt;br /&gt; &lt;br /&gt;    &amp;lt;a href="#" title="subscribe feed"&amp;gt;&lt;br /&gt;        &amp;lt;img src="images/bg/fixed/rssfixed.gif" alt="rss" /&amp;gt;&lt;br /&gt;    &amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;!-- END SOCIAL FIXED --&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You must be asking yourself at what point of the document is this markup inserted?&lt;br /&gt;We said that the fixed positioning subtracts the content from the normal flow of the document thus it can be inserted at any point because it’s anyway going to be subtracted from the flow of the document and positioned on the screen according to the values subsequently defined with the properties: “top”, “left”, “right” or “bottom”.&lt;br /&gt;For example on the theme of YIW we have added it exactly in the beginning of the document, immediately after the &amp;lt;body&amp;gt; tag.&lt;br /&gt;As you might have noticed in the HTML markup we have assigned a class named “box-fixed” to the section which contains the three images; now let’s see which properties to assign to this class so that the contents of this section can always remain fixed on the screen even when the page is scrolled by the user:&lt;br /&gt;&lt;br /&gt;.box-fixed {width:60px;position:fixed;top:370px;right:15px;z-index:0;}&lt;br /&gt;&lt;br /&gt;As you can see – by analyzing the line of code provided above -we have assigned a width of 60px to our box and then we have positioned it in fixed mode on the screen bringing it to a distance of 370px from top of the browser window and to 15px from the right side of the browser window.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What’s the z-index property for?&lt;/span&gt;&lt;br /&gt;Probably you are asking yourself  wondering what’s the “z-index” property for set on zero.&lt;br /&gt;&lt;br /&gt;I would like to dedicate an entire article in the future regarding the use of the “z-index” property since it is a very interesting property introduced by the CSS2 specifications: in practice through the use of this property we can have our boxes on more levels – in case the later are found to occupy the same area of the screen – (for those who use photo-retouch programs the functioning is similar to the layers made available by these applicatives) defining the order of overlapping. The elements which are set on a higher value  are arranged higher compared to elements which have a minor value.&lt;br /&gt;&lt;br /&gt;In our specific case when the user finds himself scrolling the page all the way to the bottom we need to handle the section of the three icons in such a way that it is positioned below the footer layer so that these go under the footer background avoiding to give the unpleasant aesthetic effect of three white squares positioned on a red background. Here’s explained the presence of this property inside our line of code. However, we will resume this argument in a future article in which we will see in depth the use of this property.&lt;br /&gt;&lt;br /&gt;Conclusions&lt;br /&gt;We have said – and I repeat it – that the positioning of elements is one of the toughest arguments regarding the CSS, after the use of absolute positioning dealt with in the previous article this week we have examined also the employment of fixed positioning.&lt;br /&gt;As you had the chance to see, once understood the functioning and use of these properties, there’s little left to obtain effects of a remarkable aesthetic impact and what’s more important you no longer have limits in positioning the elements in the desired spots inside your layout.&lt;br /&gt;And to you, has it ever happened to correct or review yourself a particular layout just because you were not able to position certain elements as they were originally designed?&lt;br /&gt;&lt;br /&gt;Website Designing Services Hyderabad India&lt;br /&gt;&lt;a href="http://www.varadesigns.com"&gt;website designing in hyderabad&lt;/a&gt;&lt;br /&gt;eMail : varadesigns@yahoo.com&lt;br /&gt;contact : +91 9247457705 &lt;br /&gt;&lt;br /&gt;Source : http://www.yourinspirationweb.com/en/css-tips-how-to-use-the-position-fixed-property/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-2943983474176136397?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2943983474176136397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2943983474176136397'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/css-tips-how-to-use-position-fixed.html' title='Css tips: how to use the position fixed property?'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-6573649929686225857</id><published>2010-06-23T00:42:00.000-07:00</published><updated>2010-06-29T23:04:30.491-07:00</updated><title type='text'>Optimizing Your Website Structure For Print Using CSS</title><content type='html'>As much as I read articles online, I still print a fair amount of them out. Sometimes I print them to pass on to others, other times to read again when I have more time. Unfortunately a great deal of websites put no effort into providing their content in a printer-friendly fashion. The result of them overlooking the print audience is a great article not being read. If only these writers knew how easy it can be to optimize their site for print and how it can greatly enhance the value of their website.&lt;br /&gt;&lt;br /&gt;The secret to creating printable pages is being able to identify and control the “content area(s)” of your website. Most websites are composed of a header, footer, sidebars/subnavigation, and one main content area. Control the content area and most of your work is done. The following are my tips to conquering the print media without changing the integrity of your website.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Create A Stylesheet For Print&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Of course you have at least one stylesheet to control the layout of the page and formatting of the content, but do you have a stylesheet to control how your page will look like in print? Add the print style sheet, with the media attribute set to “print”, at the end of the list of stylesheets in the header. This will allow you to create custom CSS classes applied only at the time of print. Make sure your structure CSS file is given a media attribute of “all.”&lt;br /&gt;&lt;br /&gt;re your structure CSS file is given a media attribute of “all.”&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- Main stylesheet on top --&amp;gt;&lt;br /&gt;&amp;lt;link rel="stylesheet" type="text/css" href="/global.css" mce_href="/global.css" href="/global.css" mce_href="/global.css" media="all" /&amp;gt;&lt;br /&gt;&amp;lt;!-- Print only, on bottom --&amp;gt;&lt;br /&gt;&amp;lt;link rel="stylesheet" type="text/css" href="/print.css" mce_href="/print.css" href="/print.css" mce_href="/print.css" media="print" /&amp;gt;&lt;br /&gt;&lt;br /&gt;Click here to copy this code to the clipboardClick here to add this snippet to CodaClick here to add this snippet to TextMateGet the raw code&lt;br /&gt;1&amp;lt;!-- Main stylesheet on top --&amp;gt;&lt;br /&gt;2&amp;lt;link rel="stylesheet" type="text/css" href="/global.css" mce_href="/global.css" href="/global.css" mce_href="/global.css" media="all" /&amp;gt;&lt;br /&gt;3&amp;lt;!-- Print only, on bottom --&amp;gt;&lt;br /&gt;4&amp;lt;link rel="stylesheet" type="text/css" href="/print.css" mce_href="/print.css" href="/print.css" mce_href="/print.css" media="print" /&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Avoid Unnecessary HTML Tables&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As much as I try to steer clear of using tables, there’s no way to avoid the occasional &lt;tr&gt;&lt;td&gt; experience. Forms are much easier to code when using tables. Tables are also great for…get this…data tables. Other than these two situations, a programmer should try to avoid using table, especially when considering print. Controlling the content area of your website can be extremely challenging when the page structure is trapped in a table.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Know Which Portions Of The Page Don’t Have Any Print Value&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You know that awesome banner you have at the top of your site? Ditch it. And those ads on the right and left sides of the page? Goodbye. Web visitors print your page because of the content on it, not to see the supporting images on your website. Create a class called no-print and add that class declaration to DIVS, images, and other elements that have no print value:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;.no-print { display:none; }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- Example --&amp;gt; &lt;br /&gt;&amp;lt;div id="navigation"  class="no-print"&amp;gt; &lt;br /&gt; .... &amp;lt;!-- who needs navigation when you're looking at a printed piece? --&amp;gt;  &lt;br /&gt; &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;Use Page Breaks&lt;br /&gt;&lt;br /&gt;Page breaks in the browser aren’t as reliable as they are in Microsoft Word, especially considering the variable content lengths on dynamically created pages, but when utilized well make all the different in printing your website. The CSS specs don’t provide a lot of print flexibility but the &lt;span style="font-weight:bold;"&gt;page-break-before&lt;/span&gt; / &lt;span style="font-weight:bold;"&gt;page-break-after&lt;/span&gt; properties prove to be useful. Page breaks are much more reliable when used with DIV elements instead of table cells.&lt;br /&gt;&lt;br /&gt;.page-break { page-break-before: always; } /* put this class into your main.css file with "display:none;" */&lt;br /&gt;&lt;br /&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce eu felis. Curabitur sit amet magna. Nullam aliquet. Aliquam ut diam...&lt;br /&gt;&lt;br /&gt;&amp;lt;div class="page-break"&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit....&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Size Your Page For Print&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Obviously your computer monitor can provide a large amount of width to view a page, but I recommend setting the content area width to 600px (an inch equivalent may be better, but I try to deal with one unit specifically, which is pixels). This ensures that words wont bleed outside the print area. Use this width measurement with the page break DIVs you’ve created in your stylesheet. After you know the width of your printed content area, adjust the dimensions of content blocks inside the main content area if necessary.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Test!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Like any type of programming, testing is important. Note that if you have a website that serves dynamic data, you wont be able to win all the time but you may be able to figure a scheme to format content well most of the time. Be sure to test in multiple browsers (when creating customer websites, I try to check all “Grade A” browsers).&lt;br /&gt;&lt;br /&gt;Modifying your page structure for better print results is probably easier than you think — at least improving your existing template will be. Check back soon for part two, where we analyze optimizing a website’s content for print.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;website designing services Hyderabad&lt;/span&gt;&lt;br /&gt;Website : &lt;a href="http://www.varadesigns.com"&gt;web designer hyderabad&lt;/a&gt;&lt;br /&gt;eMail : varadesigns@yahoo.com&lt;br /&gt;Phone : +91 9247457705 &lt;br /&gt;&lt;br /&gt;Source : http://davidwalsh.name/optimizing-structure-print-css&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-6573649929686225857?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6573649929686225857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6573649929686225857'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/optimizing-your-website-structure-for.html' title='Optimizing Your Website Structure For Print Using CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-570414282254145974</id><published>2010-06-22T22:47:00.000-07:00</published><updated>2010-09-23T22:40:07.132-07:00</updated><title type='text'>CSS for Blockin’ Stuff</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-570414282254145974?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/570414282254145974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/570414282254145974'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/css-for-blockin-stuff.html' title='CSS for Blockin’ Stuff'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-2637576568922301053</id><published>2010-06-21T03:20:00.000-07:00</published><updated>2010-06-29T23:00:57.584-07:00</updated><title type='text'>CSS3 Techniques You Should Know</title><content type='html'>Many of you have probably heard all the buzz around CSS3, but exactly which techniques can we use today? In this article I’ll show you some different CSS3 techniques that work great in some of the leading browsers (i.e. Firefox, Chrome, Safari, Opera ), and how they will degrade well in the non-supported browsers (i.e. Internet Explorer). Using browser specific extensions, many of the proposed CSS3 styles can be used today!&lt;br /&gt;&lt;br /&gt;If you aren’t aware of the browser extensions, these are CSS styles with a vendor specific prefix. Since CSS3 is not fully supported yet, we must use these extensions. They are as follows:&lt;br /&gt;&lt;br /&gt;    * Mozilla/Firefox/Gecko: -moz-&lt;br /&gt;    * Webkit (Safari/Chrome): -webkit- (note: Some webkit prefixes only work in Safari, and not Chrome)&lt;br /&gt;&lt;br /&gt;As you might have guessed, one of the downsides of using these extensions is the fact that we must use all of the above prefixes to get the CSS3 style to render in Firefox, Safari, and Chrome. And no surprise to anyone, IE does not support CSS3 or do they have extensions like the other leading browsers. Alright, enough talking, lets dive right in! Note: styles without a prefix are the actual W3 specification proposal.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;A Note About Demos on This Page&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The examples are all on this page, so if you’re not seeing some examples properly (or not at all), then the browser you’re using doesn’t support the particular CSS3 technique.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Drop Shadows&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The drop shadow effect accepts multiple values. First is simply the color of the shadow. It will accept four length values, and the first two are the x (horizontal) offset and the y (vertical) offset. The next value is the amount of blur added to the shadow. The fourth and final value is the spread amount of the blur. Box shadow will also accept an inset keyword that will create an inset shadow.&lt;br /&gt;&lt;br /&gt;box-shadow: #333 3px 3px 4px;&lt;br /&gt;-moz-box-shadow: #333 3px 3px 4px;&lt;br /&gt;-webkit-box-shadow: #333 3px 3px 4px;&lt;br /&gt;&lt;br /&gt;Gradients&lt;br /&gt;&lt;br /&gt;Gradients can be pretty confusing at first, especially when comparing the differences between -moz and -webkit. With -moz you first define the direction of the gradient, then determine the starting and ending color. -webkit gradients take a little more code. First you define the type of gradient. The next two values define the direction. Finally, the last two values define the starting and ending color of the gradient.&lt;br /&gt;&lt;br /&gt;-moz-linear-gradient(-90deg,#1aa6de,#022147);&lt;br /&gt;-webkit-gradient(linear, left top, left bottom, from(#1aa6de), to(#022147));&lt;br /&gt;&lt;br /&gt;RGBA&lt;br /&gt;&lt;br /&gt;The RGBA color method is actually easier than it may look at first. It takes four values, and in order they are: the amount of red, amount of green, amount of blue, and the level of opacity. Instead of using a hex (#) color, you set the color in RGB mode, while the level of opacity can give the color a transparent look. The opacity accepts values between 0 and 1, with 0 being fully opaque and 1 being the actual defined color. The example below has an opacity value of .5, causing the element to be 50% transparent. rgba doesn’t actually require any of the browser extensions.&lt;br /&gt;&lt;br /&gt;background-color: rgba(0, 54, 105, .5);&lt;br /&gt;&lt;br /&gt;HSL&lt;br /&gt;&lt;br /&gt;Along with RGBA, CSS3 may make the HSL color model available to us. This could give us a whole arsenal of colors and tones. In this color model, HSL stands for Hue, Saturation, and Lightness. Hue is a degree on the color wheel, while Saturation and Lightness are percentage values of the colors.&lt;br /&gt;&lt;br /&gt;background-color: hsl(209,41.2%, 20.6%);&lt;br /&gt;&lt;br /&gt;Border Color&lt;br /&gt;&lt;br /&gt;With this style, you must define border-top, border-right, border-bottom, and border-left separately to get the effect below. You will notice that I have defined an 8px border along with 8 different colors for each border color style. That’s because the same amount of colors needs to match the amount of pixels in the border definition.&lt;br /&gt;&lt;br /&gt;border: 8px solid #000;&lt;br /&gt;-moz-border-bottom-colors: #555 #666 #777 #888 #999 #aaa #bbb #ccc;&lt;br /&gt;-moz-border-top-colors:    #555 #666 #777 #888 #999 #aaa #bbb #ccc;&lt;br /&gt;-moz-border-left-colors:   #555 #666 #777 #888 #999 #aaa #bbb #ccc;&lt;br /&gt;-moz-border-right-colors:  #555 #666 #777 #888 #999 #aaa #bbb #ccc;&lt;br /&gt;&lt;br /&gt;Text Selection Color&lt;br /&gt;&lt;br /&gt;I have to say I think that changing the text selection color is a pretty exciting new feature. I first saw this on css-tricks and thought it was pretty sweet. With the ::selection pseudo-element, you can change the color and background when the user highlights a text element. Pretty nifty if you ask me. ::selection was removed form the current CSS3 draft, but lets hope they add it back in later!&lt;br /&gt;&lt;br /&gt;::selection {&lt;br /&gt;background: #3C0; /* Safari */&lt;br /&gt;color: #90C;&lt;br /&gt;}&lt;br /&gt;::-moz-selection {&lt;br /&gt;background: #3C0; /* Firefox */&lt;br /&gt;color: #90C;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Transform&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;With the transform style, you can make elements appear to “grow” when hovered. With a value above 1 added to scale, the element will increase in size. On the other hand, a value below 1 will cause the element to decrease in size. Along with scale, their are many different transforms available to use. Visit Firefox’s developer page to see what else you can use.&lt;br /&gt;&lt;br /&gt;-moz-transform: scale(1.15);&lt;br /&gt;-webkit-transform: scale(1.15)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Multi-column Layout&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;With this new multi-column layout style, we can give our text a “newspaper” type look. This is very simple to implament compared to the normal way of doing this through CSS. Below I specified how many columns I want, what type of rule I want to seperate them, and how big of a gap I want between the columns. Simple huh?&lt;br /&gt;&lt;br /&gt;-moz-column-count:3;&lt;br /&gt;-moz-column-rule: solid 1px black;&lt;br /&gt;-moz-column-gap: 20px;&lt;br /&gt;&lt;br /&gt;For Website Designing Services&lt;br /&gt;&lt;a href="http://www.varadesigns.com"&gt;website designing hyderabad&lt;/a&gt;&lt;br /&gt;eMail : varadesigns@yahoo.com&lt;br /&gt;phone : +91 9247457705&lt;br /&gt;&lt;br /&gt;Source : &lt;a href="http://sixrevisions.com/css/css3-techniques-you-should-know/"&gt;http://sixrevisions.com/css/css3-techniques-you-should-know/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-2637576568922301053?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2637576568922301053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2637576568922301053'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/css3-techniques-you-should-know.html' title='CSS3 Techniques You Should Know'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-480348832202912824</id><published>2010-06-19T22:39:00.000-07:00</published><updated>2010-06-19T22:50:16.449-07:00</updated><title type='text'>Clearing Floats The Old Fashioned Way</title><content type='html'>When a float is contained within a container box that has a visible border or background, that float does not automatically force the container's bottom edge down as the float is made taller. Instead the float is ignored by the container and will hang down out of the container bottom like a flag. Those familiar only with Explorer for Windows may scratch their heads and say "That's not right!" True, IE/Win does enclose a float within a container 'automatically', but only if the container element happens to possess the MS-only quality called hasLayout.&lt;br /&gt;&lt;br /&gt;This float-enclosing behavior in IE can also be 'toggled' off again just by hovering of links within the container, if that hovering alters either the link background or one of several other CSS properties. Quite a mess, and we'll cover it farther along in the article, in the "Toggle Trouble" section.&lt;br /&gt;&lt;br /&gt;The W3C suggests placing a "cleared" element last in the container box, which is then recognized by the container height, forcing the container to enclose the float above that cleared element too. It's described more fully our article Float: The Theory:&lt;br /&gt;&lt;br /&gt;    “..let's say you give that following box the clear property,  {clear: both;} . What this does is extend the margin on the top of the cleared box, pushing it down until it "clears" the bottom of the float. In other words, the top margin on the cleared box (no matter what it may have been set to), is increased by the browser, to whatever length is necessary to keep the cleared box below the float.” &lt;br /&gt;&lt;br /&gt;So in effect, such a cleared box cannot be at the same horizontal level as a preceding float. It must appear just below that level. The image shows how this might look, with a red border representing the container element: &lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_v5h8enSm2is/TB2rEtxzVsI/AAAAAAAAACQ/aAMd-USsyYk/s1600/clear-box.gif"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 220px;" src="http://1.bp.blogspot.com/_v5h8enSm2is/TB2rEtxzVsI/AAAAAAAAACQ/aAMd-USsyYk/s400/clear-box.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5484728018703439554" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The standard method of making an outer container appear to "enclose" a nested float is to place a complete "cleared" element last in the container, which has the effect of 'dragging' the lower edge of the containing box lower than the float. Thus the float appears to be enclosed within the container even tho it really isn't. The code for a cleared box usually looks something like this: &lt;br /&gt;&lt;br /&gt;&amp;lt;div&amp;gt; &amp;lt;!-- float container --&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;div style="float:left; width:30%;"&amp;gt;&amp;lt;p&amp;gt;Some content&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;p&amp;gt;Text not inside the float&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div style="clear:both;"&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;Since that div is not floated, the container must recognize it and enclose it, and because of that top margin (added by the browser because of the "clear" property), the div "pulls" the bottom edge of the container down below the bottom edge of the float.&lt;br /&gt;Problems With The Method&lt;br /&gt;&lt;br /&gt;First and foremost, this clearing method is not at all intuitive, requiring an extra element be added to the markup. One of the major premises of CSS is that it helps reduce the bloated HTML markup found it the average site these days. So having to re-bloat the markup just so floats can be kept within their containers is not an ideal arrangement.&lt;br /&gt;&lt;br /&gt;Besides that, some browsers can have trouble with certain kinds of clearing elements in some situations. Mozilla is particularly sensitive to clearing problems.&lt;br /&gt;&lt;br /&gt;Up 'til now there was no other way to do this, but no more! Thanks to the efforts of Tony Aslett, creator and operator of csscreator.com, we can now use advanced CSS to "clear" a float container in non-IE browsers and just let IE keep wrongly clearing itself. The upshot is that we now have the option to avoid adding that pesky clearing element to the HTML markup. Woohoo!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;"Clearing", 21st Century Style&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the new method, no clearing element is used. This does not affect IE/Win which simply keeps enclosing the float as always (assuming the container has a stated dimension), but non-IE browsers will need a substitute for that element. Here's how it's done.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Using :after&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This CSS 2 property allows extra content to be added at the end of an element via the CSS. That means no actual markup is needed in the HTML. The content is specified from within the CSS stylesheet, and appears in the page as would a real HTML element that had been inserted following all the normal content of the target element. Such :after generated content cannot receive some CSS properties, including 'position', 'float', list properties, and table properties. However, the 'clear' property is allowed. Do you see where we are going here?&lt;br /&gt;&lt;br /&gt;Imagine that we use :after to insert a simple character like a 'period', and then give that generated element  {clear: both;} . That's all you really need to do the job, but no one wants a line space messing up the end of their clean container box, so we also use  {height: 0;}  and  {visibility: hidden;}  to keep our period from showing. &lt;br /&gt;&lt;br /&gt;.clearfix:after {&lt;br /&gt;    content: ".";&lt;br /&gt;    display: block;&lt;br /&gt;    height: 0;&lt;br /&gt;    clear: both;&lt;br /&gt;    visibility: hidden;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Notice that  {display: block;}  is also applied to the :after element, because if it isn't then that element defaults to "inline", and cannot receive the "clear" property. Also, Tony's method originally used "overflow: hidden;" to hide the period, but sadly the latest FireFox versions will display the period if this is done.&lt;br /&gt;But what about IE?&lt;br /&gt;&lt;br /&gt;Since IE7 does not support the :after pseudoclass yet, we must rely on the same"auto-clearing" effect used for IE6, and that behavior happens when the float-containing element gets hasLayout applied to it. A simple declaration of "zoom: 1;" will perform this trick in IE5.5 and up, but it's proprietary and needs to be hidden in order to validate.&lt;br /&gt;&lt;br /&gt;As a side benefit, hasLayout on float-enclosing elements also prevents several other major IE/Win float bugs. However, should this container box be placed following a previous external float, the IE height fix will trigger Microsoft's proprietary and illegal Float Model, so watch out for that, okay?&lt;br /&gt;Toggle Trouble&lt;br /&gt;&lt;br /&gt;It so happens that IE has, well, a little problem with this auto-enclosing behavior. You saw that coming, didn't you. Yes, IE bugs come in big bunches. This one results when that container element has links inside, following the float. When this happens and certain links are hovered, the auto-enclosing behavior is toggled or "switched off", causing the lower edge of the container box to suddenly jump up to the bottom of the non-floated content. Hovering other links restores the behavior. This interesting effect is of course called the IE/Win Guillotine Bug Those of you viewing in IE/Win may play around with the following live demos, and for a more complete explanation see the IE/Win Guillotine Bug demo page .&lt;br /&gt;&lt;br /&gt;The toggling only occurs when a:hover is used to change the link background or many other styling changes, such as padding, margin, or any font styling on the link. Strangely, having the text color change on hover does not toggle the bug.&lt;br /&gt;&lt;br /&gt;The containers are grey with green borders, and the floats are dark brown with yellow borders. Notice how the third and fourth links ouside the floats toggle the Guillotine Bug, and the first two un-toggle it. This seems to be related to the actual text lines themselves, so any links after the first two lines will toggle the effect. Links in the float will all un-toggle the effect. Just more weird IE bug behaviors, folks, nothing "unusual".&lt;br /&gt;Screenshot &lt;br /&gt;&lt;br /&gt;The second demo has been "fixed" by placing those links in a paragraph, which then gets the zoom fix applied to it. Any block element will do just as well here. Yes, this means another element is needed, but unlike a clearing div, this paragraph is a "semantic" element. Text content really ought to be wrapped in semantic containers anyway, and since we forward-thinking coders always have our content thusly contained, it's easy to apply the same .clearfix class to one more element.&lt;br /&gt;A Word About Floats In Floats&lt;br /&gt;&lt;br /&gt;Observant readers will have noticed that the above demos have "enclosed" floats, even in Opera 7 and Mozilla! This is because the demos themselves are floats, and all modern browsers (including IE, luckily) always let floats enclose other floats. Of course there has to be an outer float, and it still threatens to break out of its container...&lt;br /&gt;Putting It Together&lt;br /&gt;&lt;br /&gt;First, this code gets added to the CSS stylesheet: &lt;br /&gt;&lt;br /&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;&lt;br /&gt;  .clearfix:after {&lt;br /&gt;    content: ".";&lt;br /&gt;    display: block;&lt;br /&gt;    height: 0;&lt;br /&gt;    clear: both;&lt;br /&gt;    visibility: hidden;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&amp;lt;/style&amp;gt;&amp;lt;!-- main stylesheet ends, CC with new stylesheet below... --&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!--[if IE]&amp;gt;&lt;br /&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;  .clearfix {&lt;br /&gt;    zoom: 1;     /* triggers hasLayout */&lt;br /&gt;    }  /* Only IE can see inside the conditional comment&lt;br /&gt;    and read this CSS rule. Don't ever use a normal HTML&lt;br /&gt;    comment inside the CC or it will close prematurely. */&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&amp;lt;![endif]--&amp;gt;&lt;br /&gt;&lt;br /&gt;For the HTML, just add a class of .clearfix to any element containing a float needing to be cleared, plus any Guillotine-Bug-fixing block elements within the container. That's it! It's not perfect, but it's a whole lot better than adding an entire extra 'dummy' element. Check out this live demo of the fix in action: &lt;br /&gt;&lt;br /&gt;IE/Mac Strikes Back&lt;br /&gt;&lt;br /&gt;All this is wonderful, but unfortunately IE for the Mac does not "auto-clear" floats, and also does not support :after, and so is left out of the clearing party. What's to be done?&lt;br /&gt;&lt;br /&gt;You might callously abandon IE/Mac, but consider that many people who use older Macs can't run Safari, or several other modern browsers. Thankfully this browser has been dropped by Microsoft, and at some future time the numbers of such IE/Mac users will become miniscule. Remember that even if a float appears to stick out of a container, no content will actually be obscured. It just won't look as pretty for those few viewers, that's all. Each author will have to decide on this issue according to their specific needs.&lt;br /&gt;&lt;br /&gt;This page once described a Javascript method to force compliance in IE/Mac, but now thanks to Mark Hadley and Matt Keogh it's now possible to dispense with that ugly Javascript and go with a straight CSS fix. Woohoo!&lt;br /&gt;Taming the IE/Mac Float Problem&lt;br /&gt;&lt;br /&gt;Basically the fix is just a matter of applying a display: inline-block; to the .clearfix class, and hiding that property from all other browsers. That's it! We can easily do this with our existing code, slightly modified. &lt;br /&gt;&lt;br /&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;&lt;br /&gt;  .clearfix:after {&lt;br /&gt;    content: ".";&lt;br /&gt;    display: block;&lt;br /&gt;    height: 0;&lt;br /&gt;    clear: both;&lt;br /&gt;    visibility: hidden;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;.clearfix {display: inline-block;}  /* for IE/Mac */&lt;br /&gt;&lt;br /&gt;&amp;lt;/style&amp;gt;&amp;lt;!-- main stylesheet ends, CC with new stylesheet below... --&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!--[if IE]&amp;gt;&lt;br /&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;  .clearfix {&lt;br /&gt;    zoom: 1;     /* triggers hasLayout */&lt;br /&gt;    display: block;     /* resets display for IE/Win */&lt;br /&gt;    }  /* Only IE can see inside the conditional comment&lt;br /&gt;    and read this CSS rule. Don't ever use a normal HTML&lt;br /&gt;    comment inside the CC or it will close prematurely. */&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&amp;lt;![endif]--&amp;gt;&lt;br /&gt;&lt;br /&gt;The .clearfix {display: inline-block;} is seen by all browsers, and fixes IE/Mac. Then, inside the rule set that is hidden from IE/Mac, the display is reset to block. That's all she wrote! Simply stick the above code into your CSS, and use .clearfix on any box that has to contain a sizable float. Ain't that cool? Just watch out for previous external floats triggering the IE Float Model, as mentioned earlier.&lt;br /&gt;&lt;br /&gt;Kudos to Alex Robinson for finding that inline-block is superior to the older inline-table fix for IE/Mac.&lt;br /&gt;A Word Of Warning (this is important!)&lt;br /&gt;&lt;br /&gt;The W3C float specification requires that a cleared element shall stay below all previous floats. There are no exceptions to this requirement! "Previous" in this case means any float that comes earlier in the source document.&lt;br /&gt;&lt;br /&gt;Up until November of 2004, Firefox was still incorrectly clearing only the floats that were vertically above the clearing element, rather than all previous floats. This meant that in those earlier Gecko browsers you could place a floated column down one side of the screen, and inside another column (possibly another floated column) you could clear a smaller interior float, without that cleared element dropping below the previous floated column. Since only Gecko had this problem, it was obvious that something was wrong every time this happened to a page. Normally Gecko is the good browser, but in this one case it was the culprit. See, IE is not always the bad guy!&lt;br /&gt;&lt;br /&gt;However, this easy clearing method has muddled the issue quite a bit, since now Explorer is not actually being cleared at all, while Gecko browsers have finally been corrected so they do clear all previous floats.&lt;br /&gt;&lt;br /&gt;...Oh no! Do you see what will now happen in our hypothetical float page? IE, seeing no real clearing elements, will look great. Meanwhile, in newer Gecko browsers and Opera 7, the CSS generated clearing element in the first easycleared box will drag the height of that box waaaay down the page, until that invisible clearer is vertically below the bottom of the previous float column (assuming there is a bottom!). This can "generate" a huge empty space inside that once-small easycleared box, depending on the actual height of the neighboring float column.&lt;br /&gt;&lt;br /&gt;Of course Opera 7 has always correctly implimented the clearing specs just like IE does (aside from bugs), and the Mac browsers are not involved either. If you are wondering how this issue can be fixed, well, it can't. Gecko and Opera are now both following the float clearing specs correctly, and IE only fails because of the faked "clearing" we are forcing upon it.&lt;br /&gt;Preventing External Clearing&lt;br /&gt;&lt;br /&gt;If you have the above described problem, one way to prevent the clearer from clearing the adjacent float column is to make the container a float itself. Of course once you float the container you no longer need easyclearing, sigh...&lt;br /&gt;&lt;br /&gt;Note that when all the main elements in a column setup are floats, the worst IE float bugs simply do not happen. Thus using an all-float approach to column design can actually be easier to accomplish, at least within a rigid-width layout. &lt;br /&gt;&lt;br /&gt;Source : http://www.positioniseverything.net/easyclearing.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-480348832202912824?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/480348832202912824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/480348832202912824'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/clearing-floats-old-fashioned-way.html' title='Clearing Floats The Old Fashioned Way'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_v5h8enSm2is/TB2rEtxzVsI/AAAAAAAAACQ/aAMd-USsyYk/s72-c/clear-box.gif' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-7252288198007239838</id><published>2010-06-17T00:39:00.001-07:00</published><updated>2010-09-23T22:39:05.581-07:00</updated><title type='text'>Date Display Technique with Sprites</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-7252288198007239838?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/7252288198007239838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/7252288198007239838'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/date-display-technique-with-sprites.html' title='Date Display Technique with Sprites'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-1150628910525350533</id><published>2010-06-15T23:08:00.001-07:00</published><updated>2010-09-23T22:38:29.844-07:00</updated><title type='text'>Overriding The Default Text Selection Color With CSS</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-1150628910525350533?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1150628910525350533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1150628910525350533'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/overriding-default-text-selection-color.html' title='Overriding The Default Text Selection Color With CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-8043541309303884879</id><published>2010-06-15T22:49:00.001-07:00</published><updated>2010-09-23T22:37:55.499-07:00</updated><title type='text'>IE CSS Bugs That’ll Get You Every Time</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-8043541309303884879?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8043541309303884879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8043541309303884879'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/ie-css-bugs-thatll-get-you-every-time.html' title='IE CSS Bugs That’ll Get You Every Time'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-2981366183358554920</id><published>2010-06-15T22:36:00.000-07:00</published><updated>2010-09-23T22:37:29.390-07:00</updated><title type='text'>Yay for HSLa</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-2981366183358554920?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2981366183358554920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/2981366183358554920'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/yay-for-hsla.html' title='Yay for HSLa'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-4428463406951999394</id><published>2010-06-14T00:05:00.000-07:00</published><updated>2010-06-14T00:07:16.793-07:00</updated><title type='text'>Font Stacks</title><content type='html'>&lt;span style="font-weight:bold;"&gt;/* Times New Roman-based stack */&lt;/span&gt;&lt;br /&gt;font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/* Modern Georgia-based serif stack */&lt;/span&gt;&lt;br /&gt;font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif," "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;/* Traditional Garamond-based serif stack */&lt;/span&gt;&lt;br /&gt;font-family: "Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/* Helvetica/Arial-based sans serif stack */&lt;/span&gt;&lt;br /&gt;font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans serif;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/* Verdana-based sans serif stack */&lt;/span&gt;&lt;br /&gt;font-family: Corbel, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans serif;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/* Trebuchet-based sans serif stack */&lt;/span&gt;&lt;br /&gt;font-family: "Segoe UI", Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans serif;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/* Impact-based sans serif stack */&lt;/span&gt;&lt;br /&gt;font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, "Helvetica Inserat", "Bitstream Vera Sans Bold", "Arial Black", sans serif;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/* Monospace stack */&lt;/span&gt;&lt;br /&gt;font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sitepoint.com/article/eight-definitive-font-stacks" target="_blank"&gt;Reference URL&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-4428463406951999394?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4428463406951999394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/4428463406951999394'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/font-stacks.html' title='Font Stacks'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-8432563252390442719</id><published>2010-06-09T22:48:00.000-07:00</published><updated>2010-06-09T23:01:20.905-07:00</updated><title type='text'>Web Style Sheets CSS tips &amp; tricks</title><content type='html'>CSS offers a number of different units for expressing length. Some have their history in typography, such as point (pt) and pica (pc), others are known from everyday use, such as centimeter (cm) and inch (in). And there is also a “magic” unit that was invented specifically for CSS: the px. Does that mean different properties need different units?&lt;span style="font-weight:bold;"&gt;em, px, pt, cm, in…&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CSS offers a number of different units for expressing length. Some have their history in typography, such as point (pt) and pica (pc), others are known from everyday use, such as centimeter (cm) and inch (in). And there is also a “magic” unit that was invented specifically for CSS: the px. Does that mean different properties need different units?&lt;br /&gt;&lt;br /&gt;No, the units have nothing to do with the properties, but everything with the output media: screen or paper.&lt;br /&gt;&lt;br /&gt;There is no restriction on which units can be used where. If a property accepts a value in px ('margin: 5px') it also accepts a value in inches or centimeters ('margin: 1.2in; margin: 0.5cm') and vice-versa.&lt;br /&gt;&lt;br /&gt;But in general you would use a different set of units for display on screen than for printing on paper. The following table gives the recommended use: &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;Style sheets for output to a screen&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Recommended &lt;/span&gt; - em, px, % &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Occasional use&lt;/span&gt; - ex &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Not recommended&lt;/span&gt; - pt, cm, mm, in, pc &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;Style sheets for printing&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Recommended &lt;/span&gt; - em, cm, mm, in, pt, pc, %&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Occasional use&lt;/span&gt; - px, ex &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The so-called absolute units (cm, mm, in, pt and pc) mean the same in CSS as everywhere else. A length expressed in any of these will appear as exactly that size (within the precision of the hardware and software). They are not recommended for use on screen, because screen sizes vary so much. A big screen may be 60cm (24in), a small, portable screen is maybe only 8cm. And you don't look at them from the same distance.&lt;br /&gt;&lt;br /&gt;The em and ex units depend on the font and may be different for each element in the document. The em is simply the font size. In an element with a 2in font, 1em thus means 2in. Expressing sizes, such as margins and paddings, in em means they are related to the font size, and if the user has a big font (e.g., on a big screen) or a small font (e.g., on a handheld device), the sizes will be in proportion. Declarations such as 'text-indent: 1.5em' and 'margin: 1em' are extremely common in CSS.&lt;br /&gt;&lt;br /&gt;The ex unit is rarely used. Its purpose is to express sizes that must be related to the x-height of a font. The x-height is, roughly, the height of lowercase letters such as a, c, m, or o. Fonts that have the same size (and thus the same em) may vary wildly in the size of their lowercase letters, and when it is important that some image, e.g., matches the x-height, the ex unit is available.&lt;br /&gt;&lt;br /&gt;The px unit is the magic unit of CSS. It is not related to the current font and also not related to the absolute units. The px unit is defined to be small but visible, and such that a horizontal 1px wide line can be displayed with sharp edges (no anti-aliasing). What is sharp, small and visible depends on the device and the way it is used: do you hold it close to your eyes, like a mobile phone, at arms length, like a computer monitor, or somewhere in between, like a book? The px is thus not defined as a constant length, but as something that depends on the type of device and its typical use.&lt;br /&gt;&lt;br /&gt;The relation between the absolute units is as follows: &lt;br /&gt;1in = 2.54cm = 25.4mm = 72pt = 12pc &lt;br /&gt;&lt;br /&gt;If you have a ruler handy you can check how precise your device is: here is a box of 1in (2.54cm) high: &lt;br /&gt;&lt;br /&gt;To get an idea of the appearance of a px, imagine a CRT computer monitor from the 1990s: the smallest dot it can display measures about 1/100th of an inch (0.25mm) or a little more. The px unit got its name from those screen pixels.&lt;br /&gt;&lt;br /&gt;Nowadays there are devices that could in principle display smaller sharp dots (although you might need a magnifier to see them). But documents from the last century that used px in CSS still look the same, no matter what the device. Printers, especially, can display sharp lines with much smaller details than 1px, but even on printers, a 1px line looks very much the same as it would look on a computer monitor. Devices change, but the px always has the same visual appearance.&lt;br /&gt;&lt;br /&gt;CSS also defines that raster images (such as photos) are, by default, displayed with one image pixel mapping to 1px. Thus a photo with a 600 by 400 resolution will be 600px wide and 400px high. The pixels in the photo thus do not map to pixels of the display device (which may be very small), but map to px units. That makes it possible to exactly align images to other elements of a document, as long as you use px units in your style sheet, and not pt, cm, etc. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Use em or px for font sizes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CSS inherited the units pt (point) and pc (pica) from typography. Printers have traditionally used those and similar units in preference to cm or in. In CSS there is no reason to use pt, use whichever unit you prefer. But there is a good reason to use neither pt nor any other absolute unit and only use em and px. &lt;br /&gt;&lt;br /&gt;The magic unit of CSS, the px, is a often a good unit to use, especially if the style requires alignment of text to images, or simply because anything that is 1px or a multiple of 1px wide is guaranteed to look sharp.&lt;br /&gt;&lt;br /&gt;But for font sizes it is even better to use em. The idea is (1) to not set the font size of the BODY element (in HTML), but use the default size of the device, because that is a size that the reader can comfortably read; and (2) express font sizes of other elements in em: 'H1 {font-size: 2.5em}' to make the H1 2½ times as big as the normal, body font.&lt;br /&gt;&lt;br /&gt;The only place where you could use pt (or cm or in) for setting a font size is in style sheets for print, if you need to be sure the printed font is exactly a certain size. But even there using the default font size is usually better. &lt;br /&gt;&lt;br /&gt;Here are a few lines of different thickness. Some or all of them may look sharp, but at least the 1px and 2px lines should be sharp and visible:&lt;br /&gt;&lt;br /&gt;0.5pt, 1px, 1pt, 1.5px, 2px&lt;br /&gt;&lt;br /&gt;If the first four lines all look the same (or if the 0.5pt line is missing), you are probably looking at a computer monitor that cannot display dots smaller than 1px. If the lines appear to increase in thickness, you are probably looking at this page on a high-quality computer screen or on paper. And if 1pt looks thicker than 1.5px, you probably have a handheld screen. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;More units in CSS in the future&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To make it even easier to make style rules that depend only on the default font size, a new unit is in development: the rem. The rem (for “root em”) is the font size of the root element of the document. Unlike the em, which may be different for each element, the rem is constant throughout the document.&lt;br /&gt;&lt;br /&gt;Other units in development make it possible to specify sizes relative to the reader's window. These are the vw and vh. The vw is 1/100th of the window's width and the vh is 1/100th of the window's height. &lt;br /&gt;&lt;br /&gt;Article Source : http://www.w3.org/Style/Examples/007/units&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.varadesigns.com"&gt;Website Design at Low Cost &lt;/a&gt;&lt;br /&gt;eMail : varadesigns@yahoo.com&lt;br /&gt;Contact : +91 9247457705&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-8432563252390442719?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8432563252390442719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8432563252390442719'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/web-style-sheets-css-tips-tricks.html' title='Web Style Sheets CSS tips &amp; tricks'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-8567380636492579531</id><published>2010-06-07T03:47:00.000-07:00</published><updated>2010-09-24T01:37:42.890-07:00</updated><title type='text'>Horizontal Menu Bar with Push Button Effect</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-8567380636492579531?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8567380636492579531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/8567380636492579531'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/horizontal-menu-bar-with-push-button.html' title='Horizontal Menu Bar with Push Button Effect'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-9094804804902036558</id><published>2010-06-05T01:17:00.000-07:00</published><updated>2010-06-05T01:18:26.535-07:00</updated><title type='text'>iPad Orientation CSS</title><content type='html'>&amp;lt;link rel="stylesheet" media="all and (orientation:portrait)" href="portrait.css"&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;link rel="stylesheet" media="all and (orientation:landscape)" href="landscape.css"&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-9094804804902036558?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/9094804804902036558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/9094804804902036558'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/ipad-orientation-css.html' title='iPad Orientation CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-7968535113632584392</id><published>2010-06-03T02:22:00.000-07:00</published><updated>2010-09-24T01:37:15.417-07:00</updated><title type='text'>CSS Pseudo Properties</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-7968535113632584392?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/7968535113632584392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/7968535113632584392'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/css-pseudo-properties.html' title='CSS Pseudo Properties'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-587109999346720800</id><published>2010-06-02T00:52:00.000-07:00</published><updated>2010-09-24T01:36:34.200-07:00</updated><title type='text'>Cross-Browser hr Styling</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-587109999346720800?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/587109999346720800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/587109999346720800'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/cross-browser-hr-styling.html' title='Cross-Browser hr Styling'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-39736522079548790</id><published>2010-06-02T00:48:00.000-07:00</published><updated>2010-06-02T00:50:44.683-07:00</updated><title type='text'>PNG Hack/Fix for IE 6</title><content type='html'>&lt;span style="font-weight:bold;"&gt;For CSS background-images&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;.yourselector {&lt;br /&gt;       width:200px;&lt;br /&gt;       height:100px;&lt;br /&gt;       background: url(/folder/yourimage.png) no-repeat;&lt;br /&gt;       _background:none;&lt;br /&gt;       _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/folder/yourimage.png',sizingMethod='crop');&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Cannot be used with repeating, needs fixed with and height.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;For inline HTML images&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;img, .png {&lt;br /&gt;       position: relative;&lt;br /&gt;       behavior: expression((this.runtimeStyle.behavior="none")&amp;&amp;(this.pngSet?this.pngSet=true:(this.nodeName == "IMG" &amp;&amp; this.src.toLowerCase().indexOf('.png')&gt;-1?(this.runtimeStyle.backgroundImage = "none",&lt;br /&gt;       this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='image')",&lt;br /&gt;       this.src = "images/transparent.gif"):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),&lt;br /&gt;       this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "', sizingMethod='crop')",&lt;br /&gt;       this.runtimeStyle.backgroundImage = "none")),this.pngSet=true));&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-39736522079548790?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/39736522079548790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/39736522079548790'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/png-hackfix-for-ie-6.html' title='PNG Hack/Fix for IE 6'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-6849292275379891201</id><published>2010-06-01T06:00:00.000-07:00</published><updated>2010-09-23T22:35:29.806-07:00</updated><title type='text'>Efficiently Rendering CSS</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-6849292275379891201?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6849292275379891201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6849292275379891201'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/06/efficiently-rendering-css.html' title='Efficiently Rendering CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-7319637560781635334</id><published>2010-05-31T00:33:00.000-07:00</published><updated>2011-01-30T22:32:15.224-08:00</updated><title type='text'>Rounded Corners Without Images</title><content type='html'>&lt;span style="display:block; padding:8px; border:2px dashed #CC0000; background:#f6f6f6; font-size:1em; font-family:'Trebuchet MS';"&gt;Are you searching for best website designer in Hyderabad, India? VaraDesigns is the best website designers Hyderabad, India, specialized in eCommerce, custom website design, Logo designing, flash, templates, SEO and web hosting. &lt;br /&gt;&lt;a href=" http://www.varadesigns.com/"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Best Website Designer India&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;CSS&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.varadesigns.com" target="_blank"&gt;&lt;br /&gt;&lt;img src="http://www.varadesigns.com/bannerads/banner2.jpg" border="0" alt="Website Designing At Low Cost" /&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;b.rtop, b.rbottom{display:block;background: #FFF}&lt;br /&gt;b.rtop b, b.rbottom b{display:block;height: 1px; overflow: hidden; background: #9BD1FA}&lt;br /&gt;b.r1{margin: 0 5px}&lt;br /&gt;b.r2{margin: 0 3px}&lt;br /&gt;b.r3{margin: 0 2px}&lt;br /&gt;b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px}&lt;br /&gt;&lt;br /&gt;h1,h2,p{margin: 0 10px}&lt;br /&gt;h1{font-size: 250%;color: #FFF}&lt;br /&gt;h2{font-size: 200%;color: #f0f0f0}&lt;br /&gt;p{padding-bottom:1em}&lt;br /&gt;h2{padding-top: 0.3em}&lt;br /&gt;div#rou{ margin: 0 10%;background: #9BD1FA}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HTML&lt;/span&gt;&lt;br /&gt;&amp;lt;div id="nifty"&amp;gt;&lt;br /&gt;&amp;lt;b class="rtop"&amp;gt;&lt;br /&gt;    &amp;lt;b class="r1"&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;    &amp;lt;b class="r2"&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;    &amp;lt;b class="r3"&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;    &amp;lt;b class="r4"&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;&amp;lt;/b&amp;gt;&lt;br /&gt;&amp;lt;h1&amp;gt;Rounded Corners&amp;lt;/h1&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;Rounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without images&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;h2&amp;gt;Rounded corners without images&amp;lt;/h2&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;Rounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without images&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;Rounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without images&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;Rounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without imagesRounded corners without images&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;b class="rbottom"&amp;gt;&amp;lt;b class="r4"&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;b class="r3"&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;b class="r2"&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;b class="r1"&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;&lt;br /&gt;Source : www.html.it&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-7319637560781635334?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/7319637560781635334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/7319637560781635334'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/05/rounded-corners-without-images.html' title='Rounded Corners Without Images'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-1365108287702151169</id><published>2010-05-30T22:43:00.000-07:00</published><updated>2010-05-30T22:44:04.606-07:00</updated><title type='text'>Flip an Image Throuch CSS</title><content type='html'>You can flip images with CSS! Possible scenario: having only one graphic for an “arrow”, but flipping it around to point in different directions.&lt;br /&gt;&lt;br /&gt;img {&lt;br /&gt;        -moz-transform: scaleX(-1);&lt;br /&gt;        -o-transform: scaleX(-1);&lt;br /&gt;        -webkit-transform: scaleX(-1);&lt;br /&gt;        transform: scaleX(-1);&lt;br /&gt;        filter: FlipH;&lt;br /&gt;        -ms-filter: "FlipH";&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-1365108287702151169?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1365108287702151169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/1365108287702151169'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/05/flip-image-throuch-css.html' title='Flip an Image Throuch CSS'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-6884633037568448689</id><published>2010-05-26T22:48:00.000-07:00</published><updated>2010-05-26T22:55:02.761-07:00</updated><title type='text'>Simple and Nice Blockquote Styling</title><content type='html'>The blockquote displays in standards-compliant browsers with the “big quotes before” effect, and in IE with a thick left border and a light grey background.&lt;br /&gt;Unlike other blockquote techniques, this style does not require a nested block-level element (like p). As such, it turns a paragraph into an inline-styled element to keep the content from dropping below the quote.&lt;br /&gt;&lt;br /&gt;blockquote {&lt;br /&gt;background:#f9f9f9;&lt;br /&gt;border-left:10px solid #ccc;&lt;br /&gt;margin:1.5em 10px;&lt;br /&gt;padding:.5em 10px;&lt;br /&gt;quotes:"\201C""\201D""\2018""\2019";&lt;br /&gt;}&lt;br /&gt;blockquote:before {&lt;br /&gt;color:#f00;&lt;br /&gt;content:open-quote;&lt;br /&gt;font-size:4em;&lt;br /&gt;line-height:.1em;&lt;br /&gt;margin-right:.25em;&lt;br /&gt;vertical-align:-.4em;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;blockquote:after {&lt;br /&gt;color:#f00;&lt;br /&gt;content:open-quote;&lt;br /&gt;font-size:4em;&lt;br /&gt;line-height:.1em;&lt;br /&gt;margin-right:.25em;&lt;br /&gt;vertical-align:-.5em;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;blockquote p {&lt;br /&gt;display:inline;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Example&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_v5h8enSm2is/S_4ImQ55_qI/AAAAAAAAAA4/fA5kOF6afD8/s1600/bquote.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_v5h8enSm2is/S_4ImQ55_qI/AAAAAAAAAA4/fA5kOF6afD8/s400/bquote.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5475823650394996386" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-6884633037568448689?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6884633037568448689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6884633037568448689'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/05/simple-and-nice-blockquote-styling.html' title='Simple and Nice Blockquote Styling'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_v5h8enSm2is/S_4ImQ55_qI/AAAAAAAAAA4/fA5kOF6afD8/s72-c/bquote.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-6765360061367593262.post-6516085855237618493</id><published>2010-05-26T10:01:00.000-07:00</published><updated>2010-05-26T10:08:06.365-07:00</updated><title type='text'>How to size text using ems</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Update: My more recent article on A List Apart, How to Size Text in CSS, provides more up-to-date info on sizing text using ems.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Text for the screen is sized with CSS in terms of pixels, ems or keywords. As most of us know, sizing with pixels is easy: get your selector and give it a font-size – no more thought required. Sizing with keywords is more complicated and requires a few workarounds, but you’re in luck as the techniques are well documented. That leaves ems. At this point people often leg it. ‘Ems are too inconsistent,’ they say, ‘they’re too hard; they never work.’ Well that may be the received wisdom, but if ever the was a case of FUD then this is it. I will now attempt to show you how ems can be as quick and easy to use as pixels.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Why ems?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If the world were an ideal place, we’d all use pixels. But it’s not, we have the broken browser to contend with. IE/Win will not allow readers to resize text that has been sized in pixels. Like it or not, your readers will want to resize text at some point. Perhaps they are short-sighted, doing a presentation, using a ridiculously high resolution laptop or simply have tired eyes. So unless you know (not think) your audience won’t be using IE/Win or will never wish to resize their text then pixels are not yet a viable solution.&lt;br /&gt;&lt;br /&gt;Keyword-based text sizing will allow all browsers to resize text so this is a possibility, but I don’t find it gives me the precision that pixels would give me. Using ems however, allows all browsers to resize text and also provides pixel-level precision and so they tend to be my unit of choice.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Get on with it&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OK let’s dive into ems. I’ll show you, from scratch, how to size text in a document using ems. I’ll assume throughout that we are dealing with a browser set to ‘medium’ text. The default size for ‘medium’ text in all modern browsers is 16px. Our first step is to reduce this size for the entire document by setting body size to 62.5%:&lt;br /&gt;&lt;br /&gt;BODY {font-size:62.5%}&lt;br /&gt;&lt;br /&gt;This takes 16px down to 10px which I’m using purely because it’s a nice round number for example purposes – 10px text is too small for the real world. From now on it’s easy to think in pixels but still set sizes in terms of ems: 1em is 10px, 0.8em is 8px, 1.6em is 16px, etc. If you are laying out your document using CSS (which you are, right?) then you have probably used a few divs to group together elements. Apply text-size to these divs and your job is almost done. Consider a two column layout with header and footer:&lt;br /&gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;div id="navigation"&amp;gt; ... &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div id="main_content"&amp;gt; ... &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div id="side_bar"&amp;gt; ... &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div id="footer"&amp;gt; ... &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&lt;br /&gt;#navigation {font-size:1em}&lt;br /&gt;#main_content {font-size:1.2em}&lt;br /&gt;#side_bar {font-size:1em}&lt;br /&gt;#footer {font-size:0.9em}&lt;br /&gt;&lt;br /&gt;So this would give us a document where text in the navigation and side bar is displayed at 10px, the main content is 12px and the footer is 9px. There now remains a few anomalies to sort out (you’d have to do this even if you were sizing in pixels). In Mozilla-based browsers, all heading elements in our aforementioned #main_content div will be displayed at 12px whether they are an H1 or an H6, whereas other browsers show the headings at different sizes as expected. Applying text-sizes to all headings will give consistency across browsers, for example:&lt;br /&gt;&lt;br /&gt;H1 {font-size:2em}  /* displayed at 24px */&lt;br /&gt;H2 {font-size:1.5em}  /* displayed at 18px */&lt;br /&gt;H3 {font-size:1.25em}  /* displayed at 15px */&lt;br /&gt;H4 {font-size:1em}  /* displayed at 12px */&lt;br /&gt;&lt;br /&gt;A similar job needs to be done on forms and tables to force form controls and table cells to inherit the correct size (mainly to cater for IE/Win):&lt;br /&gt;&lt;br /&gt;INPUT, SELECT, TH, TD {font-size:1em}&lt;br /&gt;&lt;br /&gt;And so to the final tweak and the bit folks seem to find most tricky: dealing with nested elements. We’ve already touched upon it with our headers, but for now let’s look more closely at what’s going on. First of all we changed our body text to 10px; 62.5% of its default size:&lt;br /&gt;&lt;br /&gt;16 x 0.625 = 10&lt;br /&gt;&lt;br /&gt;Then we said our main content should be displayed at 12px. If we did nothing, the #main_content div would be displayed at 10px because it would inherit its size from the body element – its parent. This implies that we always size text relative to the parent element when using ems:&lt;br /&gt;&lt;br /&gt;child pixels / parent pixels = child ems&lt;br /&gt;12 / 10 = 1.2&lt;br /&gt;&lt;br /&gt;Next we wanted our h1 heading to be 24px. The parent to our h1 is the main_content div which we know to be 12px in size. To get our headings to be 24px we need to double that so our ems are:&lt;br /&gt;&lt;br /&gt;24 / 12 = 2&lt;br /&gt;&lt;br /&gt;And so it goes on. Tricky stuff occurs where rules like this are applied:&lt;br /&gt;&lt;br /&gt;#main_content LI {font-size:0.8333em}&lt;br /&gt;&lt;br /&gt;This rule implies that all main content list items should be displayed at 10px. We use the same straight forward maths to achieve this:&lt;br /&gt;&lt;br /&gt;10 / 12 = 0.8333&lt;br /&gt;&lt;br /&gt;But what happens when one list contains another? It gets smaller. Why? Because our rule actually says that any list item in the #main_content div should 0.8333 times the size of its parent. So we need another rule to prevent this ‘inherited shrinkage’:&lt;br /&gt;&lt;br /&gt;LI LI {font-size:1em}&lt;br /&gt;&lt;br /&gt;This says that any list item inside another list item should be the same size as its parent (the other list item). I normally use a whole set of child selectors to prevent confusion during development:&lt;br /&gt;&lt;br /&gt;LI LI, LI P, TD P, BLOCKQUOTE P {font-size:1em}&lt;br /&gt;&lt;br /&gt;And that’s it. When sizing text in ems there’s really one rule to remember: size text relative to its parent and use this simple calculation to do so:&lt;br /&gt;&lt;br /&gt;child pixels / parent pixels = child ems&lt;br /&gt;&lt;br /&gt;Em calculator : &lt;a href="http://riddle.pl/emcalc/" target="_blank"&gt;http://riddle.pl/emcalc/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6765360061367593262-6516085855237618493?l=csstriks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6516085855237618493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6765360061367593262/posts/default/6516085855237618493'/><link rel='alternate' type='text/html' href='http://csstriks.blogspot.com/2010/05/how-to-size-text-using-ems.html' title='How to size text using ems'/><author><name>CSSTRICKS</name><uri>http://www.blogger.com/profile/05983545273523226952</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
