<?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>scriptygoddess &#187; CSS</title>
	<atom:link href="http://www.scriptygoddess.com/archives/category/css-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com</link>
	<description></description>
	<lastBuildDate>Thu, 08 Dec 2011 18:23:44 +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>Disappearing absolute positioned elements in IE7</title>
		<link>http://www.scriptygoddess.com/archives/2011/10/26/disappearing-absolute-positioned-elements-in-ie7/</link>
		<comments>http://www.scriptygoddess.com/archives/2011/10/26/disappearing-absolute-positioned-elements-in-ie7/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 19:40:31 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/?p=1696</guid>
		<description><![CDATA[With IE6 nearly dead (although according to Microsoft &#8211; as of this writing, 9% of users worldwide still have this P.O.S. browser on their machines which, if you go by w3school&#039;s stats, is more than Safari&#039;s usage. Then again, w3schools has ie6 pinned at around 1% so maybe there&#039;s still hope) Or not. IE7 and [...]
Related posts:<ol>
<li><a href='http://www.scriptygoddess.com/archives/2011/04/29/the-mysteriously-disappearing-wordpress-3-1-admin-bar/' rel='bookmark' title='The mysteriously disappearing WordPress 3.1 Admin Bar'>The mysteriously disappearing WordPress 3.1 Admin Bar</a> <small>I&#039;ve run into this problem a few times now and...</small></li>
</ol>

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>With IE6 nearly dead (although <a href="http://www.ie6countdown.com/">according to Microsoft</a> &#8211; as of this writing, 9% of users worldwide still have this P.O.S. browser on their machines which, if you go by <a href="http://www.w3schools.com/browsers/browsers_stats.asp">w3school&#039;s stats</a>, is more than Safari&#039;s usage. Then again, w3schools has ie6 pinned at around 1% so maybe there&#039;s still hope) Or not. IE7 and all of it&#039;s annoying issues will be happy to serve up your frustrations.</p>
<p>I recently ran into the most bizarre bug. It takes a &#039;perfect storm&#039; to create &#8211; one that I hadn&#039;t created before in hundreds (thousands?) of HTML files I&#039;ve worked on. To recreate you need an absolute positioned element &#8211; then an element that&#039;s floated right, then another element that is positioned relative. A little odd I know, but in a layout I was working on &#8211; this was the scenario I ended up with. The result: The absolute positioned element was just GONE from the page.</p>
<p>Take a look at the <a href="http://scriptygoddess.com/resources/ie7bug.html">real basic example here</a> (If you have IE7, that&#039;s where you&#039;ll see the problem.) Here&#039;s what it&#039;s supposed to look like:</p>
<p><img class="aligncenter size-large wp-image-1697" title="IE8" src="http://www.scriptygoddess.com/wp-content/uploads/2011/10/IE8-e1319657478205.png" alt="" width="465" height="228" /></p>
<p>Here&#039;s what IE7 shows</p>
<p><img class="aligncenter size-large wp-image-1698" title="IE7" src="http://www.scriptygoddess.com/wp-content/uploads/2011/10/IE7-e1319657597718.png" alt="" width="476" height="184" /></p>
<p>Notice the missing text at the top? In my layout that was a company&#039;s logo. Lovely.</p>
<p>The fix? Equally as stupid. A static DIV after the absolute positioned element and all is good. If you have IE7 you can <a href="http://www.scriptygoddess.com/resources/ie7bugfix.html">see the fixed page here</a>.</p>
<p>Many hairs were pulled in the discovery and fixing of this IE7 bug. Here&#039;s to hoping I can save you and your hair some pain. <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Related posts:<ol>
<li><a href='http://www.scriptygoddess.com/archives/2011/04/29/the-mysteriously-disappearing-wordpress-3-1-admin-bar/' rel='bookmark' title='The mysteriously disappearing WordPress 3.1 Admin Bar'>The mysteriously disappearing WordPress 3.1 Admin Bar</a> <small>I&#039;ve run into this problem a few times now and...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2011/10/26/disappearing-absolute-positioned-elements-in-ie7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS for iPhone&#039;s eyes only (watch out for the cache)</title>
		<link>http://www.scriptygoddess.com/archives/2010/04/14/css-for-iphones-eyes-only-watch-out-for-the-cache/</link>
		<comments>http://www.scriptygoddess.com/archives/2010/04/14/css-for-iphones-eyes-only-watch-out-for-the-cache/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 04:21:07 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS related]]></category>
		<category><![CDATA[Lessons learned]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/?p=1636</guid>
		<description><![CDATA[On a project I was working on recently, I was pulling in some css for iPhone users using PHP with the following code: &#60;php if (strpos($_SERVER['HTTP_USER_AGENT'],"iPhone")) { ?&#62; ... CUSTOM CSS FOR IPHONE... &#60;php } ?&#62; This will also work for iPhones and iPod Touch: &#60;php if (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') &#124;&#124; strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) { ?&#62; ... CUSTOM CSS... [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>On a project I was working on recently, I was pulling in some css for iPhone users using PHP with the following code:</p>
<p><code>&lt;php if (strpos($_SERVER['HTTP_USER_AGENT'],"iPhone")) { ?&gt;<br />
... CUSTOM CSS FOR IPHONE...<br />
&lt;php } ?&gt;</code></p>
<p>This will also work for iPhones and iPod Touch:</p>
<p><code>&lt;php if (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) { ?&gt;<br />
... CUSTOM CSS...<br />
&lt;php } ?&gt;</code></p>
<p>That&#039;s great and all &#8211; but then suddenly one day it stopped working. Going back through what changed on the site, I realized one thing we added was a cache plugin. DOH! So the page gets cached without the custom CSS for the iPhone &#8211; the iPhone calls up the site but gets served the cached page (non-iPhone version)&#8230; Yeah, that would do it.</p>
<p>So I found <a href="http://www.boutell.com/newfaq/creating/iphone.html">this solution</a>:</p>
<p><code>&lt;!--[if !IE]&gt;--&gt;<br />
    &lt;style type="text/css"&gt;<br />
	@media only screen and (max-device-width: 480px) {<br />
.... CUSTOM CSS HERE....<br />
	}<br />
	&lt;/style&gt;<br />
&lt;!--&lt;![endif]--&gt;</code></p>
<p>or of course you can pull in a whole stylesheet for the iphone:</p>
<p><code>&lt;!--[if !IE]&gt;--&gt;<br />
&lt;link media="only screen and (max-device-width: 480px)"  rel="stylesheet" type="text/css" href="iphone.css" /&gt;<br />
&lt;!--&lt;![endif]--&gt;</code></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2010/04/14/css-for-iphones-eyes-only-watch-out-for-the-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overlapping Tabbed Navigation using CSS and jQuery</title>
		<link>http://www.scriptygoddess.com/archives/2008/09/20/overlapping-tabbed-navigation-using-css-and-jquery/</link>
		<comments>http://www.scriptygoddess.com/archives/2008/09/20/overlapping-tabbed-navigation-using-css-and-jquery/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 20:51:13 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/?p=1528</guid>
		<description><![CDATA[Recently had a project land on my desk that required tabbed navigation that overlap one another. Just so we&#039;re clear on what we&#039;re doing: here&#039;s the demo. Here is how I did it: 1) Each tab has four &#034;states&#034; &#8211; Off, Off (with right tab on), On, On (with right tab on). I combined each [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Recently had a project land on my desk that required tabbed navigation that overlap one another. Just so we&#039;re clear on what we&#039;re doing: <a href="/resources/1528/overlappingtabs.html">here&#039;s the demo</a>. Here is how I did it:</p>
<p>1) Each tab has four &#034;states&#034; &#8211; Off, Off (with right tab on), On, On (with right tab on). I combined each of these four states in the one image for each tab. So it looks like this:</p>
<p><img src="/resources/1528/css/images/nav_about.gif" /></p>
<p>2) The HTML is pretty simple and looks like this:</p>
<p><code>&lt;div id="navbar"&gt;<br />
&lt;ul&gt;<br />
&lt;li id="nav_home"&gt;&lt;a href="#"&gt;&lt;span&gt;Home&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;li id="nav_about"&gt;&lt;a href="#"&gt;&lt;span&gt;About Us&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;li id="nav_products" class="right"&gt;&lt;a href="#"&gt;&lt;span&gt;Products&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;li id="nav_sales" class="current"&gt;&lt;a href="#"&gt;&lt;span&gt;Sales Reps&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;li id="nav_contact"&gt;&lt;a href="#"&gt;&lt;span&gt;Contact Us&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;</code></p>
<p>Notice that when one of the tabs is set as the &#034;current&#034; tab &#8211; we also need to define the tab before it with a class of &#034;right&#034; (meaning that the tab to the right of this one is set as &#034;on&#034;)</p>
<p>3) Then we define the various states in CSS. In this case, all the tabs are the same width and height:</p>
<p><code>#navbar li {<br />
float: left;<br />
}<br />
#navbar li a {<br />
display: block;<br />
height: 29px;<br />
width: 91px;<br />
}</code></p>
<p>Hide the text with css since we&#039;re using images for the tabs:</p>
<p><code>#navbar li a span {<br />
margin: 0 0 0 -100000px;<br />
}</code></p>
<p>Define the image to be used for each tab:</p>
<p><code>#nav_home a {<br />
background:url(images/nav_home.gif) top left no-repeat;<br />
}<br />
#nav_about a {<br />
background:url(images/nav_about.gif) top left no-repeat;<br />
}<br />
#nav_products a {<br />
background:url(images/nav_products.gif) top left no-repeat;<br />
}<br />
#nav_sales a {<br />
background:url(images/nav_sales.gif) top left no-repeat;<br />
}<br />
#nav_contact a {<br />
background:url(images/nav_contact.gif) top left no-repeat;<br />
}</code></p>
<p>4) I&#039;m going to skip over the rest of the class definitions and move to the jquery part &#8211; because I think it will make more sense to see how the classes are being defined if you see what class I&#039;m applying when and where.</p>
<p><code>&lt;script type="text/javascript" src="js/jquery-1.2.6.min.js"&gt;&lt;/script&gt;<br />
&lt;script type="text/javascript"&gt;<br />
var j = jQuery.noConflict();<br />
j(document).ready( function() {<br />
	j('#nav_about a').hover(function() {<br />
		j('#nav_home a').addClass("left");<br />
	}, function() {<br />
		j('#nav_home a').removeClass("left");<br />
	});<br />
	j('#nav_products a').hover(function() {<br />
		j('#nav_about a').addClass("left");<br />
	}, function() {<br />
		j('#nav_about a').removeClass("left");<br />
	});<br />
	j('#nav_sales a').hover(function() {<br />
		j('#nav_products a').addClass("left");<br />
	}, function() {<br />
		j('#nav_products a').removeClass("left");<br />
	});<br />
	j('#nav_contact a').hover(function() {<br />
		j('#nav_sales a').addClass("left");<br />
	}, function() {<br />
		j('#nav_sales a').removeClass("left");<br />
	});<br />
});<br />
&lt;/script&gt;</code></p>
<p>So what I&#039;m doing here is, anytime I mouseover a tab, I&#039;m adding the class &#034;left&#034; to the &lt;a&gt; tag in the tab <em>in front of</em> the one my mouse is on.</p>
<p>So if the tab <em>in front of</em> the one my mouse is on is &#034;off&#034; &#8211; then we need to change that tab to state #2 (Off &#8211; with the tab next to it on). If that tab has the class &#034;current&#034; applied to the li tag &#8211; then we need to move that tab to state #4 &#8211; (On &#8211; with the tab next to it on).</p>
<p>4) So on to the various states with css&#8230;.</p>
<p>When hovering &#8211; we go to the &#034;on&#034; state &#8211; (in this case, when tab is current, it lookes the same as when we mouse over it.) So the most basic state &#8211; state #3: Whether the tab is current, or hovering &#8211; move to that &#034;Third&#034; state: On &#8211; with the tab next door off.<br />
<code>#navbar li.current a,<br />
#navbar a:hover {<br />
background-position: 0 -58px;<br />
}</code></p>
<p>This is for state #2: Off &#8211; with the tab next to us as On. (the &#034;.right&#034; class applied to the li tag means that the tab in front is &#034;current&#034;)<br />
<code>#navbar li.right a,<br />
#navbar li a.left {<br />
background-position: 0 -29px;<br />
}</code></p>
<p>This is for state #4 &#8211; On with the tab next to us as on.<br />
<code>#navbar li.right a:hover,<br />
#navbar li.current a.left {<br />
background-position: 0 -87px;<br />
}</code></p>
<p>One thing to note &#8211; the last tab really only has two states &#8211; because there is no tab in front of it &#8211; but to keep things simple in the code and css &#8211; I just made the image with the extra versions. This way it could have the same styles applied to it &#8211; without having to make a special case for it.</p>
<p>Here are some more demos:</p>
<p><a href="/resources/1528/overlappingtabs1.html">No tab set as current</a></p>
<p><a href="/resources/1528/overlappingtabs2.html">Home tab set as current</a> (no &#034;right&#034; class needs to be applied &#8211; since home is the first tab)</p>
<p><a href="/resources/1528/overlappingtabs3.html">Last tab set as current</a></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2008/09/20/overlapping-tabbed-navigation-using-css-and-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Suckerfish Dropdown navigation going behind content</title>
		<link>http://www.scriptygoddess.com/archives/2008/05/03/suckerfish-dropdown-navigation-going-behind-content/</link>
		<comments>http://www.scriptygoddess.com/archives/2008/05/03/suckerfish-dropdown-navigation-going-behind-content/#comments</comments>
		<pubDate>Sun, 04 May 2008 01:41:22 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/?p=1516</guid>
		<description><![CDATA[Awhile back, I had a project where I created a nice clean (X)HTML page including navigation using UL and LI tags. A few months later the client decided they wanted to add a dropdown menu to the navigation. No problem, I thought. We just add the embedded lists to the navigation &#8211; style it with [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Awhile back, I had a project where I created a nice clean (X)HTML page including navigation using UL and LI tags. A few months later the client decided they wanted to add a dropdown menu to the navigation. No problem, I thought. We just add the embedded lists to the navigation &#8211; style it with CSS &#8211; and use the <a href="http://www.htmldog.com/articles/suckerfish/dropdowns/">Suckerfish dropdown menu</a> technique. Easy Peasy.</p>
<p>Except when I implemented it, the drop down menus were showing up BEHIND the rest of the content instead of &#034;above/over it&#034;. </p>
<p>There was a lot of other things going on in the page, I have <a href="http://www.scriptygoddess.com/resources/1516/shovernavissue.htm">a simple example that demonstrates the issue</a>.</p>
<p>I&#039;m sure it makes sense somehow, if I had a better grasp of what &#034;position: relative&#034; does to the document &#8211; beyond that &#034;position: relative&#034; allows items INSIDE a relatively positioned block to be absolutely positioned WITHIN it (which is why I had done that). The side effect though is that it does that crazy thing with the menu.</p>
<p>Oh the HOURS and HOURS to figure that out&#8230;. /sigh.</p>
<p><a href="http://www.scriptygoddess.com/resources/1516/shovernav.htm">Here is the same page</a> &#8211; with just that one line (position: relative) removed.</p>
<p>I&#039;ve now seen this problem crop up a few times. In one case, I was working with a design that I had not originally created and even though there were no &#034;position: relative&#034; in any of the css files &#8211; the only way to get the menu to be ABOVE the content was to explicitly declare &#034;position: static&#034; inside the div tag itself. (Even just declaring it in the css wouldn&#039;t fix it &#8211; somewhere else it must have still been getting overridden)</p>
<p>While I&#039;m at the point where I can&#039;t even imagine designing a page using a table based layout anymore, I still get hit with some CSS sticking points that I just don&#039;t get. So if you have more insight on this feel free to elaborate in the comments. I&#039;m just so glad I was able to get the menu working! </p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2008/05/03/suckerfish-dropdown-navigation-going-behind-content/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>CSS &quot;TOC&quot; style?</title>
		<link>http://www.scriptygoddess.com/archives/2007/03/08/css-toc-style/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/03/08/css-toc-style/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 03:13:43 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Call for help]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/03/08/css-toc-style/</guid>
		<description><![CDATA[I&#039;m just curious&#8230; is there a fancy way to do something like this in CSS: Introduction &#8230;&#8230;&#8230;&#8230;&#8230; Page 1 Information &#8230;&#8230;&#8230;&#8230;&#8230;. Page 2 More Info &#8230;&#8230;&#8230;&#8230;&#8230;&#8230; Page 3 &#8230; where the &#034;Page&#034; text lines up and the &#034;&#8230;..&#034; just fills in until it reaches the &#034;Page&#034; text&#8230; kind of like you&#039;d see in a table [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I&#039;m just curious&#8230; is there a fancy way to do something like this in CSS:</p>
<p>Introduction &#8230;&#8230;&#8230;&#8230;&#8230; Page 1<br />
Information &#8230;&#8230;&#8230;&#8230;&#8230;. Page 2<br />
More Info &#8230;&#8230;&#8230;&#8230;&#8230;&#8230; Page 3</p>
<p>&#8230; where the &#034;Page&#034; text lines up and the &#034;&#8230;..&#034; just fills in until it reaches the &#034;Page&#034; text&#8230; kind of like you&#039;d see in a table of contents in a book? (Ideally the &#034;&#8230;.&#034; wouldn&#039;t even be text in the markup. It would just be a background fill or something&#8230;) Is that even possible?</p>
<p><strong>Update:</strong> Jenna got me on the right track&#8230;. (Thank you!) <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Make each line part of a list item. Apply the background image to &lt;li&gt; style. Wrap each part with another tag. Float one right, the other left, and give them both a solid color background the same as the rest of the page (so that it covers the dot, so it won&#039;t show through under the text). I also wanted the right column to line up, so I gave it a width, and told the text to align-left. <a href="http://www.scriptygoddess.com/resources/1460/test.htm">Here&#039;s the example.</a> </p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/03/08/css-toc-style/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Firefox underlining images</title>
		<link>http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/#comments</comments>
		<pubDate>Wed, 21 Feb 2007 18:49:19 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Call for help]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/02/21/firefox-behavior/</guid>
		<description><![CDATA[Someone help me out before I go crazy. Why is firefox underlining the image in this example? Here is a screenshot (in case you&#039;re not using firefox) &#8211; the above link looks like this in firefox: The code on that page is simply: &#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62; &#60;html xmlns="http://www.w3.org/1999/xhtml"&#62; &#60;head&#62; &#60;meta [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Someone help me out before I go crazy.<br />
Why is firefox underlining the image in <a href="http://www.scriptygoddess.com/resources/1458/imageunderline.htm">this example</a>?<br />
Here is a screenshot (in case you&#039;re not using firefox) &#8211; the above link looks like this in firefox:<br />
<img src="http://www.scriptygoddess.com/resources/1458/imageunderline.jpg" alt="weird underline in firefox" /></p>
<p>The code on that page is simply:<br />
<code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br />
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;<br />
&lt;title&gt;Untitled Document&lt;/title&gt;<br />
&lt;style type="text/css"&gt;<br />
&lt;!--<br />
a img {<br />
	text-decoration: none;<br />
	border: none;<br />
}<br />
--&gt;<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;a href="#"&gt;&lt;img src="gecko.gif" alt="gecko" /&gt; Test&lt;/a&gt;&lt;br /&gt;<br />
&lt;a href="#"&gt;&lt;img src="gecko.gif" alt="gecko" /&gt;&lt;/a&gt; &lt;a href="#"&gt;Test&lt;/a&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></p>
<p>I thought it might be a doctype issue &#8211; but changing it doesn&#039;t seem to make a difference.</p>
<p><strong>Added after:</strong> Just to make this even more mysterious&#8230; This DOES NOT create that line:<br />
<code>&lt;a href="#"&gt;&lt;img src="gecko.gif" alt="gecko" /&gt; &lt;/a&gt;</code><br />
It doesn&#039;t show up until we add a *character*  within the &lt;a&gt; tag that the underline pops up&#8230;(I&#039;ve updated the example to show this&#8230;)</p>
<p><strong>Updated 3/30/07</strong> <a href="http://wolfmotor.com/">Shaun</a> wins the prize for finding the solution!:<code>a img {<br />
display:block;<br />
border: none;<br />
float: left;<br />
}</code></p>
<p>The example has been updated&#8230;</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Extra space (padding) with List Items in IE</title>
		<link>http://www.scriptygoddess.com/archives/2007/02/16/extra-space-padding-with-list-items-in-ie/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/02/16/extra-space-padding-with-list-items-in-ie/#comments</comments>
		<pubDate>Fri, 16 Feb 2007 17:03:40 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/02/16/extra-space-padding-with-list-items-in-ie/</guid>
		<description><![CDATA[For the past couple of days, I&#039;ve been trying to figure out why a design I had been working on was showing extra padding (veritcally) in IE. I think I&#039;d seen every solution such as: write the code like this: &#60;li&#62;Item one&#60;/li&#62;&#60;li&#62; Item two&#60;/li&#62; or make set them to float: left &#124; right (which messed [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>For the past couple of days, I&#039;ve been trying to figure out why a design I had been working on was showing extra padding (veritcally) in IE. I think I&#039;d seen every solution such as: write the code like this:</p>
<p><code>&lt;li&gt;Item one&lt;/li&gt;&lt;li&gt;<br />
Item two&lt;/li&gt;</code></p>
<p>or make set them to <code>float: left | right</code> (which messed up the way the list was showing up&#8230;</p>
<p>The only thing that worked for me &#8211; was setting the line-height to the be the same size as the font-size used for the list. ie:</p>
<p><code>li {<br />
font-size: 12px;<br />
line-height: 12px;<br />
}</code></p>
<p>And then you can add your own specific padding or margins as needed&#8230; Hope that saves someone the headache I just went through!!</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/02/16/extra-space-padding-with-list-items-in-ie/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>floated box with extra (unintented) margin</title>
		<link>http://www.scriptygoddess.com/archives/2007/01/22/floated-box-with-extra-unintented-margin/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/01/22/floated-box-with-extra-unintented-margin/#comments</comments>
		<pubDate>Mon, 22 Jan 2007 18:02:09 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/01/22/floated-box-with-extra-unintented-margin/</guid>
		<description><![CDATA[Boy, do I love that &#034;Position is everything&#034; site. Every problem I&#039;ve been having these days with CSS, the fix can be found there. Here&#039;s today&#039;s CSS dilema. Had a simple floated div. Gave it a margin &#8211; and for some reason, IE doubled it. The solution is just to add &#034;display: inline;&#034; to the [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Boy, do I love that &#034;Position is everything&#034; site. Every problem I&#039;ve been having these days with CSS, the fix can be found there.</p>
<p>Here&#039;s today&#039;s CSS dilema. Had a simple floated div. Gave it a margin &#8211; and for some reason, IE doubled it. <a href="http://www.positioniseverything.net/explorer/doubled-margin.html">The solution</a> is just to add &#034;display: inline;&#034; to the floated div, and all is well.</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/01/22/floated-box-with-extra-unintented-margin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Floated boxes extending outside of container box</title>
		<link>http://www.scriptygoddess.com/archives/2007/01/20/floated-boxes-extending-outside-of-container-box/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/01/20/floated-boxes-extending-outside-of-container-box/#comments</comments>
		<pubDate>Sun, 21 Jan 2007 02:28:40 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/01/20/floated-boxes-extending-outside-of-container-box/</guid>
		<description><![CDATA[Ran into this problem today: Had a container div with floated divs inside. However the container div was shrinking up above the bottom of the floated divs inside. See example here. Found this solution which basically suggested adding the following so that it wouldn&#039;t do that: .containerdiv:after { content: "."; display: block; height: 0; clear: [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Ran into this problem today: Had a container div with floated divs inside. However the container div was shrinking up above the bottom of the floated divs inside.</p>
<p><a href="http://www.scriptygoddess.com/resources/1444-before.htm">See example here.</a></p>
<p>Found <a href="http://www.positioniseverything.net/easyclearing.html">this solution</a> which basically suggested adding the following so that it wouldn&#039;t do that:</p>
<p><code>.containerdiv:after {<br />
    content: ".";<br />
    display: block;<br />
    height: 0;<br />
    clear: both;<br />
    visibility: hidden;<br />
}</code></p>
<p>As well as adding a <em>height: 1%</em> (to to the container div)</p>
<p><a href="http://www.scriptygoddess.com/resources/1444-after.htm">See fixed example here.</a></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/01/20/floated-boxes-extending-outside-of-container-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vertical Center Text in DIV</title>
		<link>http://www.scriptygoddess.com/archives/2007/01/09/vertical-center-text-in-div/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/01/09/vertical-center-text-in-div/#comments</comments>
		<pubDate>Tue, 09 Jan 2007 18:55:59 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/01/09/vertical-center-text-in-div/</guid>
		<description><![CDATA[Like I said, I&#039;m still fighting my way through understanding CSS. Here&#039;s a little tid-bit I finally understand today. Had a bit of text that I wanted to have centered in a nav bar. &#034;vertical-align: middle;&#034; didn&#039;t seem to do anything. Found this article which said this: the thing with vertical-align is that it&#039;s vertical [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Like I said, I&#039;m still fighting my way through understanding CSS. Here&#039;s a little tid-bit I finally understand today. Had a bit of text that I wanted to have centered in a nav bar. &#034;vertical-align: middle;&#034; didn&#039;t seem to do anything. Found <a href="http://www.webmasterworld.com/forum83/5595.htm">this article</a> which said this:</p>
<blockquote><p>the thing with vertical-align is that it&#039;s vertical aligning text according to the default line-height of the inline-text boxes. You can manipulate that by setting the line-height to the same height as your block, but this will only be effective if the line of text (link) does not wrap onto more than one line.</p></blockquote>
<p>NOW it makes sense&#8230;</p>
<p>So if you had:</p>
<p><code>&lt;div id="nav"&gt;&lt;a href="#" class="centerme"&gt;Home&lt;/a&gt;&lt;/div&gt;</code></p>
<p>Then:</p>
<p><code>#nav {<br />
height: 25px;<br />
line-height: 25px;<br />
}<br />
.centerme {<br />
vertical-align: middle;<br />
}</code></p>
<p>should do the trick&#8230;</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/01/09/vertical-center-text-in-div/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

