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

<channel>
	<title>stoimen&#039;s web log &#187; css</title>
	<atom:link href="http://www.stoimen.com/blog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stoimen.com/blog</link>
	<description>about web development</description>
	<lastBuildDate>Mon, 30 Jan 2012 18:27:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Scroll an IFRAME Content to a Predefined Position</title>
		<link>http://www.stoimen.com/blog/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/</link>
		<comments>http://www.stoimen.com/blog/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 11:43:36 +0000</pubDate>
		<dc:creator>Stoimen</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[absolute iframe content]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=2238</guid>
		<description><![CDATA[IFRAME Source Usually when you use an IFRAME tag to link an external source the page that&#8217;s referenced by the SRC attributes is loaded at the top left corner. This is the default behavior, but sometimes you&#8217;d like to show &#8230; <a href="http://www.stoimen.com/blog/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/04/24/scroll-the-page-with-javascript/' rel='bookmark' title='Scroll the page with JavaScript'>Scroll the page with JavaScript</a></li>
<li><a href='http://www.stoimen.com/blog/2009/06/11/remove-iframe-border-on-ie/' rel='bookmark' title='remove iframe border on IE'>remove iframe border on IE</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/24/css-default-position-value/' rel='bookmark' title='CSS default position value'>CSS default position value</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>IFRAME Source</h2>
<p>Usually when you use an <a href="http://www.stoimen.com/blog/tag/iframe/">IFRAME</a> tag to link an external source the page that&#8217;s referenced by the SRC attributes is loaded at the top left corner. This is the default behavior, but sometimes you&#8217;d like to show to your users not the entire page from the top left corner, but to show only part of the external page instead.</p>
<p>In most of the cases the reference is external and you don&#8217;t have control over the external page. Thus you&#8217;ve to scroll the IFRAME content to the desired position. This of course is impossible. Yeah, there are some JavaScript hacks, but they&#8217;re all a bad solution, because the scrolling occurs only after the page is loaded.</p>
<h2>The Solution</h2>
<p>You can wrap the <a href="http://www.stoimen.com/blog/tag/iframe/">IFRAME</a> into a div and scroll the DIV content using absolute TOP and LEFT <a href="http://www.stoimen.com/blog/tag/css/">CSS</a> properties.</p>
<p>Here&#8217;s an example:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#my-div</span>
<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">width</span>    <span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">height</span>   <span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">overflow</span> <span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">position</span> <span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#my-iframe</span>
<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">position</span> <span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">top</span>      <span style="color: #00AA00;">:</span> <span style="color: #933;">-100px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">left</span>     <span style="color: #00AA00;">:</span> <span style="color: #933;">-100px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">width</span>    <span style="color: #00AA00;">:</span> <span style="color: #933;">1280px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">height</span>   <span style="color: #00AA00;">:</span> <span style="color: #933;">1200px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Here you have one DIV with dimensions 400x200px. Now by moving the IFRAME within it you can position it on the right place.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;my-div&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">iframe</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.example.com&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;my-iframe&quot;</span> <span style="color: #000066;">scrolling</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;no&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">iframe</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p><span id="more-2238"></span><br />
Example with the awesome <a href="http://www.yahoo.com/" target="_blank" title="Yahoo! Homepage">Yahoo! Homepage</a>:<br />
<iframe src="http://stoimen.com/projects/iframe.scrolled.content/" scrolling="no" frameborder="0" style="width:400px;height:390px"></iframe></p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/04/24/scroll-the-page-with-javascript/' rel='bookmark' title='Scroll the page with JavaScript'>Scroll the page with JavaScript</a></li>
<li><a href='http://www.stoimen.com/blog/2009/06/11/remove-iframe-border-on-ie/' rel='bookmark' title='remove iframe border on IE'>remove iframe border on IE</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/24/css-default-position-value/' rel='bookmark' title='CSS default position value'>CSS default position value</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>More on CSS Optimization</title>
		<link>http://www.stoimen.com/blog/2011/01/07/more-on-css-optimization/</link>
		<comments>http://www.stoimen.com/blog/2011/01/07/more-on-css-optimization/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 14:40:14 +0000</pubDate>
		<dc:creator>Stoimen</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Minification]]></category>
		<category><![CDATA[possible solution]]></category>
		<category><![CDATA[Software engineering]]></category>
		<category><![CDATA[Style sheet]]></category>
		<category><![CDATA[Technology/Internet]]></category>
		<category><![CDATA[Web application]]></category>
		<category><![CDATA[web applications]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[web programming]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=2101</guid>
		<description><![CDATA[As CSS files are first downloaded to the client and then executed, the main optimization is to make those files smaller. But that doesn&#8217;t mean only minifing! The Minification Process While with minification you can strip all the symbols that &#8230; <a href="http://www.stoimen.com/blog/2011/01/07/more-on-css-optimization/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/01/30/optimizing-css-five-simple-steps/' rel='bookmark' title='Optimizing CSS. Five simple steps!'>Optimizing CSS. Five simple steps!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/05/css-sprites-go-beyond-the-limits-with-base64/' rel='bookmark' title='CSS sprites. Go beyond the limits with base64!'>CSS sprites. Go beyond the limits with base64!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/10/manage-javascript-and-css-includes-within-zend-framework-application/' rel='bookmark' title='Manage JavaScript and CSS includes within Zend Framework application'>Manage JavaScript and CSS includes within Zend Framework application</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>As CSS files are first downloaded to the client and then executed, the main optimization is to make those files smaller. But that doesn&#8217;t mean only minifing!</p>
<p><a href="http://www.stoimen.com/blog/wp-content/uploads/2011/01/css.jpg"><img class="alignleft size-full wp-image-2122" title="css" src="http://www.stoimen.com/blog/wp-content/uploads/2011/01/css.jpg" alt="CSS" width="400" height="300" /></a><br />
<br clear="all" /></p>
<h2>The Minification Process</h2>
<p>While with minification you can strip all the symbols that only take space, but are useless when the browser parses the file, there are some other techniques, which in fact aren&#8217;t so simple, to speed up the loading process. By minification you get rid of the white spaces, tabs, new lines, etc., but the file may remain too large.</p>
<h2>Useless Rules</h2>
<p>Yes, sadly the browser doesn&#8217;t need all those white spaces, actually web developers need them. Just because this makes the file more readable, or readable at all. However most of the web applications have one large CSS file, typically named layout.css, main.css or whatever, that contains all the rules for the entire application. In many of the cases one page of a site doesn&#8217;t need all the rules for the site, so a possible solution is to remove all of the rules that aren&#8217;t used.</p>
<p>There are tools that may help you do the job. Such a tool, that I&#8217;m using is the Firefox add-on &#8211; <a title="Dust-Me Selectors" href="https://addons.mozilla.org/en-US/firefox/addon/5392/" target="_blank">Dust-Me Selectors</a>. Of course there are a lot other tools doing the same job, so it&#8217;s up to you to pick up one.</p>
<p>After removing all those useless rules you&#8217;ll see that the size of the file can be something like 20% of the size of the source file. This is interesting to note, because most of the time the minification cannot give you such performance benefit. In fact this comes with some issues.</p>
<h2>One Request or What?</h2>
<p>This is the dilemma of the web programming, isn&#8217;t it? However thus you can split the main CSS file to few smaller files, but they are named differently so you cannot expect the browser to cache them when the user visits the site for the first time.</p>
<p>The case must be, of course, tested against various situations, so you can decide what suits you. However the typical scenario is to optimize only few of the pages, as they might be the most visited &#8211; as for example the homepage. If two of the pages are mainly visited, than you can make custom, small, CSS files for them with only the necessary rules, and let the other pages with the main CSS file. If you&#8217;ve a lot of returning visitors, you can be sure the custom files will be cached (if the client cache is turned on) and the second time somebody visits the &#8220;homepage&#8221; for example the page will load faster.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/01/30/optimizing-css-five-simple-steps/' rel='bookmark' title='Optimizing CSS. Five simple steps!'>Optimizing CSS. Five simple steps!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/05/css-sprites-go-beyond-the-limits-with-base64/' rel='bookmark' title='CSS sprites. Go beyond the limits with base64!'>CSS sprites. Go beyond the limits with base64!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/10/manage-javascript-and-css-includes-within-zend-framework-application/' rel='bookmark' title='Manage JavaScript and CSS includes within Zend Framework application'>Manage JavaScript and CSS includes within Zend Framework application</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2011/01/07/more-on-css-optimization/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Vendor Prefixes in CSS</title>
		<link>http://www.stoimen.com/blog/2010/03/27/vendor-prefixes-in-css/</link>
		<comments>http://www.stoimen.com/blog/2010/03/27/vendor-prefixes-in-css/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 16:36:43 +0000</pubDate>
		<dc:creator>Stoimen</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Free software]]></category>
		<category><![CDATA[FTP clients]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[World Wide Web]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=1400</guid>
		<description><![CDATA[Vendor Prefixes vs CSS3 Either are bad, because vendor prefixes work on specific browsers, while CSS3 is not implemented fully by those browsers. When talking about vendor prefixes in CSS, let me tell you in breve, what&#8217;s this. If you&#8217;d &#8230; <a href="http://www.stoimen.com/blog/2010/03/27/vendor-prefixes-in-css/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/02/12/css-border-radius-vs-images/' rel='bookmark' title='CSS border-radius vs. images!'>CSS border-radius vs. images!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/17/htc-round-the-corners-on-ie/' rel='bookmark' title='HTC?! Round the corners on IE!'>HTC?! Round the corners on IE!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/04/css-effective-selector/' rel='bookmark' title='CSS effective selector'>CSS effective selector</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>Vendor Prefixes vs CSS3</h2>
<p>Either are bad, because vendor prefixes work on specific browsers, while CSS3 is not implemented fully by those browsers. When talking about vendor prefixes in CSS, let me tell you in breve, what&#8217;s this. If you&#8217;d like to make rounded corner under Mozilla Firefox, you usually use a background image, but there&#8217;s another way to do it &#8211; with Mozilla specific CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>That&#8217;s bad because it works only on Mozilla based browsers, although there&#8217;s a webkit based similar syntax:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>Even after that our &#8220;favorite&#8221; browser MSIE until version 9 is not displaying any rounded corners.</p>
<p>In other hand CSS3 gives us the possibility to write the simple:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>which is not implemented in many currently used browsers, but it may be used for progressive enhancements.</p>
<h2>In Breve &#8230;</h2>
<p>Everybody&#8217;s talking about vendor prefixes after the famous <a href="http://www.quirksmode.org/blog/archives/2010/03/css_vendor_pref.html" target="_blank">post of PPK</a>, but there are both opinions &#8211; pros and cons. However it&#8217;s good to use it, but very carefully, and think about what CSS3 may give you!</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/02/12/css-border-radius-vs-images/' rel='bookmark' title='CSS border-radius vs. images!'>CSS border-radius vs. images!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/17/htc-round-the-corners-on-ie/' rel='bookmark' title='HTC?! Round the corners on IE!'>HTC?! Round the corners on IE!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/04/css-effective-selector/' rel='bookmark' title='CSS effective selector'>CSS effective selector</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2010/03/27/vendor-prefixes-in-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Priority: The Difference Between a.my-class and .my-class</title>
		<link>http://www.stoimen.com/blog/2010/03/11/css-priority-the-difference-between-a-my-class-and-my-class/</link>
		<comments>http://www.stoimen.com/blog/2010/03/11/css-priority-the-difference-between-a-my-class-and-my-class/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 14:58:28 +0000</pubDate>
		<dc:creator>Stoimen</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[Google Inc.]]></category>
		<category><![CDATA[Span and div]]></category>
		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=1222</guid>
		<description><![CDATA[Do You Know What&#8217;s an Inefficient CSS Selector? Perhaps! I was curious how can inefficient selectors impact a page performance. To begin with this topic let me say that inefficient selector is referred usually as nested selector: div span div &#8230; <a href="http://www.stoimen.com/blog/2010/03/11/css-priority-the-difference-between-a-my-class-and-my-class/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/02/04/css-effective-selector/' rel='bookmark' title='CSS effective selector'>CSS effective selector</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/30/optimizing-css-five-simple-steps/' rel='bookmark' title='Optimizing CSS. Five simple steps!'>Optimizing CSS. Five simple steps!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/18/what-if-your-site-doesnt-use-all-of-the-css-selectors/' rel='bookmark' title='What if your site doesn&#8217;t use all of the CSS selectors?'>What if your site doesn&#8217;t use all of the CSS selectors?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>Do You Know What&#8217;s an Inefficient CSS Selector?</h2>
<p>Perhaps! I was curious how can inefficient selectors impact a page performance. To begin with this topic let me say that inefficient selector is referred usually as nested selector:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">div span div <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #993333;">red</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>as you can see here there are three nested tags I use to reference the innermost div. If you&#8217;re wondering how you&#8217;d know about inefficient selectors &#8211; well there is a plugin for the <a title="Firebug" href="http://getfirebug.com/" target="_blank">Firebug</a> written by a Google team called <a title="Page Speed" href="http://code.google.com/speed/page-speed/" target="_blank">Page Speed</a> explaining which of your selectors are inefficient. See the image below.</p>
<p><a href="http://www.stoimen.com/blog/wp-content/uploads/2010/03/css-selectors-inefficient1.png"><img class="aligncenter size-full wp-image-1273" title="css-selectors-inefficient" src="http://www.stoimen.com/blog/wp-content/uploads/2010/03/css-selectors-inefficient1.png" alt="CSS Page Speed Inefficient Selectors" width="430" height="113" /></a></p>
<p>In the <a title="CSS Performance Demo" href="http://www.stoimen.com/projects/css.selectors.performance/" target="_blank">demo</a> page you can find what I was trying to achieve and you can play around with that code to measure by yourself the performance of the different selectors.</p>
<h2>So who&#8217;s faster? Nested, IDs or Classes?</h2>
<p>Actually its pretty though to say. Yet another surprise for me was to notice that the notation:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.my-class</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>was a bit slower than the marked as <em>&#8220;inefficient&#8221;</em> by Page Speed:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">div span div <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Another good thing to mention is that there is a difference between div.my-class and .my-class</p>
<h2>Question&#8217;s answer &#8230;</h2>
<p>In fact <strong>div.my-class</strong> is always with a higher priority than <strong>.my-class</strong> even if you&#8217;ve the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.my-class</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #993333;">red</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.my-class</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">blue</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
div span div <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>And the computed style for Firefox was &#8230;</p>
<p><a href="http://www.stoimen.com/blog/wp-content/uploads/2010/03/css-selectors-code.png"><img class="aligncenter size-full wp-image-1274" title="css-selectors-code" src="http://www.stoimen.com/blog/wp-content/uploads/2010/03/css-selectors-code.png" alt="CSS Selector Performance Computed Style" width="430" height="170" /></a></p>
<p>where &#8220;div span div&#8221; chain matches the same elements as the previous selectors, as you can see:</p>
<p><a href="http://www.stoimen.com/blog/wp-content/uploads/2010/03/css-selectors-dom-view.png"><img class="aligncenter size-full wp-image-1275" title="css-selectors-dom-view" src="http://www.stoimen.com/blog/wp-content/uploads/2010/03/css-selectors-dom-view.png" alt="CSS Selector DOM View" width="430" height="127" /></a></p>
<p>so even that <strong>div.my-class</strong> will be the most important and finally the element will get its red border! It does not depend only on where you put the CSS rules, but also on how they are defined.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/02/04/css-effective-selector/' rel='bookmark' title='CSS effective selector'>CSS effective selector</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/30/optimizing-css-five-simple-steps/' rel='bookmark' title='Optimizing CSS. Five simple steps!'>Optimizing CSS. Five simple steps!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/18/what-if-your-site-doesnt-use-all-of-the-css-selectors/' rel='bookmark' title='What if your site doesn&#8217;t use all of the CSS selectors?'>What if your site doesn&#8217;t use all of the CSS selectors?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2010/03/11/css-priority-the-difference-between-a-my-class-and-my-class/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSS right to left direction &amp; floating elements</title>
		<link>http://www.stoimen.com/blog/2010/03/08/css-right-to-left-direction-floating-elements/</link>
		<comments>http://www.stoimen.com/blog/2010/03/08/css-right-to-left-direction-floating-elements/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 15:38:54 +0000</pubDate>
		<dc:creator>Stoimen</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[Technology/Internet]]></category>
		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=1190</guid>
		<description><![CDATA[direction:rtl When developing a website for Arabic one of the most common questions is how to get it work with a reverse direction. Actually there is the CSS property direction: .my-class &#123; direction:rtl; &#125; which makes the page right aligned. &#8230; <a href="http://www.stoimen.com/blog/2010/03/08/css-right-to-left-direction-floating-elements/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/03/02/fast-way-to-manage-the-arabic-version-of-a-web-form/' rel='bookmark' title='Fast way to manage the Arabic version of a web form'>Fast way to manage the Arabic version of a web form</a></li>
<li><a href='http://www.stoimen.com/blog/2009/11/04/jquery-css-selectors-change-one-or-more-css-properties/' rel='bookmark' title='jQuery CSS selectors. Change one or more CSS properties!'>jQuery CSS selectors. Change one or more CSS properties!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/24/css-default-position-value/' rel='bookmark' title='CSS default position value'>CSS default position value</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>direction:rtl</h2>
<p>When developing a website for Arabic one of the most common questions is how to get it work with a reverse direction. Actually there is the CSS property direction:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.my-class</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">direction</span><span style="color: #00AA00;">:</span>rtl<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>which makes the page right aligned.</p>
<h2>Floating elements &#8230;</h2>
<p>However sometimes there are elements on the page which are absolutely positioned and the direction property doesn&#8217;t do the job. The solution is something like combining the two settings. Both direction and float. So something like:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.my-class</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>becomes something like:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.my-class</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">direction</span><span style="color: #00AA00;">:</span>rtl<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>and of course if you&#8217;ve something like margin-left it should become margin-right!</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/03/02/fast-way-to-manage-the-arabic-version-of-a-web-form/' rel='bookmark' title='Fast way to manage the Arabic version of a web form'>Fast way to manage the Arabic version of a web form</a></li>
<li><a href='http://www.stoimen.com/blog/2009/11/04/jquery-css-selectors-change-one-or-more-css-properties/' rel='bookmark' title='jQuery CSS selectors. Change one or more CSS properties!'>jQuery CSS selectors. Change one or more CSS properties!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/24/css-default-position-value/' rel='bookmark' title='CSS default position value'>CSS default position value</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2010/03/08/css-right-to-left-direction-floating-elements/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fast way to manage the Arabic version of a web form</title>
		<link>http://www.stoimen.com/blog/2010/03/02/fast-way-to-manage-the-arabic-version-of-a-web-form/</link>
		<comments>http://www.stoimen.com/blog/2010/03/02/fast-way-to-manage-the-arabic-version-of-a-web-form/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 08:38:05 +0000</pubDate>
		<dc:creator>Stoimen</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[Arabic language]]></category>
		<category><![CDATA[Technology/Internet]]></category>
		<category><![CDATA[web forms]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=1173</guid>
		<description><![CDATA[Left to Right vs. Right to Left As you may know the Arabic language is written from right to left in reverse of Latin and Cyrillic languages and in the web that means you must change the look of the &#8230; <a href="http://www.stoimen.com/blog/2010/03/02/fast-way-to-manage-the-arabic-version-of-a-web-form/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/03/08/css-right-to-left-direction-floating-elements/' rel='bookmark' title='CSS right to left direction &amp; floating elements'>CSS right to left direction &#038; floating elements</a></li>
<li><a href='http://www.stoimen.com/blog/2010/06/15/use-zend_translate-to-translate-your-web-app/' rel='bookmark' title='Use Zend_Translate to Translate Your Web App'>Use Zend_Translate to Translate Your Web App</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/25/better-zend-framework-documentation-now-version-specific/' rel='bookmark' title='Better Zend Framework documentation. Now version specific.'>Better Zend Framework documentation. Now version specific.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>Left to Right vs. Right to Left</h2>
<p>As you may know the Arabic language is written from right to left in reverse of Latin and Cyrillic languages and in the web that means you must change the look of the page for that subset of users coming to your site.</p>
<p>One of the main problems are with web forms. Usually we use something like label:input pairs:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">label: &lt;input type=&quot;text&quot; /&gt;</pre></div></div>

<p>but when it comes to Arabic version it should be turned into:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;input type=&quot;text&quot; /&gt; : label</pre></div></div>

<p>and that&#8217;s quite tricky!</p>
<h2>The easiest way for me!</h2>
<p>Well I simply wrap that chunk of code into a table. That helps me manage the direction with the CSS direction:rtl like so:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;table&gt;
 &lt;tr&gt;
  &lt;td&gt;Label:&lt;/td&gt;
  &lt;td&gt;&lt;input type=&quot;text&quot; /&gt;&lt;/td&gt;
 &lt;/tr&gt;
&lt;/table&gt;</pre></td></tr></table></div>

<p>When it comes to the Arabic version it can be translated with the simple:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;table style=&quot;direction:rtl;&quot;&gt;
 &lt;tr&gt;
  &lt;td&gt;Label:&lt;/td&gt;
  &lt;td&gt;&lt;input type=&quot;text&quot; /&gt;&lt;/td&gt;
 &lt;/tr&gt;
&lt;/table&gt;</pre></td></tr></table></div>

<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/03/08/css-right-to-left-direction-floating-elements/' rel='bookmark' title='CSS right to left direction &amp; floating elements'>CSS right to left direction &#038; floating elements</a></li>
<li><a href='http://www.stoimen.com/blog/2010/06/15/use-zend_translate-to-translate-your-web-app/' rel='bookmark' title='Use Zend_Translate to Translate Your Web App'>Use Zend_Translate to Translate Your Web App</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/25/better-zend-framework-documentation-now-version-specific/' rel='bookmark' title='Better Zend Framework documentation. Now version specific.'>Better Zend Framework documentation. Now version specific.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2010/03/02/fast-way-to-manage-the-arabic-version-of-a-web-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stylesheets may block rendering in IE. The solution is maybe dynamic loading.</title>
		<link>http://www.stoimen.com/blog/2010/02/18/stylesheets-may-block-rendering-in-ie-the-solution-is-maybe-dynamic-loading/</link>
		<comments>http://www.stoimen.com/blog/2010/02/18/stylesheets-may-block-rendering-in-ie-the-solution-is-maybe-dynamic-loading/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 18:39:03 +0000</pubDate>
		<dc:creator>Stoimen</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Opera Software]]></category>
		<category><![CDATA[Steve Souders]]></category>
		<category><![CDATA[web browsers]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=1081</guid>
		<description><![CDATA[Yes! Style sheets may block the rendering process in IE. When it comes to media different from the screen, as the print is: media=print this, lovely, browser stops the rendering until the sheet is loaded. This is pretty strange when &#8230; <a href="http://www.stoimen.com/blog/2010/02/18/stylesheets-may-block-rendering-in-ie-the-solution-is-maybe-dynamic-loading/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/11/05/browsers-pixels-and-graphic-rendering/' rel='bookmark' title='Browsers, pixels and graphic rendering!'>Browsers, pixels and graphic rendering!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/19/performance-of-jquery-1-4/' rel='bookmark' title='Performance of jQuery 1.4'>Performance of jQuery 1.4</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/30/optimizing-css-five-simple-steps/' rel='bookmark' title='Optimizing CSS. Five simple steps!'>Optimizing CSS. Five simple steps!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Yes! Style sheets may block the rendering process in IE. When it comes to media different from the screen, as the print is:</p>
<blockquote>
<pre>media=print</pre>
</blockquote>
<p>this, lovely, browser stops the rendering until the sheet is loaded. This is pretty strange when it comes to such media, just because it is not used to render the page in a browser. In fact as <a title="Steve Souders" href="http://www.stevesouders.com/" target="_blank">Steve Souders </a>says the normal behavior of the browser should be don&#8217;t block or even delay the sheets for media that is not the current one.</p>
<p>However for further reading see this <a href="http://www.stevesouders.com/blog/2010/02/11/mediaprint-stylesheets/" target="_blank">post</a> with many thanks to Steve Souders again.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/11/05/browsers-pixels-and-graphic-rendering/' rel='bookmark' title='Browsers, pixels and graphic rendering!'>Browsers, pixels and graphic rendering!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/19/performance-of-jquery-1-4/' rel='bookmark' title='Performance of jQuery 1.4'>Performance of jQuery 1.4</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/30/optimizing-css-five-simple-steps/' rel='bookmark' title='Optimizing CSS. Five simple steps!'>Optimizing CSS. Five simple steps!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2010/02/18/stylesheets-may-block-rendering-in-ie-the-solution-is-maybe-dynamic-loading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTC?! Round the corners on IE!</title>
		<link>http://www.stoimen.com/blog/2010/02/17/htc-round-the-corners-on-ie/</link>
		<comments>http://www.stoimen.com/blog/2010/02/17/htc-round-the-corners-on-ie/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 14:40:14 +0000</pubDate>
		<dc:creator>Stoimen</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Technology/Internet]]></category>
		<category><![CDATA[web browsers]]></category>
		<category><![CDATA[web developers]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=1092</guid>
		<description><![CDATA[Well I was writing these days about rounded corners and some cross browser techniques that help you do this job. But what&#8217;s actually a topic now is that most of the web developers are speaking about making different versions of &#8230; <a href="http://www.stoimen.com/blog/2010/02/17/htc-round-the-corners-on-ie/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/02/12/css-border-radius-vs-images/' rel='bookmark' title='CSS border-radius vs. images!'>CSS border-radius vs. images!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/15/cross-browser-rounded-corners-works-on-ie-but-but-not-on-opera/' rel='bookmark' title='Cross-browser rounded corners! Works on IE but, but not on Opera!'>Cross-browser rounded corners! Works on IE but, but not on Opera!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/03/27/vendor-prefixes-in-css/' rel='bookmark' title='Vendor Prefixes in CSS'>Vendor Prefixes in CSS</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Well I was writing these days about rounded corners and some cross browser techniques that help you do this job. But what&#8217;s actually a topic now is that most of the web developers are speaking about making different versions of a site for different browsers. Now this begins to look normal, but it isn&#8217;t. The ideal solution is to have everything working fine, in that case rounded corners to be rounded, on every browser.</p>
<p>As I wrote recently there is a way to do this in IE with the use of VML, but yet again this is not working on Opera, and puts another chunk of markup in your document, that leads to more difficult maintain.</p>
<p>The solution can be done with another approach that can be considered as one level beyond the VML usage. Thus you have scripts only in IE and clean CSS.</p>
<p>Everybody now&#8217;s using both:</p>
<blockquote>
<pre>-moz-border-radius
-webkit-border-radius
</pre>
</blockquote>
<p>and now&#8217;s coming the new wave with:</p>
<blockquote>
<pre>border-radius
</pre>
</blockquote>
<p>property in CSS3, but as we know it will be maybe present in IE9 and any older MSIE will be discarded.</p>
<h2>What the .htc means?</h2>
<p>It stands for HTML components file, which is completely JavaScript code that&#8217;s included via CSS as:</p>
<blockquote>
<pre>behavior: url(border-radus.htc);
</pre>
</blockquote>
<p>Of course you can find such .htc predefined files everywhere on the web and it&#8217;s completely working.</p>
<h2>The problem</h2>
<p>is that sometimes after using many HTML tags with border radius IE appears to crash, which is nothing new, but however not desirable.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/02/12/css-border-radius-vs-images/' rel='bookmark' title='CSS border-radius vs. images!'>CSS border-radius vs. images!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/15/cross-browser-rounded-corners-works-on-ie-but-but-not-on-opera/' rel='bookmark' title='Cross-browser rounded corners! Works on IE but, but not on Opera!'>Cross-browser rounded corners! Works on IE but, but not on Opera!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/03/27/vendor-prefixes-in-css/' rel='bookmark' title='Vendor Prefixes in CSS'>Vendor Prefixes in CSS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2010/02/17/htc-round-the-corners-on-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross-browser rounded corners! Works on IE but, but not on Opera!</title>
		<link>http://www.stoimen.com/blog/2010/02/15/cross-browser-rounded-corners-works-on-ie-but-but-not-on-opera/</link>
		<comments>http://www.stoimen.com/blog/2010/02/15/cross-browser-rounded-corners-works-on-ie-but-but-not-on-opera/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 19:29:38 +0000</pubDate>
		<dc:creator>Stoimen</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Graphics file formats]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Markup languages]]></category>
		<category><![CDATA[Vector graphics markup languages]]></category>
		<category><![CDATA[Vector Markup Language]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[Web standards]]></category>
		<category><![CDATA[World Wide Web]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=1091</guid>
		<description><![CDATA[What&#8217;s this that works on IE and any other browser, except on Opera?! Rounded Corners That was a strange answer. Who&#8217;s making rounded corners with CSS?! on IE and more important how? There is a way to make it, but &#8230; <a href="http://www.stoimen.com/blog/2010/02/15/cross-browser-rounded-corners-works-on-ie-but-but-not-on-opera/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/02/17/htc-round-the-corners-on-ie/' rel='bookmark' title='HTC?! Round the corners on IE!'>HTC?! Round the corners on IE!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/12/css-border-radius-vs-images/' rel='bookmark' title='CSS border-radius vs. images!'>CSS border-radius vs. images!</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/12/javascript-rounded-corners/' rel='bookmark' title='JavaScript rounded corners'>JavaScript rounded corners</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s this that works on IE and any other browser, except on Opera?!</p>
<h2>Rounded Corners</h2>
<p>That was a strange answer. Who&#8217;s making rounded corners with CSS?! on IE and more important how? There is a way to make it, but not entirely with CSS and HTML. The solution is with VML a subset of XML to deal with vectors, and CSS of course.</p>
<p>The original solution I found on <a title="Rounded Corners experiment IE" href="http://snook.ca/archives/html_and_css/rounded_corners_experiment_ie/" target="_blank">snook.ca</a>.</p>
<p>It is really working fine as described and shown in the example, but there are some issues as well. There is no way to setup background image on the container, and the width and height are behaving strange.</p>
<p>However this gives you an opportunity to make cross browser rounded corners with no scripting that slows down the page and except Opera it&#8217;s quite working!</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/02/17/htc-round-the-corners-on-ie/' rel='bookmark' title='HTC?! Round the corners on IE!'>HTC?! Round the corners on IE!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/12/css-border-radius-vs-images/' rel='bookmark' title='CSS border-radius vs. images!'>CSS border-radius vs. images!</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/12/javascript-rounded-corners/' rel='bookmark' title='JavaScript rounded corners'>JavaScript rounded corners</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2010/02/15/cross-browser-rounded-corners-works-on-ie-but-but-not-on-opera/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>CSS selectors &#8211; new look over them</title>
		<link>http://www.stoimen.com/blog/2010/02/15/css-selectors-new-look-over-them/</link>
		<comments>http://www.stoimen.com/blog/2010/02/15/css-selectors-new-look-over-them/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 19:09:19 +0000</pubDate>
		<dc:creator>Stoimen</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[CSS filter]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[JavaScript programming language]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Software engineering]]></category>
		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=1093</guid>
		<description><![CDATA[How do you select? When it comes to CSS selectors, most of us are using the most familiar selectors by id or class name. Something like: .my-class {} #my-id {} But as you can see in most of the big &#8230; <a href="http://www.stoimen.com/blog/2010/02/15/css-selectors-new-look-over-them/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/01/18/what-if-your-site-doesnt-use-all-of-the-css-selectors/' rel='bookmark' title='What if your site doesn&#8217;t use all of the CSS selectors?'>What if your site doesn&#8217;t use all of the CSS selectors?</a></li>
<li><a href='http://www.stoimen.com/blog/2010/03/11/css-priority-the-difference-between-a-my-class-and-my-class/' rel='bookmark' title='CSS Priority: The Difference Between a.my-class and .my-class'>CSS Priority: The Difference Between a.my-class and .my-class</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/30/optimizing-css-five-simple-steps/' rel='bookmark' title='Optimizing CSS. Five simple steps!'>Optimizing CSS. Five simple steps!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>How do you select?</h2>
<p>When it comes to CSS selectors, most of us are using the most familiar selectors by id or class name. Something like:</p>
<blockquote>
<pre>.my-class {}
#my-id {}
</pre>
</blockquote>
<p>But as you can see in most of the big JavaScript libraries, such as jQuery, you can improve the selection of element/s by using complex selector syntax.</p>
<h2>Do you know the syntax?</h2>
<p>Maybe yes, but maybe not! As I stumbled upon an interesting article on <a title="css tricks" href="http://css-tricks.com" target="_blank">http://css-tricks.com</a><br />
<a title="Permanent Link to The Skinny on CSS Attribute Selectors" rel="bookmark" href="http://css-tricks.com/attribute-selectors/">The Skinny on CSS Attribute Selectors.</a><br />
The good part is that now you can use this powerful selector syntax to improve CSS.</p>
<h2>Browsers</h2>
<p>Because this is the most interesting part &#8211; yes it is supported by MSIE, and no &#8211; not before IE7, be careful if you&#8217;d like to support it.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/01/18/what-if-your-site-doesnt-use-all-of-the-css-selectors/' rel='bookmark' title='What if your site doesn&#8217;t use all of the CSS selectors?'>What if your site doesn&#8217;t use all of the CSS selectors?</a></li>
<li><a href='http://www.stoimen.com/blog/2010/03/11/css-priority-the-difference-between-a-my-class-and-my-class/' rel='bookmark' title='CSS Priority: The Difference Between a.my-class and .my-class'>CSS Priority: The Difference Between a.my-class and .my-class</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/30/optimizing-css-five-simple-steps/' rel='bookmark' title='Optimizing CSS. Five simple steps!'>Optimizing CSS. Five simple steps!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2010/02/15/css-selectors-new-look-over-them/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

