<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: strange css quirk with one of my pages</title>
	<atom:link href="http://understandingnewmedia.com/webpro/2009/12/14/strange-css-quirk-with-one-of-my-pages/feed/" rel="self" type="application/rss+xml" />
	<link>http://understandingnewmedia.com/webpro/2009/12/14/strange-css-quirk-with-one-of-my-pages/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 19 Mar 2010 05:19:05 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: roque</title>
		<link>http://understandingnewmedia.com/webpro/2009/12/14/strange-css-quirk-with-one-of-my-pages/comment-page-1/#comment-7340</link>
		<dc:creator>roque</dc:creator>
		<pubDate>Wed, 23 Dec 2009 06:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://understandingnewmedia.com/webpro/2009/12/14/strange-css-quirk-with-one-of-my-pages/#comment-7340</guid>
		<description>hi prof, I fix my Exercise 1
Exercise 2, Exercise 3,and Exercise 4, Midterm. excuse for not let you know this before ...</description>
		<content:encoded><![CDATA[<p>hi prof, I fix my Exercise 1<br />
Exercise 2, Exercise 3,and Exercise 4, Midterm. excuse for not let you know this before &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://understandingnewmedia.com/webpro/2009/12/14/strange-css-quirk-with-one-of-my-pages/comment-page-1/#comment-7339</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 16 Dec 2009 14:56:08 +0000</pubDate>
		<guid isPermaLink="false">http://understandingnewmedia.com/webpro/2009/12/14/strange-css-quirk-with-one-of-my-pages/#comment-7339</guid>
		<description>Haha, thanks Adnan, I thought there had to be a simpler way to do it too, but couldn&#039;t think of it either.

I figured out the problem... on my html, the css links points to the home page&#039;s css, not the one for Work 1 page...</description>
		<content:encoded><![CDATA[<p>Haha, thanks Adnan, I thought there had to be a simpler way to do it too, but couldn&#8217;t think of it either.</p>
<p>I figured out the problem&#8230; on my html, the css links points to the home page&#8217;s css, not the one for Work 1 page&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe</title>
		<link>http://understandingnewmedia.com/webpro/2009/12/14/strange-css-quirk-with-one-of-my-pages/comment-page-1/#comment-7336</link>
		<dc:creator>joe</dc:creator>
		<pubDate>Tue, 15 Dec 2009 06:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://understandingnewmedia.com/webpro/2009/12/14/strange-css-quirk-with-one-of-my-pages/#comment-7336</guid>
		<description>Looks like you just need to alter your CSS on that particular page:

&lt;code&gt;
#home a{
background-position: 0 0;
}

#work1 a{
background-position: 0 -550px
}
&lt;/code&gt;

Set the background-position correctly. Otherwise everything seems fine.</description>
		<content:encoded><![CDATA[<p>Looks like you just need to alter your CSS on that particular page:</p>
<p><pre><code>
#home a{
background-position: 0 0;
}

#work1 a{
background-position: 0 -550px
}
</code></pre></p>
<p>Set the background-position correctly. Otherwise everything seems fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adnan</title>
		<link>http://understandingnewmedia.com/webpro/2009/12/14/strange-css-quirk-with-one-of-my-pages/comment-page-1/#comment-7335</link>
		<dc:creator>adnan</dc:creator>
		<pubDate>Tue, 15 Dec 2009 02:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://understandingnewmedia.com/webpro/2009/12/14/strange-css-quirk-with-one-of-my-pages/#comment-7335</guid>
		<description>Over look that code. I just realize image Sprite will not work that way.

I tried, no! :)</description>
		<content:encoded><![CDATA[<p>Over look that code. I just realize image Sprite will not work that way.</p>
<p>I tried, no! <img src='http://understandingnewmedia.com/webpro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adnan</title>
		<link>http://understandingnewmedia.com/webpro/2009/12/14/strange-css-quirk-with-one-of-my-pages/comment-page-1/#comment-7334</link>
		<dc:creator>adnan</dc:creator>
		<pubDate>Tue, 15 Dec 2009 01:41:16 +0000</pubDate>
		<guid isPermaLink="false">http://understandingnewmedia.com/webpro/2009/12/14/strange-css-quirk-with-one-of-my-pages/#comment-7334</guid>
		<description>Interesting problem. I was trying to solve it. Then gave up.
I think you can simplify your css. The way you are coding now if you have 20 menu item then you are creating 20 different ID for them! Instead of doing that you can write generic code. 

Example:
CSS
&lt;code&gt;

.basictab{
	margin: 0;
	padding: 0;
	list-style-type: none;
	text-align: center;
}
.basictab li{
	display: inline;
	margin: 0;
}
.basictab li a{
	text-decoration: none;
	margin:1px;
	padding: 5px 20px;
}
.basictab li a:visited, a:active	{
	color: black;
}
.basictab li a:hover{
	color: #F00;
}
.basictab li.selected a	{
	padding-top: 7px;
	color:#F00;
}
&lt;/code&gt;

HTML
&lt;code&gt;
&lt;div&gt;
	&lt;ul class=&quot;basictab&quot;&gt;
            &lt;li class=&quot;selected&quot;&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Profile&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Work 1&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Work 2&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;so on&lt;/a&gt;&lt;/li&gt;

	&lt;/ul&gt;
&lt;/div&gt;    

&lt;/code&gt;

So with the &quot;selected&quot; class whatever you are doing will be active.</description>
		<content:encoded><![CDATA[<p>Interesting problem. I was trying to solve it. Then gave up.<br />
I think you can simplify your css. The way you are coding now if you have 20 menu item then you are creating 20 different ID for them! Instead of doing that you can write generic code. </p>
<p>Example:<br />
CSS<br />
<pre><code>

.basictab{
&nbsp;&nbsp;margin: 0;
&nbsp;&nbsp;padding: 0;
&nbsp;&nbsp;list-style-type: none;
&nbsp;&nbsp;text-align: center;
}
.basictab li{
&nbsp;&nbsp;display: inline;
&nbsp;&nbsp;margin: 0;
}
.basictab li a{
&nbsp;&nbsp;text-decoration: none;
&nbsp;&nbsp;margin:1px;
&nbsp;&nbsp;padding: 5px 20px;
}
.basictab li a:visited, a:active&nbsp;&nbsp;{
&nbsp;&nbsp;color: black;
}
.basictab li a:hover{
&nbsp;&nbsp;color: #F00;
}
.basictab li.selected a&nbsp;&nbsp;{
&nbsp;&nbsp;padding-top: 7px;
&nbsp;&nbsp;color:#F00;
}
</code></pre></p>
<p>HTML<br />
<pre><code>
&lt;div&gt;
&nbsp;&nbsp;&lt;ul class=&quot;basictab&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&quot;selected&quot;&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Profile&lt;/a&gt;&lt;/li&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Work 1&lt;/a&gt;&lt;/li&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Work 2&lt;/a&gt;&lt;/li&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;so on&lt;/a&gt;&lt;/li&gt;

&nbsp;&nbsp;&lt;/ul&gt;
&lt;/div&gt;&nbsp;&nbsp;&nbsp;&nbsp;

</code></pre></p>
<p>So with the &#8220;selected&#8221; class whatever you are doing will be active.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
