<?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>WebDea &#187; firefox</title>
	<atom:link href="http://www.webdea.com/tag/firefox/feed" rel="self" type="application/rss+xml" />
	<link>http://www.webdea.com</link>
	<description>Converting PSD 2 HTML, xHTML, CSS, Wordpress, Joomla, Drupal</description>
	<lastBuildDate>Tue, 07 Dec 2010 12:48:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>CSS3 Headache</title>
		<link>http://www.webdea.com/css3-headache.html</link>
		<comments>http://www.webdea.com/css3-headache.html#comments</comments>
		<pubDate>Tue, 23 Nov 2010 13:21:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[cross browsers]]></category>
		<category><![CDATA[css3 headache]]></category>
		<category><![CDATA[fade]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[galleries]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[issues]]></category>
		<category><![CDATA[problems]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=459</guid>
		<description><![CDATA[<a href="http://www.webdea.com/css3-headache.html"><img src="http://farm2.static.flickr.com/1410/5102252150_a874520b2c_m.jpg" alt="CSS3 tips to know" align="left"></a>Nothing is perfect in this world and CSS3 with its background color gradient proves this rule one more time. It is not for shortening CSS code, but only for making it more variable. We all suppose that with CSS the necessary colours can simply defined while the browsers do all the drawing. Sounds great, but don’t work in practice… at least as you expected.]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm2.static.flickr.com/1408/5102252734_57ac5d6c72_m.jpg" alt="CSS3 tips to remember" align="right">With the appearance of CSS3 we suppose that now all our dreams come true and easy coding with more free time left is guaranteed. However, these were rather naive thoughts. </p>
<p>Nothing is perfect in this world and CSS3 with its background color gradient proves this rule one more time. It is not for shortening CSS code, but only for making it more variable. For example, lately you can adjust a background color gradient using a background image only. In other words, you have to recut the image again and again in case the gradient needed tweaking. We all suppose that with CSS the necessary colours can be simply defined while the browsers do all the drawing. Sounds great, but don’t work in practice… at least as you expected.</p>
<p>To use CSS3 trying to solve the issues concerning the gradient property is quite time consuming because it doesn’t work across a range of browsers. Here is a sample of code to look through for the following explanation: </p>
<p>/* how it used to be */<br />
background:url(&#8220;&#8230;&#8221;) left top repeat-y;<br />
 /* using automated gradients */<br />
background:#FEF3D1;<br />
 background:-moz-linear-gradient(top, #FFF1CC, #FDF5D5);<br />
 background:-webkit-gradient(linear,0 0,100% 0,from(#FFF1CC),to(#FDF5D5));<br />
 -ms-filter: &#8220;progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#FFF1CC, endColorstr=#FDF5D5)&#8221;;<br />
 filter: progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#FFF1CC, endColorstr=#FDF5D5); </p>
<p>This makes the fade available in FF 3.6+, Safari/Chrome and IE5.5+. Opera users and IE users without filter support can see the fall-back color. In contrast, using an image makes it available in every single browser version out there without any issues.</p>
<p>As you can see CSS3 syntax is a bit longer and it looks like a block of CSS which could style half a site. And that only for one fade. </p>
<h3>Quality vs Availability </h3>
<p><img src="http://farm2.static.flickr.com/1347/5101659981_3d9c63b2a8_m.jpg" alt="CSS3 for all" align="right"></p>
<p>Image is just an image. It should attract attention and display colors you want. If not consider some details, it displays the way it was made across all browsers. However, it doesn’t work with CSS3 effects. At least not always. For example, Firefox gradients are of lower quality if compare with other browsers. We all know that light fades over large areas creating unnecessary stripes. All this is just gaps in quality you don’t want to accept working with images. </p>
<p>Animation is the other thing to consider starting to work with CSS3. It is neat, but doesn’t run smoothly. Acceptable, but not perfect. To replace Flash animation with other open standards is allowed in case the same level of quality is provided. </p>
<p>Most things that are cool in theory appear to be disappointing in practice. CSS3 is not an exception to this rule. Hope that all the problems will be fixed soon to let us admire all the best provided. </p>
<p><em>Reference: www.onderhond.com/blog/work/why-css3-is-worse-than-ie6-debugging</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/css3-headache.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Basics</title>
		<link>http://www.webdea.com/html5-basics.html</link>
		<comments>http://www.webdea.com/html5-basics.html#comments</comments>
		<pubDate>Tue, 16 Nov 2010 13:13:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[html5 basics]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=453</guid>
		<description><![CDATA[<a href="http://www.webdea.com/html5-basics.html"><img src="http://farm2.static.flickr.com/1408/5101654483_8558303c17_m.jpg" alt="HTML5 tips to know" align="left"></a>HTML5 offers another update that should help you to nest every element inside a link tag. On other words, block level links should solve the problem of linking bigger areas constructed from divs, headings and/or other block level elements. However, it is just theory. So, let’s check it in practice. ]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm2.static.flickr.com/1421/5101655035_c7fb35d75c_m.jpg" alt="HTML5 basics to remember" align="right" />HTML5 offers another update that should help you to nest every element inside a link tag. In other words, block level links should solve the problem of linking bigger areas constructed from divs, headings and/or other block level elements. However, it is just theory. So, let’s check it in practice.</p>
<p>First of all, it should be noted that block level link works perfectly in simple cases, but can spoil things dealing with complex issues.</p>
<h3>Vomit Bug for Your Design</h3>
<p>The <a href="http://remysharp.com/2009/08/10/defining-the-vomit-bug/">definition</a> of vomit bug is quite simple:</p>
<p>When the browser&#8217;s parser rearranges the DOM completely differently to the markup, resulting in content being placed outside its original container.</p>
<p>The problem can occur when you are nesting links inside other links. Because of vomit bug, DOM can be scattered in different directions, except the one you laid out initially.</p>
<p>Here is the sample of html code that was used to generate dom structures:</p>
<p>&lt;div&gt;<br />
&lt;a href=&#8221;#block&#8221;&gt;<br />
&lt;div&gt;<br />
&lt;div&gt;2010&lt;/div&gt;<br />
&lt;div&gt;5.0*/5.0*&lt;/div&gt;<br />
&lt;div&gt;&lt;a href=&#8221;#test&#8221;&gt;test&lt;/a&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/a&gt;<br />
&lt;/div&gt;</p>
<p>It is quite simple setup providing a block level link with several other block element and one nested link. In case you remove nested link there will be no problem. In case you leave it, you will get the following samples of doms taken from Opera 10.5 (1), IE8 (2), Safari 4 (3) and Firefox 3.6 (4):</p>
<p><img src="http://farm2.static.flickr.com/1239/5102247160_594d80bea3_z.jpg" alt="nesting links" /></p>
<p>Only Opera 10.5 shows dom correctly. However, in case you give a background color to the block level link, Opera stop working. The best browser rendering the block level link quite perfectly is IE6. But still the click area is not corresponding. In other words, block level links with other links nested inside don’t work. At least now.<img src="http://farm2.static.flickr.com/1163/5102249008_1e3818064f_m.jpg" alt="HTML5 basics to learn" align="right" /></p>
<p>As usual HTML and CSS techniques are great… but are not working perfectly. Just remember that in case you nest another link inside links block, it will break down completely. Till all these things are fixed you should use the links on the title and “read more” text. You also can remove all links inside a block level link to make things better.</p>
<p><em>Reference: www.onderhond.com/blog/work/nesting-links-how-to-make-your-browser-v</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/html5-basics.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Browsers Wars</title>
		<link>http://www.webdea.com/browsers-wars.html</link>
		<comments>http://www.webdea.com/browsers-wars.html#comments</comments>
		<pubDate>Tue, 28 Sep 2010 11:17:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[browsers wars]]></category>
		<category><![CDATA[compete]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=409</guid>
		<description><![CDATA[<a href="http://www.webdea.com/browsers-wars.html"><img src="http://farm5.static.flickr.com/4125/4950556069_a04f13b47e_m.jpg" alt="browsers wars to know" align="left"></a>War is evil or just another chance for improvement? The latter statement can be true for browsers development history. Today we can observe the battle between IE, Mozilla, Opera and Safari. There are two battlefields but the results are obvious for global users. Notwithstanding various complaints, IE still doesn’t have adequate rival.]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm5.static.flickr.com/4091/4950557137_b9ec9beb16_m.jpg" alt="browser wars to remember" align="right" />War is evil or just another chance for improvement? The latter statement can be true for browsers development history. Today we can observe the battle between IE, Mozilla, Opera and Safari. There are two battlefields but the results are obvious for global users. Notwithstanding various complaints, IE still doesn’t have adequate rival. </p>
<p>Of course, Firefox slowly gaining in this competition, but still IE still dominates if we are talking about global usage. For many people internet still associates with the little blue e and maybe such tendency remains to be true for next generations. </p>
<p>The other war is all about the future of the browsers and this time the main heroes are developers and communities. With the help of web development community Firefox has such market share today. So, let’s be aware of the responsibility we have in this fight. </p>
<h3>IE – the Story of Success?</h3>
<p>Old times were simple. We have IE6 that ruined all our masterpieces in web development. So, any alternative to this appreciated greatly. With our sites look amazing in all other browsers except this, IE Microsoft got a bad reputation in the web development world.</p>
<p>Of course, Microsoft had interest in our problems but perhaps, its reaction was too slow. Thus, instead of good browser we had great ideas. Anyway we were able to fix the crap in IE6 with a separate CSS file. With conditional CSS files you can provide less than perfect software. </p>
<p>Some time passed and we got IE7. It was the time when IE6 lost its war and gained awful reputation. However, to be honest, a decent CSS professional could work around most bugs rather quickly. But that time we had IE7 that was a great improvement to IE6. Of course, it can’t be called perfect, but still some bugs disappear.<img src="http://farm5.static.flickr.com/4148/4951149252_89743ecb65_m.jpg" alt="browser tips" align="right" /></p>
<p>Today to make site for IE7 is as simple as for other browsers. Still we have a separate file with conditional comments, but Firefox, Safari and Opera also have their own drawbacks. </p>
<p>Not so long ago, IE8 was announced. It passed the acid2 test and positioned itself next to Opera leaving Safari and Firefox behind. We really can influence improvement in the browser situation – as it happened due to our criticism on IE6. However, there should be too many complaints to ditch Microsoft. But still they provided us with a browser that can really compete with its rivals. </p>
<p><em>Reference: www.onderhond.com/blog/work/the-browser-wars</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/browsers-wars.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Transparency</title>
		<link>http://www.webdea.com/css-transparency.html</link>
		<comments>http://www.webdea.com/css-transparency.html#comments</comments>
		<pubDate>Tue, 31 Aug 2010 12:41:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[cross browser]]></category>
		<category><![CDATA[css transparency]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=376</guid>
		<description><![CDATA[<a href="http://www.webdea.com/css-transparency.html"><img src="http://farm5.static.flickr.com/4114/4863107028_d612fda003_m.jpg" alt="CSS Transparency tips to know" align="left"></a>To make some element transparent you can use the css3 property opacity. This css3 property provides you with decent cross-browser support. This property accepts a value between 0 and 1 with 0 – totally transparent and 1 – no transparency at all. As usual, none of the IE browsers accept this property.]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm5.static.flickr.com/4082/4863107516_2db6a1b2ba_m.jpg" alt="CSS Transparency tips to remember" align="right" /> To make some element transparent you can use the css3 property opacity. This css3 property provides you with decent cross-browser support. This property accepts a value between 0 and 1 with 0 – totally transparent and 1 – no transparency at all.</p>
<p>As usual, none of the IE browsers accept this property. So, you should include filter:alpha(opacity=80); in your css declaration. This time the opacity value lies between 0 and 100 (0 – the elements will be transparent, 100 – no transparency at all). Using these two properties we can get cross-browser transparency.</p>
<p>&lt;&#8211;[if gte IE5.5]&gt; .opaque {filter:alpha(opacity=80);}<br />
&lt;![endif]&#8211;&gt; .opaque {opacity:0.8; filter:alpha(opacity=80);}</p>
<h3>Transparency is Not Seen</h3>
<p>As a rule, there is lack of separation between foreground and background transparency. Note that when you give an opacity to an element, the whole element will be transparent (not background only but also the text). Of course, it influences the readability of the text. If even with the opacity of 0.5 the contrast between background and foreground can seem to be optimal, but it is not so pleasant to read the text. Thus, opacity values of 0.8 are recommended in this case.</p>
<h3>Internet Explorer Issue</h3>
<p>In case Active X scripting (or scripting in general) is disabled the transparency won&#8217;t work. Thus, you should always consider that if transparency is used, your site remains to be functional without the opacity applied. In other words, avoid putting content on top of each other. Thus, if the content can be accessed through a transparent element, even the modern browsers can’t guarantee the transparency.</p>
<h3>Capricious Firefox</h3>
<p><img src="http://farm5.static.flickr.com/4099/4862487755_9d92d17509_m.jpg" alt="ICSS Transparency for all" align="right" /></p>
<p>In case you use CSS properties such as line-height and text-decoration, Firefox can make text starts jumping around or shift background images and surrounding borders. Long before opacity, Mozilla used its own property called -moz-opacity. By abusing this, we can simply set the opacity for Safari and Opera and disable it again for Firefox.</p>
<p>&lt;&#8211;[if gt IE5]&gt; .opaque {filter:alpha(opacity=80);}<br />
&lt;![endif]&#8211;&gt; .opaque {opacity:0.8; -moz-opacity:1;}</p>
<p>Note that such transparency can be applied in Firefox in case you have controlled environment. However, it is better to avoid transparency in Firefox because it can be really irritating and unpredictable.</p>
<p><em>Reference: www.onderhond.com/blog/work/css-transparency</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/css-transparency.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Best CSS Editors for Mac</title>
		<link>http://www.webdea.com/best-css-editors-mac.html</link>
		<comments>http://www.webdea.com/best-css-editors-mac.html#comments</comments>
		<pubDate>Tue, 27 Apr 2010 14:28:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[best css editors for mac]]></category>
		<category><![CDATA[coda]]></category>
		<category><![CDATA[cssedit]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[xyle]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=116</guid>
		<description><![CDATA[<a href="http://www.webdea.com/best-css-editors-mac.html"><img src="http://farm5.static.flickr.com/4053/4520237001_eacf5725da_o.jpg" alt="CSS Hacks to know" align="left"></a>With more web developers using Mac, good Mac focused software for creating and editing CSS files has become more popular today. Here are some CSS editors reviews that include the best tools for the job and can improve your workflow as well. Learn more about their advantages and drawbacks to make the right choice easily. ]]></description>
			<content:encoded><![CDATA[<p>With more web developers using Mac, good Mac focused software for creating and editing CSS files has become more popular today. Here are some CSS editors reviews that include the best tools for the job and can improve your workflow as well.</p>
<h3>Xyle Scope</h3>
<p><img src="http://farm5.static.flickr.com/4023/4520877258_1b8d66ea31_o.jpg" alt="Xyle Scope"></p>
<p><a href="http://www.culturedcode.com/xyle/">Xyle Scope</a> can be called a web browser that provides you with the opportunity to select elements right on the page. The sidebar of this CSS editor can display the HTML and CSS of whatever element you have selected. You can change something and see the effects immediately. This tool can be called the best solution for troubleshooting borked layouts. </p>
<p><img src="http://farm5.static.flickr.com/4065/4520877746_e1553dd81c_o.jpg" alt="Xyle window"></p>
<p>However, it has some disadvantages as well. There is no usual “code view” and you can’t save CSS that you edited on a non-local site. The other thing to pay attention to is that it is basically Safari. In other words, troubleshooting is limited to this browser. In case you make changes and Preview them in different browsers they won’t hold. </p>
<h3>CSS Edit</h3>
<p><img src="http://farm5.static.flickr.com/4041/4520874990_1dd2484c1e_o.jpg" alt="CSS Edit"></p>
<p><u>Price:</u> $29.95.</p>
<p>The best thing about <a href="http://macrabbit.com/cssedit/">CSS Edit</a> is that it has a lot of necessary features to make the editing process easier. A single editor window contains a left sidebar with all selectors, a right sidebar of user-friendly style editor and a middle pane of the “code” view. </p>
<p>CSS Edit also offers you to take advantage of such features as “grouping” of selectors, search, built-in code validation, milestones management and easy commenting. Override and Extract are the other cool features to try. </p>
<p><img src="http://farm3.static.flickr.com/2791/4520875492_415fe52e5c_o.jpg" alt="CSS Edit window"></p>
<p>Thus, Override feature enables you to go to any webpage and edit CSS with previewing effects at the same time. You can use it for your own site to make it look better as well as for other people sites to learn their ways and make adjustments. This feature provides you with the opportunity to change CSS that affects dynamic content. </p>
<p>Extract feature allows you to get the CSS from any page on the Web then save it and do whatever you want. Thus, you can understand other people techniques as well as apply them to your site. </p>
<p>Perhaps, the strength of CSS Edit can be also called its disadvantage because so many features make it rather heavy application. However, you always can do your best with its interesting and useful tools. </p>
<h3>Firebug</h3>
<p><img src="http://farm3.static.flickr.com/2723/4520239911_6a90e6165f_o.jpg" alt="Firefox w/ Firebug"></p>
<p><u>Price:</u> Available for free.</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/1843">Firebug</a> is a Firefox extension. As you install it, a little icon in the bottom bar of your browser window appears and indicates the state of the site you are viewing. Thus, in case you see green it means that page you are viewing is in good shape while red X will be displayed if there are some problems with the site. You can open editor area just clicking this icon. </p>
<p><img src="http://farm5.static.flickr.com/4045/4520240443_357d6561c0_o.jpg" alt="Firefox w/ Firebug window"></p>
<p>Firebug offers you to edit the CSS or the HTML easily and watch the effect immediately. This CSS editor also allows you to view the CSS in “layout” mode. In other words, you can see the margin, border, padding, offset and size of any element you choose. This is quite powerful and convenient to use tool. </p>
<p>Being an extension of Firefox, this CSS editor is limited in its preview capacity and you are not able to save out your modifications. In other words, this is rather troubleshooting tool than an editor. Thus, with such features as javascript errors, DOM analysis and validation, Firebug can be the best choice for troubleshooting. </p>
<h3>Coda</h3>
<p><img src="http://farm5.static.flickr.com/4036/4520873978_1ee252da1a_o.jpg" alt="Coda"></p>
<p><u>Price:</u> $79.</p>
<p><a href="http://www.panic.com/coda/">Coda</a> is quite similar to CSS Edit if talk about selector area. There is split-view that allows you to look at the code at the same time, so you don&#8217;t need to change between CSS view and Edit view while working. </p>
<p><img src="http://farm5.static.flickr.com/4036/4520238351_a0f4d9eaa4_o.jpg" alt="Coda window"></p>
<p>Coda allows you to preview the results of your changes immediately. The other great thing about Coda is that it provides you with nice FTP client that allows you to save your sites in quite appealing way. You also can take advantage of split-view FTP/Edit Window that has a terminal program for shell access to your servers. This CSS editor also provides you with manuals for JavaScript, HTML, CSS and PHP that is also a plus.  </p>
<p><em>Reference: css-tricks.com/reviews-of-mac-css-editors</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/best-css-editors-mac.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10+ Top CSS Editors to Try</title>
		<link>http://www.webdea.com/10-top-css-editors.html</link>
		<comments>http://www.webdea.com/10-top-css-editors.html#comments</comments>
		<pubDate>Fri, 23 Apr 2010 12:44:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[css editors]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[how to choose]]></category>
		<category><![CDATA[how to tips]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[top css editors]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=110</guid>
		<description><![CDATA[<a href="http://www.webdea.com/10-top-css-editors.html"><img src="http://farm3.static.flickr.com/2698/4519987677_a748a1699c_o.jpg" alt="Top 10 CSS editors" align="left"></a>Professional developers as well as newbies can take advantage of various CSS-editors. Today various tools and features for CSS-design integrated in one CSS editor. In case you are interested in quick and effective coding workflow, let’s find out what CSS-editors are the best. ]]></description>
			<content:encoded><![CDATA[<p>While some people suppose that CSS-editors are unnecessary and even superfluous, others continue to find them rather helpful. Professional developers as well as newbies can take advantage of various CSS-editors. Thus, if you can be proud of vast experience in web developing you can improve workflow and just get all the required CSS-tools in one single application. All the beginners can easier understand how the design is built up by analizing stylesheets and using live-editing. </p>
<h3>Reasons to Use a CSS-editor</h3>
<p>We all need to have more time for life and CSS editor can present you some hours a day making your workflow more effective. The other thing is to choose the right CSS-editor that not only combines the editing features of CSS-stylesheets, the site layout and HTML-source code within a user-friendly interface, but also provides you with more useful features to try.<img src="http://farm5.static.flickr.com/4024/4520057495_10b920bf09_o.jpg" alt="CSS editors to know" align="right"> </p>
<p>Good CSS-editor offers you various assisting tools for testing and debugging. You also can take advantage of such features as advanced code browsing, live-editing, code formatter, preview in different browsers, validation, built-in CSS-reference, beautifier and compressor as well as project management tools. This is not the full list of the features offered by various CSS-editors, but you should decide whether you really need them all. </p>
<p>For example, to simplify maintenance and make the source code easier to scan, some CSS-editors allow you to organize parts of the code into folders and filter the stylesheet without much effort. Instant style sheet preview with Internet Explorer or FireFox is another feature provided by advanced CSS-editors. You also can analyze code problems easily with such useful tool as a code inspector or use “X-Ray” function to decompose a stylesheet. </p>
<p>In other words, you get various tools and features for CSS-design integrated in one CSS editor. In case you are interested in quick and effective coding workflow, let’s find out what CSS-editors you can choose. </p>
<h3>Xyle (Mac)</h3>
<p>With the embedded stylesheet <a href="http://www.culturedcode.com/xyle/">Xyle</a> allows you edit web sites easily. You can preview changes in the browser window as soon as you modify CSS code. You also can try such useful features presented as syntax highlighting, selectors tree view and advanced file management. </p>
<p><img src="http://farm5.static.flickr.com/4063/4519993075_6b4bd2ff75_o.jpg" alt="Xyle"></p>
<p>Browser Mode allows you to browse the Web using Safari’s rendering engine. In Selection Mode you can click any part of web page and find out the exact portion of the HTML and CSS sources responsible for the formatting and contents of that part. </p>
<p>Choosing Cascade Mode you can display the style rules that apply to the currently selected element as well as the rules that apply to ancestors of this selected element. Selecting the necessary element in Cascade Mode while debugging, you can see the rules applied as well as the rules overridden including the rules applied to the ancestors of this element. </p>
<p>Integration with external text editors such as BBEdit is also available with Xylescope. </p>
<p><u>Price:</u> $19.95. A trial version is available. A good choice in case you don’t need various advanced features including compressor, beautiful or validation. </p>
<p><u><b>Key Features</b></u></p>
<ul>
<li>Automatic formatting</li>
<li>built-in DTD viewer</li>
<li>filter large CSS files using smart groups</li>
<li>Selector matching</li>
</ul>
<h3>Stylizer (Windows)</h3>
<p>Grid interface instead of a text editor as well as Firefox and IE embedded can be called the exclusive features offered by <a href="http://www.skybound.ca/stylizer/">Stylizer</a>. Thus, with grid system to make any CSS errors seem to impossible, while Firefox and IE included allows to check changes right in the browser. Such feature as a Firebug-like element inspector allows you to find and edit in the same place. </p>
<p><img src=" http://farm5.static.flickr.com/4059/4519992209_97c2acdef2_o.jpg " alt=" Stylizer "></p>
<p>To adjust dimensions in Stylizer is quite easy. All you need to change a margin, a height or a background position is to click on the value, drag the mouse and watch this element changed in real time. The same can be done with colours. Just click on them, drag the mouse and appreciate the colour of background or text in the browser, in real-time. </p>
<p><u>Price:</u> Stylizer Basic is free. $69.95 for Premium version with all the above mentioned features included. </p>
<p><u><b>Key Features</b></u></p>
<ul>
<li>Real-time Preview</li>
<li>Two-click Coloring</li>
<li>Edit with point-and-click efficiency</li>
<li>Remote Control</li>
</ul>
<h3>Rapid CSS Editor (Win)</h3>
<p>With such features as a code inspector, autocompleter and syntax highlighting,  <a href="http://www.blumentals.net/rapidcss/">Rapid CSS Editor</a> allows you to know whether produced code is correct. In order to check quickly the syntax and attributes of a given selector or tag, you can use built-in CSS- and HTML-references. </p>
<p><img src=" http://farm3.static.flickr.com/2731/4520627662_77dff250a4_o.jpg " alt=" Rapid CSS Editor "></p>
<p>A file manager provides you with the opportunity to upload CSS-files via FTP. With an advanced clipboard you can have multiple code fragments ready within one click. Using colour tool available you can pick the necessary colour without switching to colour application and check the result in the Style Sheet Preview with Firefox and IE.</p>
<p><u>Price:</u> $29.85. A trial-version is available.</p>
<p><u><b>Key Features</b></u></p>
<ul>
<li>Syntax Highlighting for CSS and HTML documents</li>
<li>CSS Checker and Validator</li>
<li>Instant Style Sheet Preview with Internet Explorer or FireFox</li>
<li>CSS Code Explorer</li>
<li>Code Inspector</li>
<li>Code Auto Complete for CSS and HTML</li>
<li>Built-in File Explorer</li>
<li>Compliance with CSS standards and various browsers</li>
<li>Integration with W3C CSS and HTML validators</li>
<li>Multi Item Clipboard</li>
<li>Built-in CSS Reference</li>
<li>CSS Code Formatter and Beautifier</li>
<li>CSS Code Compressor</li>
<li>Search and Replace in files</li>
<li>Save and open files directly from FTP</li>
<li>Project and site management and FTP publishing</li>
<li>Fully customizable interface</li>
<li>X-Ray for HTML preview</li>
<li>Search and Replace with Regular Expression support</li>
<li>Code collapse</li>
</ul>
<h3>TopStyle (Win)</h3>
<p><a href="http://www.newsgator.com/Individuals/TopStyle/">TopStyle</a> offers you quite a wide range of features that are not available in other editors. Such feature as HTML-tidy provides you with the opportunity to convert deprecated HTML-tags in valid XHTML easily.<br />
<img src=" http://farm3.static.flickr.com/2734/4520630268_608b678ffc_o.jpg " alt=" TopStyle "><br />
For example, you can use integrated Style update that allows you to replace deprecated tags such as the &lt;font&gt;-tag with respective valid CSS-rules. With this editor you can display site in Mozilla and IE to compare. You can change the Doctype-definition to get to know how various DTDs influence the layout in different browsers as well. </p>
<p>But maybe the best tool provided by TopStyle is Style checker. It can validate style sheets ensuring the correct layout presentation in different browsers as well as predict bugs in the most popular browsers that may occur even with valid CSS-code. </p>
<p><u>Price:</u> $79.95. Windows only. </p>
<p><u><b>Key Features</b></u></p>
<ul>
<li>HTML, xHTML and CSS Editing in a Single Program: HTML attributes are categorized displaying which are required</li>
<li>Easy Navigation between Documents</li>
<li>Element and Attribute Validation as You Type</li>
<li>Style Checker: Validate your style sheets against multiple browsers, showing any invalid properties or values</li>
<li>Style Upgrade: A quick, reliable way to replace deprecated HTML markup</li>
<li>HTML Tidy Integration: converts HTML to XHTML with a single click!</li>
<li>Site Reports: shows where styles are used in your site</li>
<li>Full Screen Preview: Split the preview between Internet Explorer and Mozilla to find differences</li>
<li>Integration with W3C HTML Validation: Results of the validation are displayed within TopStyle, with hyperlinked line numbers that synchronize with TopStyle’s editor</li>
</ul>
<h3>CSSEdit (Mac)</h3>
<p><a href="http://www.macrabbit.com/cssedit/">MacRabbit CSSEdit</a> offers you real-time styling of stylesheets as XyleScope. You can style and analyze without uploading or refreshing even if a dynamic web-application uses AJAX or powered by some complex database. Such feature as Intelligent CodeSense provides you with context-sensitive suggestions after analyzing CSS and its behaviour.<br />
<img src=" http://farm5.static.flickr.com/4041/4520626332_f8cbe8ba5e_o.jpg " alt=" CSSEdit "></p>
<p>The other thing to pay attention to is X-ray Inspector that shows what styles apply to a HTML document. The other things offered by CSSEdit is validation against W3C standards, automatically adding brackets or (semi-)colons as well as creating appropriate spacing and providing various project management tools. Live-preview feature and clipboard library are also quite useful features provided. </p>
<p><u>Price:</u> 29.95 Euro ($47). A trial-version available</p>
<p><u><b>Key Features</b></u></p>
<ul>
<li>Validation tool</li>
<li>Organize in folders and filter easily</li>
<li>Project management</li>
<li>Modify source code with intelligent CodeSense</li>
<li>X-ray pages</li>
<li>Intelligent CodeSense support</li>
<li>Selector Builder takes the Yuck out of selectors</li>
<li>Live-preview</li>
<li>Integration in web-browsers</li>
</ul>
<h3>Style Master (Win / Mac)</h3>
<p><a href="http://www.westciv.com/style_master/">Style Master</a> can be used easily by professionals as well as newbies. With integrated color picker, various wizards, templates and validation tools you can work effectively and create CSS-based websites easily without trying to solve CSS tricks.<br />
<img src=" http://farm3.static.flickr.com/2694/4519991015_76f9d56bf8_o.jpg " alt=" Style Master "><br />
Some interesting feature offered is integrated templates that are quite useful and make this CSS-editor rather unique. You also can use a use a W3C-example-stylesheet which defines the style of almost every possible HTML-tag. </p>
<p>The Design Pane offers you numerous features such as X-Ray to design your style sheets. On the whole, this editor is simple and easy to deal with. </p>
<p><u>Price:</u> $59.99. Style Master is available for both Windows and Mac. A trial-version is available.</p>
<p><u><b>Key Features</b></u></p>
<ul>
<li>Browser support help</li>
<li>Code optimization</li>
<li>Wizards</li>
<li>Intelligent code completion</li>
<li>Over 40 Templates</li>
<li>Use X-Ray to instantly see the structure of your layouts</li>
<li>Whitespace formatting tools</li>
</ul>
<h3>Style Studio (Win)</h3>
<p>CSS-Checker provided by <a href="http://www.highdots.com/css-editor">Style Studio</a> allows skillful developers as well beginners to create standard-conform CSS-based layouts. You can try various powerful tools such as Smart linker that links multiple CSS documents to various HTML documents at once as well as to take advantage of CSS Manager that manages and upgrades to standard compliant code detecting various problems occurred.<br />
<img src=" http://farm5.static.flickr.com/4039/4520629140_e41f9e2302_o.jpg " alt=" Style Studio "><br />
The other interesting feature to try is the IntelliSense-line technology available for HTML and style sheets with lookup-reference for CSS. You also can automatically detect CSS property with Property Watch tool. </p>
<p><u>Price:</u> $49.95. Windows only. </p>
<p><u><b>Key Features</b></u></p>
<ul>
<li>Powerful customizable Syntax-Colored Editor</li>
<li>CSS Validator</li>
<li>CSS Manager to manage, upgrade to standard compliant code</li>
<li>Integration with over 35 HTML editors</li>
<li>CSS Property Watch and Instant help on css keywords under caret</li>
<li>Multi files Import from HTML/Export in HTML capability</li>
<li>IntelliSense for style sheets and HTML</li>
<li>Customizable CSS Code Indent</li>
<li>Formatting ToolBars which simplify the use common properties</li>
<li>CSS wizards</li>
<li>Intelligent parser which detect invalid properties as you type</li>
<li>Unlimited number of code snippets with custom hotkeys</li>
<li>Migration Wizard</li>
<li>Easily change CSS values using Ctrl+Up/Down hotkeys</li>
<li>True multiple CSS charts support (i.e. target IE 4+ AND Netscape 4+)</li>
<li>Automatically detect installed browsers/web-authoring tools</li>
<li>Built-in system-wide search and replace</li>
</ul>
<h3>CoffeeCup (Win)</h3>
<p><a href="http://www.coffeecup.com/stylesheet-maker/">CoffeeCup StyleSheet Maker</a> offers CSS-editing options that include some sophisticated features as well as basic editing tools. It can be compared with TopStyle but with less flexibility.<br />
<img src=" http://farm5.static.flickr.com/4054/4519988475_bd8a146a05_o.jpg " alt=" CoffeeCup "><br />
Using this CSS-editor you can overlap text, palce image backgrounds in tables, create links that aren’t underlined as well as create your own tags to assign the functions you need. </p>
<p><u>Price:</u> $34.00. A trial-version is available.</p>
<p><u><b>Key Features</b></u></p>
<ul>
<li>Includes Color Schemer</li>
<li>Step by Step Help</li>
<li>Multiple Browser Testing</li>
<li>Edit, Save, and Open .css, .html or .txt documents</li>
<li>Cascading Style Sheet Creation for Netscape and Internet Explorer 3.0+</li>
<li>50 Style Sheet Drop Down Tags</li>
<li>Easy CSS Font Designer</li>
<li>Class &#038; ID Wizard for Creating your own HTML Tags</li>
<li>Dynamic HTML Snippets </li>
</ul>
<h3>EngInSite CSS Editor (Win)</h3>
<p><a href="http://www.enginsite.com/css-editor.htm">EngInSite CSS Editor </a> has all the necessary tools to create web-sites that pass the W3C validation test. They include integrated instant style sheet previewer, syntax highlighting, automated code completion, integration with W3C HTML Validator, built-in CSS Reference, live editing feature as well as customizable and expandable code library.<br />
<img src=" http://farm3.static.flickr.com/2798/4520626774_9e2f5db1a9_o.jpg " alt=" EngInSite CSS Editor "><br />
The other thing to try is a CSS Property Editor with dynamic shorthand properties support and Selector Constructor that helps you with various code tools and complicated selectors such as Convert Colors or Expanding/Extract URLS. </p>
<p><u>Price:</u> $39.95. A trial-version is available.</p>
<p><u><b>Key Features</b></u></p>
<ul>
<li>Advanced text editor</li>
<li>Integration with W3C HTML Validator</li>
<li>Integrated Instant Style Sheet Preview against HTML file of your choice</li>
<li>Check your CSS syntax against multiple browsers</li>
<li>Visual editors for different data types</li>
<li>Compliance with CSS standards and various browsers</li>
<li>Compatibility Check and Syntax check</li>
<li>Search and Replace with Regular Expression support</li>
<li>Wizards for body, IE Scrollbars, lists and backgrounds</li>
</ul>
<h3>Jellyfish CSS (Mac)</h3>
<p>The features to pay attention to offered by <a href="http://www.macjelly.net/en/index.html">Jellyfish CSS</a> are Code-Sense support, code library, browser support reference as well as wizards that help you to avoid mistakes. Such tool as an integrated Colorblender allows you to create matching colour palettes.<br />
<img src=" http://farm5.static.flickr.com/4067/4520627272_cb8417f7c9_o.jpg " alt=" Jellyfish CSS "><br />
<u>Price:</u> $47. A trial-version is available.</p>
<p><u><b>Key Features</b></u></p>
<ul>
<li>Code-Sense helps you avoiding mistakes</li>
<li>Supports Mobile Profile 1.0</li>
<li>Syntax-highlighting</li>
<li>Codechecking while typing</li>
<li>3 different preview-types</li>
<li>Style-Check with the W3C Validator and CSS-Tidy</li>
<li>Wizards support you while creating Stylesheets</li>
<li>Colourblender</li>
</ul>
<h3>Astyle (Win)</h3>
<p><a href="http://www.athlab.com/Astyle/index.html">Astyle</a> is a basic CSS-editor with basic feature provided. In other words, there are no advanced features, only the most necessary tools.<br />
<img src=" http://farm3.static.flickr.com/2737/4520625594_62ab444341_o.jpg " alt=" Astyle "><br />
<u>Price:</u> $20.</p>
<p><u><b>Key Features</b></u></p>
<ul>
<li>Graphic tree-type view of attachment files and the CSS structure</li>
<li>Grouped view of properties and selectors</li>
<li>Automatic selection and grouping of CSS selectors from a markup language document</li>
<li>Source CSS, HTML, XML highlight code editor</li>
<li>Clean up HTML document via CSS</li>
<li>Icon associate dictionary</li>
</ul>
<h3>Other CSS-Editors to Check</h3>
<p><b>JustStyle CSS Editor (Cross-platform)</b></p>
<p><a href="http://www.ucware.com/juststyle/">JustStyle CSS Editor</a> is written in Java and can work on various platforms including Microsoft Windows, Linux, Mac OS X, IBM OS/2, Apple Mac OS and others. With its help you can edit the whole CSS-file as well as just some fragments selected. This tool provides you with minimal number of features, but still it can be used to update CSS-file quickly outside your personal development environment. Anyway, JustStyle can’t be used for lager projects. </p>
<p><b>Simple CSS (Win)</b></p>
<p><a href="http://www.hostm.com/css/">Simple CSS</a> is also appropriate for Windows, Linux and Mac. You can preview and check quickly the produced source code. It is rather simple and easy to use tool that allows you to group single elements styled via CSS.<br />
<img src="http://farm5.static.flickr.com/4056/4520628148_142036949b_o.jpg" alt=" Simple CSS "></p>
<p><b>CSSED (Linux / Win / Mac)</b></p>
<p><a href="http://cssed.sourceforge.net/">CSSED</a> is the best solution for Linux. It provides you with the most essential features such as syntax validation, highlighting and autocompletion-tool and can be upgraded with plugins. Open Source. </p>
<p><b>Eric Meyer’s CSS Sculptor (Win)</b></p>
<p><a href="http://www.webassist.com/go/css/emeyer">Eric Meyer’s CSS Sculptor</a> template-based add-on for Dreamweaver and Microsoft Expression Web. 30 layouts can be used to modify the design as you wish. Thus, you can change the page width or number of columns. You also are able to specify padding and margins for any page element as well as the type properties for headings and paragraphs. These modified layouts can be saved to recreate or modify later. </p>
<h3>Alternative Tools to Try</h3>
<p><a href="http://getfirebug.com/">Firebug</a><br />
Firebug’s CSS tabs tell you everything you need to know about the styles in your web pages, and you can make changes as well as preview them.</p>
<p><a href="http://www.altova.com/features_css_editor.html">XMLSpy</a><br />
This editor includes a full-featured CSS editor to assist developers creating XML-based Web sites in XMLSpy.</p>
<p><a href="http://www.oxygenxml.com/css_editor.html">Oxygen</a><br />
An XML-Editor with CSS-functionality</p>
<p><a href="http://www.projectseven.com/products/templates/pagepacks/cssmagic/index.htm">CSS Layout Magic</a> (Win / Mac)<br />
This Dreamweaver-plugin offers you a number of simple or advanced CSS-layouts. Works on Windows and Mac OS X systems running Dreamweaver MX. <u>Price:</u> $60.</p>
<p><a href="http://eledo.com/article20.html">Eledicss</a><br />
A CSS2 editor implemented as a server-side PHP script. It allows editing CSS files using a web browser.</p>
<p><a href="http://chrispederick.com/work/web-developer/">Web Developer’s Toolbar</a> (Firefox Extension)<br />
The Web Developer extension adds a menu and a toolbar to the browser with various web developer tools. It is designed for Firefox, Flock and Seamonkey, and will run on any platform that these browsers support including Mac OS X, Windows, and Linux.</p>
<p><em>Reference: www.smashingmagazine.com/2008/06/19/css-editors-reviewed/</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/10-top-css-editors.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross Browser Detection Using CSS Hacks Explained</title>
		<link>http://www.webdea.com/cross-browser-css-hacks.html</link>
		<comments>http://www.webdea.com/cross-browser-css-hacks.html#comments</comments>
		<pubDate>Tue, 06 Apr 2010 12:57:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[cross browser]]></category>
		<category><![CDATA[css hacks]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[opera]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=45</guid>
		<description><![CDATA[<a href="http://www.webdea.com/cross-browser-css-hacks.html"><img src="http://farm3.static.flickr.com/2684/4496316573_5d347e39a9_o.jpg" alt="browser CSS Hacks to know" align="left"></a>All we know that CSS more attractive for web developers. However, there are still some problems that keep the developers from using it. The problem is in interpreting CSS commands in different ways that is a usual thing for browsers. Learn more about CSS and different browser interpretations stop to be a mystery for you. ]]></description>
			<content:encoded><![CDATA[<p>Quicker download time, easier site management as well as improved accessibility make CSS more attractive for web developers. However, there are still some problems that keep the developers from using CSS to control the layouts of the site. Let’s try to solve some of them. </p>
<h3>Mad with CSS?</h3>
<p><img src="http://farm5.static.flickr.com/4006/4496317117_3fb0f864ec_o.jpg" alt="cross browser CSS Hacks" align="right"></p>
<p>Today there are no problems concerning a lack of browser support for CSS because &#8216;version 5&#8242; browsers began to offer a full implementation of CSS. The problem is in interpreting CSS commands in different ways that is a usual thing for browsers. With such tricks appeared, many web developers prefer to switch back to pixel-perfect table layouts. But wait! Just learn more about CSS and different browser interpretations stop to be a mystery for you. What is more, there are not so many of them and using various hacks makes you life easier.</p>
<h3>How CSS Hacks Turn ‘Mad With’ Into ‘Mad About’</h3>
<p>CSS hacks work by sending one CSS rule to the browser or several browsers for your choice and the second CSS rule that overrides the first command to the other browsers. In case you have two CSS rules within the same selectors, the second CSS rule will almost always take priority. </p>
<p>For example, you need the space between a page&#8217;s header area and content to 25px in Internet Explorer. It may be great for Internet Explorer, but for Opera, Safari and Firefox this gap is not appropriate and you want to make a 10px gap instead. Here are two CSS rules that help you to perform the best in all browsers:</p>
<blockquote><p>#header {margin-bottom:25px}<br />
#header {margin-bottom:10px}</p></blockquote>
<p>In this case the first command is for IE while the second is for all other browsers. However, there is no good news by now, because all browsers can understand both CSS rules. In other words, they all use the second rule, because it comes after the first. </p>
<p>And now a CSS hack should be inserted to hide the second CSS rule from IE. In such a way, IE won’t know that the rule exists and just will use the first CSS rule. Seems to be quite simple? Let’s find out the details. </p>
<h3>Browser Detection for Internet Explorer</h3>
<p>If you need to send different CSS rules to IE, you can use the child selector command that IE can’t understand. This command consists of two elements one of which is the child of another. Thus, html>body refers to the child <u>body</u> with parent <u>html</u>. </p>
<p>Here is the example of the header margin that illustrates our CSS command:</p>
<blockquote><p>#header {margin-bottom:3em}<br />
<strong>html>body #header {margin-bottom:1em}</strong></p></blockquote>
<p>Because of the html>body CSS command, IE can’t understand the second CSS rule and ignore it using the first rule. All other browsers will use the second rule. </p>
<h3>Browser Detection for Internet Explorer 5</h3>
<p><img src="http://farm5.static.flickr.com/4026/4496954800_8d1edd4b4d_o.jpg" alt="CSS Hacks and browser detection" align="right"></p>
<p>IE5 requires different CSS rules because of its misinterpretation of the box model. For example, padding and borders are not included when we specify the width of some element in CSS. IE5 incorporates them both into the width value and, as a result, elements widths are smaller in this browser. </p>
<p>Here is the CSS rule that results in a width of 10em for all browsers except IE5 where the width will be 5em. IE5 just incorporate two sets of padding and border, on both the left and right, when calculating the width with the following rule:</p>
<blockquote><p>#header {padding: 2em; border: 0.5em; width: 10em}</p></blockquote>
<p>You can solve this problem using box model hack invented by famous Tantek Çelik. For browser detection and sending different CSS rule to IE5 you should use the following: </p>
<blockquote><p>#header {padding: 2em; border: 0.5em; width: 15em;<br />
<strong>voice-family: &#8220;\&#8221;}\&#8221;"; voice-family:inherit; width: 10em}</strong></p></blockquote>
<p>Don’t ask how it works. Just use it. Need details? IE5 will use the first width value of 15em. As we have mentioned above, 5em of it will be taken up by two sets of padding and border (for the left and for the right). That will cause the width of 10em in IE5.</p>
<p>The 15em value will be overridden by the second value of 10em by all other browsers except IE5, because it can’t understand the CSS command that comes immediately after all those squiggles. </p>
<p>However, nothing is perfect and the box model hack is not an exception to this rule. For example, it can ‘kill’ the next CSS rule in IE5. But there are a lot of other box model hacks that can help you. </p>
<h3>Browser Detection for Internet Explorer on the Mac</h3>
<p>IE on the Mac is also quite capricious with CSS. Thus, many developers code sites in such a way that they work in IE/Mac. Of course, it may not offer the same level of design or functionality that is offered with other platform or browser, but still it is a good solution. </p>
<p>To hide a command with IE/Mac hack is quite simple. Just wrap a set of stars and dashes around CSS rules: </p>
<blockquote><p><strong>/* Hide from IE-Mac \*/</strong><br />
#header {margin-bottom:3em}<br />
#footer {margin-top:1.5em}<br />
/* End hide */</p></blockquote>
<p>These commands will be ignored by IE/Mac. Such CSS hack is rather useful if some area of the site doesn’t work properly in IE/Mac. If it is something unimportant you can hide it from IE/Mac just like this:</p>
<blockquote><p>#noiemac {display: none}</p>
<p>/* Hide from IE-Mac \*/<br />
#noiemac {display: block}<br />
/* End hide */</p></blockquote>
<p>The first CSS rule hides the entire section assigned the noiemac id. The second CSS rule displays this section (can’t b seen by IE/Mac)</p>
<h3>Browser Detection for Netscape 4</h3>
<p>Netscape 4 has limited support for CSS. Thus, making a CSS layout for this browser can be quite a difficult task. Today most web developers prefer to hide the CSS file from this browser. You can do this with the <strong>@import</strong> directive to call up the CSS document:</p>
<blockquote><p>@import url(cssfile.css);</p></blockquote>
<p>Thus, Netscape 4 can&#8217;t understand this @import directive and will display a non-styled version of the site.</p>
<h3>Make Sure to Check Your Site in the Different Browsers</h3>
<p>This is a must. Just download the major browsers such as Firefox, IE5, IE6, Opera and Safari and check your site on PC and Mac. There are quite a lot of sites offering you their services in case you don’t have access to a Mac, so search for them.</p>
<p>The other main rule in case certain page elements appear differently in different browsers is stop worrying… and start making some trial-and-error changes playing with CSS rules. Anyway, you can fix it up with CSS hacks that always ready to help you make your site look great. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/cross-browser-css-hacks.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Hacks for… Everyone</title>
		<link>http://www.webdea.com/css-hacks.html</link>
		<comments>http://www.webdea.com/css-hacks.html#comments</comments>
		<pubDate>Thu, 28 Jan 2010 16:10:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css hacks]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[how to use]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[opera]]></category>

		<guid isPermaLink="false">http://www.webdea.com/?p=27</guid>
		<description><![CDATA[<a href="http://www.webdea.com/css-hacks.html"><img src="http://farm5.static.flickr.com/4013/4306190749_fd0534c29b_o.jpg" alt="CSS Hacks to know" align="left"></a>Here you can find all the necessary data concerning CSS hacks for Safari, Internet Explorer 7, Opera, etc., that sometimes really make problems. It is not so easy to remember them at once, so I write down several of them and offer you to use my “notes”. Hope that make your life easier… ]]></description>
			<content:encoded><![CDATA[<p>Today I want to talk about CSS hacks. <img src="http://farm5.static.flickr.com/4043/4306191275_970420d6da_o.jpg" alt="CSS Hacks to remember" align="right">There is no reason to explain why, because even with the release of Internet Explorer 8 we still need to use them. It seems that we will use them forever… especially with those clients who still prefer that damned IE6. </p>
<p>To remember all the CSS hacks seem to be impossible so I decide to create such a list that can be of use for you too. </p>
<p> So, let’s start. </p>
<h3>CSS for Internet Explorer:</h3>
<blockquote><p>/* for all versions */<br />
.class { *color: #8abdce; }</p></blockquote>
<p></br></p>
<blockquote><p>/* for Internet Explorer 6 */<br />
.class { _color: #8abdce; }<br />
or<br />
.class { -color: #8abdce; }</p></blockquote>
<p></br></p>
<blockquote><p>/* /* for Internet Explorer 7 */<br />
*+html .class { color: #8abdce; }</p></blockquote>
<p></br></p>
<blockquote><p>/* for Internet Explorer 7 */<br />
*:first-child+html .class { color: #8abdce; }</p></blockquote>
<p></br></p>
<blockquote><p>/* for Internet Explorer 7 */<br />
html>body .class {<br />
*background: #F00;<br />
}</p></blockquote>
<p></br></p>
<blockquote><p>/* for Internet Explorer 8 */<br />
.ie8only { color /*\**/: #fff\9 }</p></blockquote>
<p></br></p>
<h3>CSS Hacks for Opera:</h3>
<p><img src="http://farm5.static.flickr.com/4031/4306193131_20ce258a2b_o.jpg" alt="CSS Hacks for all" align="right"></p>
<blockquote><p>@media all and (-webkit-min-device-pixel-ratio:10000),<br />
not all and (-webkit-min-device-pixel-ratio:0) {<br />
.style {background: #F00;}<br />
}</p></blockquote>
<p></br></p>
<blockquote><p>html:first-child .class { color: #8abdce; }</p></blockquote>
<p></br></p>
<blockquote><p>*|html[xmlns*=""] .style {<br />
background: #F00;<br />
}</p></blockquote>
<p></br></p>
<h3>CSS Hacks for Firefox:</h3>
<blockquote><p>html:root .class { color: #8abdce; } /* this also works for Safari */</p></blockquote>
<p></br></p>
<blockquote><p>.class, x:-moz-any-link { color: #368EF1; }</p></blockquote>
<p></br></p>
<blockquote><p>@-moz-document url-prefix() {<br />
.style {color: #F00;}<br />
}</p></blockquote>
<p></br></p>
<blockquote><p>/* for FireFox 1-2 */<br />
@-moz-document url-prefix() {<br />
color: #F00;<br />
}</p></blockquote>
<p></br></p>
<h3>CSS Hacks for Safari:</h3>
<blockquote><p>html[xmlns*=""] body:last-child .class { color: #368EF1; }</p></blockquote>
<p></br></p>
<h3>CSS Hacks for Safari and Google Chrome:</h3>
<blockquote><p>body:last-child:not(:root:root) .style {<br />
color: #F00;<br />
}</p></blockquote>
<p></br></p>
<blockquote><p>body:nth-of-type(1) p {<br />
color: #333333;<br />
}</p></blockquote>
<p></br></p>
<p>Of course, hacks are evil, but sometimes they help to solve the problems. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdea.com/css-hacks.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

