<?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>inditetheweb.com&#187; CSS Tips and Tricks | Indite the Web | Web Development Tips, Tricks, and Tutorials</title>
	<atom:link href="http://www.inditetheweb.com/category/tips-and-tricks/css-tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.inditetheweb.com</link>
	<description>Web Development Tips, Tricks, and Tutorials</description>
	<lastBuildDate>Wed, 11 Nov 2009 17:57:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PNG Transparency Solutions For IE6</title>
		<link>http://www.inditetheweb.com/2009/04/png-transparency-solutions-for-ie6/</link>
		<comments>http://www.inditetheweb.com/2009/04/png-transparency-solutions-for-ie6/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 14:11:09 +0000</pubDate>
		<dc:creator>Kate</dc:creator>
				<category><![CDATA[CSS Tips and Tricks]]></category>
		<category><![CDATA[JavaScript Tips and Tricks]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[PNG]]></category>
		<category><![CDATA[transparency]]></category>

		<guid isPermaLink="false">http://www.inditetheweb.com/?p=140</guid>
		<description><![CDATA[I&#8217;ve never really played around with PNG transparency because of IE6s lack of support.  But, recently I wanted to use it on a project, and I knew there&#8217;s a Microsoft solution using AlphaImageLoader.  So I gave it a try, and it worked fairly well.  Until I went to click a link.  [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve never really played around with PNG transparency because of IE6s lack of support.  But, recently I wanted to use it on a project, and I knew there&#8217;s a Microsoft solution using AlphaImageLoader.  So I gave it a try, and it worked fairly well.  Until I went to click a link.  And then I tried highlighting text.  No dice.  I assumed it was a z-index issue, so after trying a couple things myself, I did a quick search online.  I came across this article:</p>
<p><a href="http://www.hrunting.org/csstests/iealpha.html" onclick="window.open('http://www.hrunting.org/csstests/iealpha.html');return false;">http://www.hrunting.org/csstests/iealpha.html</a></p>
<p>And, it worked!  (Didn&#8217;t need to add a z-index, either.)  Now, bear in mind that the fix is to *not* set positioning on the element that you use a filter on.  So it may not be right for your project.  However, if your layout does rely on position:relative, consider using this:</p>
<p><a href="http://www.dillerdesign.com/experiment/DD_belatedPNG/" onclick="window.open('http://www.dillerdesign.com/experiment/DD_belatedPNG/');return false;">http://www.dillerdesign.com/experiment/DD_belatedPNG/</a></p>
<p>It&#8217;s a great JS library that easily whips IE6 into shape.  I&#8217;m using it on a site that&#8217;s also using MooTools, and I&#8217;ve experienced no conflict issues, which is great.</p>
<p>I can&#8217;t wait until the percentage of IE6 users falls low enough to ease my mind about not supporting them.  (I know many think it already has, but I&#8217;m holding on.  At least for a little while.)  The concession of sorts that I&#8217;ve made is that for IE6 users who don&#8217;t have JS enabled, obviously it&#8217;s not good news.  But, in my opinion, to support both was just unnecessary.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.inditetheweb.com/2009/04/png-transparency-solutions-for-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Controlling the Textarea Tag In Safari</title>
		<link>http://www.inditetheweb.com/2009/01/controlling-the-textarea-tag-in-safari/</link>
		<comments>http://www.inditetheweb.com/2009/01/controlling-the-textarea-tag-in-safari/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 17:46:14 +0000</pubDate>
		<dc:creator>Kate</dc:creator>
				<category><![CDATA[CSS Tips and Tricks]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.inditetheweb.com/?p=124</guid>
		<description><![CDATA[If you&#8217;ve used Safari for any amount of time, there&#8217;s a good chance you&#8217;ve noticed it allows users to resize textarea sizes.  This can be a cool feature, but not always a good one.  It&#8217;s not likely to do any real harm, but it may break your layout.  Of course, some could [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve used Safari for any amount of time, there&#8217;s a good chance you&#8217;ve noticed it allows users to resize textarea sizes.  This can be a cool feature, but not always a good one.  It&#8217;s not likely to do any real harm, but it may break your layout.  Of course, some could argue that that&#8217;s the user&#8217;s choice.  Well, I can see that.  But for those times or people that require a little more control, use this:</p>
<p><code>
<pre>textarea{max-width:200px;}/*Insert your value here.  Additionally, you could add textarea width and height values which ensures that it will look the same across all browsers.*/</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.inditetheweb.com/2009/01/controlling-the-textarea-tag-in-safari/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Styling the abbr Tag</title>
		<link>http://www.inditetheweb.com/2008/12/styling-the-abbr-tag/</link>
		<comments>http://www.inditetheweb.com/2008/12/styling-the-abbr-tag/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 18:20:23 +0000</pubDate>
		<dc:creator>Kate</dc:creator>
				<category><![CDATA[CSS Tips and Tricks]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.inditetheweb.com/?p=86</guid>
		<description><![CDATA[There are several ways that CSS can work along with SEO. Today, I&#8217;ll cover one quick option: styling the abbr tag.
Say, for instance, you have a link that states that your site is valid XHTML. Well, inside of the link use the abbr tag around the word XHTML. Inside of the abbr tag you use [...]]]></description>
			<content:encoded><![CDATA[<p>There are several ways that CSS can work along with SEO. Today, I&#8217;ll cover one quick option: styling the abbr tag.</p>
<p>Say, for instance, you have a link that states that your site is valid XHTML. Well, inside of the link use the abbr tag around the word XHTML. Inside of the abbr tag you use the title attribute to fill in what the word is an abbreviation for. When a search engine crawls your site, they not only come across your abbreviation, but also the value you&#8217;ve put in for the title. When hovered over, the title creates a tool-tip. By default the abbreviation will have a line below it. However, if you don&#8217;t want the line used, you would use this declaration in the CSS:</p>
<p><code>
<pre>abbr{border:none;} </pre>
<p></code></p>
<p>
(For simplicity sake, I&#8217;m using an inline style here.  Because I have the abbr styled in my CSS, I had to override it by manually inserting what the browser does by default:)
</p>
<p>Without the style:<br />
<a href="#">Valid <abbr title="eXtensible Hypertext Markup Language" style="border-bottom:1px dashed #ec1f93;" >XHTML</abbr></a>
</p>
<p>With the style:<br />
<a href="#">Valid <abbr title="eXtensible Hypertext Markup Language" style="border:none;">XHTML</abbr></a>
</p>
<p>See the difference?  It&#8217;s quick but handy.  Alternatively, you could use a different border or another style if you wanted to.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.inditetheweb.com/2008/12/styling-the-abbr-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two Of My Favorite Tricks&#8230;</title>
		<link>http://www.inditetheweb.com/2008/10/two-of-my-favorite-tricks/</link>
		<comments>http://www.inditetheweb.com/2008/10/two-of-my-favorite-tricks/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 18:09:40 +0000</pubDate>
		<dc:creator>Kate</dc:creator>
				<category><![CDATA[CSS Tips and Tricks]]></category>
		<category><![CDATA[browser support]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.inditetheweb.com/?p=62</guid>
		<description><![CDATA[CSS can be one of the most powerful tools a developer has in their arsenal.  It can make changing styles a breeze compared to inline styles.  But, it can also be one of the most frustrating tools a developer has.  It&#8217;s not CSS in and of itself.  Rather, it&#8217;s the support, [...]]]></description>
			<content:encoded><![CDATA[<p>CSS can be one of the most powerful tools a developer has in their arsenal.  It can make changing styles a breeze compared to inline styles.  But, it can also be one of the most frustrating tools a developer has.  It&#8217;s not CSS in and of itself.  Rather, it&#8217;s the support, or <em>lack</em> of support that&#8217;s frustrating.  Even seasoned developers can encounter a problem that makes them sit back and scratch their head.  While such problems have usually come from, (ahem), IE6, other browsers have their fair share of quirks.  So, at least for now, I wanted to list two of my favorite tricks/techniques that I use when I code a stylesheet.  Hope they&#8217;re helpful.  If you have any comments or questions, feel free to include them in the comments section.</p>
<p><code></p>
<pre>
* {margin:0;auto:0;} /*This takes away a browser's default padding and margin settings for <em>all</em> elements, (which is what the asterisk indicates).  This way, you know you're starting from scratch, and elements will only have the spacing you want them to.*/
</pre>
<p></code></p>
<p><code></p>
<pre>
! important /*I always code sites to be cross-browser compatible.  One of the tools that helps me with this is the "! important" declaration. */
</pre>
<p></code></p>
<p>Basically, it works this way: Standards-compliant browsers, (Safari, Firefox, IE7, etc.), will recognize and apply this to the style you&#8217;ve assigned it to.  However, for a browser like IE6 that doesn&#8217;t recognize it, it goes unnoticed.  For example, say you needed to make up for a 3px difference in IE6 on a paragraph tag.  This is how you could accomplish it: </p>
<p><code></p>
<pre>
p{padding-right:0px ! important;padding-right:3px;}
</pre>
<p></code></p>
<p>IE6 will see the ! important declaration and essentially ignore it.  Then, it will hit the next &#8220;padding-right&#8221; declaration and add 3px to the right side of the paragraph.  However, for the standards-compliant browsers, they recognize and use the &#8220;! imporant&#8221; declaration.  What I like about this solution is that it&#8217;s perfectly valid CSS, so, at least in my eyes, it doesn&#8217;t seem like a true &#8220;hack&#8221;.  (<strong>NOTE:</strong> The order in which you use this technique is important.  The &#8220;! important&#8221; declaration must come <em>before</em> the second declaration.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.inditetheweb.com/2008/10/two-of-my-favorite-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
