<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Client Side Web Development</title><link>http://forums.asp.net/130.aspx</link><description>Client-side programming discussions, including CSS, DHTML, JScript/Javascript, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=18&amp;c=16" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: CSS and different classes, pseudos hyperlinks not working</title><link>http://forums.asp.net/thread/3274685.aspx</link><pubDate>Sat, 04 Jul 2009 13:14:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274685</guid><dc:creator>gotmike</dc:creator><author>gotmike</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274685.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=3274685</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Jackpot!&amp;nbsp; That works perfectly.&amp;nbsp; Thanks a ton!&lt;/p&gt;</description></item><item><title>Re: CSS and different classes, pseudos hyperlinks not working</title><link>http://forums.asp.net/thread/3274335.aspx</link><pubDate>Sat, 04 Jul 2009 06:37:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274335</guid><dc:creator>deepthoughts</dc:creator><author>deepthoughts</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274335.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=3274335</wfw:commentRss><description>&lt;p&gt;Your ASP.NET portion is right. Please replace the CSS portion with this one&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt;        .navbar {margin: 0; padding: 1px; background-color: #1E407B; border-top: solid 1px #ccccff; text-align: left; color: #ffffff; font-size: 78%;}   
        .navbar a:visited { text-decoration: none; color: #FFFFFF; }   
        .navbar a:link { text-decoration: none; color: #FFFFFF; }   
        .navbar a:hover { text-decoration: underline; color: #FFFFFF; }   
        .navbar a:active { text-decoration: underline; color: #FFFFFF; }  &lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that &lt;span&gt;a.navbar:visited is replaced by .navbar a:visited.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This will solve your problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hope it helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: CSS and different classes, pseudos hyperlinks not working</title><link>http://forums.asp.net/thread/3274334.aspx</link><pubDate>Sat, 04 Jul 2009 06:35:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274334</guid><dc:creator>deepthoughts</dc:creator><author>deepthoughts</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274334.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=3274334</wfw:commentRss><description>&lt;p&gt;Oh sorry, I couldn&amp;#39;t have indepth look. Yes the second and third are for h3 and h4 level headings having &amp;quot;.right&amp;quot; class as their own class attribute or of their parent.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: CSS and different classes, pseudos hyperlinks not working</title><link>http://forums.asp.net/thread/3274266.aspx</link><pubDate>Sat, 04 Jul 2009 05:05:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274266</guid><dc:creator>gotmike</dc:creator><author>gotmike</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274266.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=3274266</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;and... here&amp;#39;s a similar problem from the same project.&amp;nbsp; here&amp;#39;s the CSS...&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt;.navbar {margin: 0; padding: 1px; background-color: #1E407B; border-top: solid 1px #ccccff; text-align: left; color: #ffffff; font-size: 78%;}
a.navbar:visited { text-decoration: none; color: #FFFFFF; }
a.navbar:link { text-decoration: none; color: #FFFFFF; }
a.navbar:hover { text-decoration: underline; color: #FFFFFF; }
a.navbar:active { text-decoration: underline; color: #FFFFFF; }&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;and the relevant asp.net portion:&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt;    &amp;lt;link href=&amp;quot;~/styles/StyleSheet3.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
...
        &amp;lt;tr&amp;gt;
            &amp;lt;td colspan=&amp;quot;2&amp;quot; class=&amp;quot;navbar&amp;quot;&amp;gt;
                &amp;lt;a href=&amp;quot;~/Default.aspx&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;Home&amp;lt;/a&amp;gt; | &amp;lt;a href=&amp;quot;~/Listings/Listing1.aspx&amp;quot;
                    runat=&amp;quot;server&amp;quot;&amp;gt;Properties for Sale&amp;lt;/a&amp;gt; | Client Services | About Us | Events
                | Contact Us
            &amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;&lt;/pre&gt;
&lt;p&gt;the non-links are showing up as white in the foreground but the links are still purple.&amp;nbsp; what gives?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: CSS and different classes, pseudos hyperlinks not working</title><link>http://forums.asp.net/thread/3274238.aspx</link><pubDate>Sat, 04 Jul 2009 04:41:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274238</guid><dc:creator>gotmike</dc:creator><author>gotmike</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274238.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=3274238</wfw:commentRss><description>&lt;p&gt;aren&amp;#39;t the&amp;nbsp;&amp;quot;.right&amp;quot; and &amp;quot;.right h3&amp;quot; and &amp;quot;.right h4&amp;quot; all considered different?&amp;nbsp; if not, how do you specify different styles for&amp;nbsp;heading tags inside separate classes?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: CSS and different classes, pseudos hyperlinks not working</title><link>http://forums.asp.net/thread/3274157.aspx</link><pubDate>Sat, 04 Jul 2009 02:30:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274157</guid><dc:creator>deepthoughts</dc:creator><author>deepthoughts</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274157.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=3274157</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Please note that you are having 3 classes with the same name &amp;quot;right&amp;quot;. Now what the browser will do is to combine the styles of all the 3 classes and override the common styles defined in upper classes with the one at lower classes. &lt;/p&gt;
&lt;p&gt;Like if you have set margin:5px; in the first .right class and margin:0 in the 3rd class. So, the browser will consider your .right class having margin:0 and not margin:5px.&lt;/p&gt;
&lt;p&gt;For giving the hover style to anchor please write&lt;/p&gt;
&lt;p&gt;a.right:hover and not .right:hover&lt;/p&gt;
&lt;p&gt;Hope it helps&lt;/p&gt;</description></item><item><title>CSS and different classes, pseudos hyperlinks not working</title><link>http://forums.asp.net/thread/3273897.aspx</link><pubDate>Fri, 03 Jul 2009 18:14:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273897</guid><dc:creator>gotmike</dc:creator><author>gotmike</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273897.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=3273897</wfw:commentRss><description>&lt;p&gt;is there a trick to getting multiple classes to have different hyperlink activities on the same page?&amp;nbsp; i have searched all over the internet and i can&amp;#39;t for the life of me figure out why this won&amp;#39;t work:&lt;/p&gt;
&lt;p&gt;code from my master page:&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt;                &amp;lt;div class=&amp;quot;right&amp;quot;&amp;gt;
                    &amp;lt;asp:XmlDataSource ID=&amp;quot;rssData&amp;quot; runat=&amp;quot;server&amp;quot; DataFile=&amp;quot;MyRSSfeed&amp;quot;
                        XPath=&amp;quot;rss/channel/item [position()&amp;lt;=6]&amp;quot;&amp;gt;&amp;lt;/asp:XmlDataSource&amp;gt;
                    &amp;lt;asp:ListView ID=&amp;quot;ListView1&amp;quot; runat=&amp;quot;server&amp;quot; DataSourceID=&amp;quot;rssData&amp;quot;&amp;gt;
                        &amp;lt;LayoutTemplate&amp;gt;
                            &amp;lt;h1&amp;gt;
                                My RSS&amp;lt;/h1&amp;gt;
                            &amp;lt;asp:PlaceHolder ID=&amp;quot;itemPlaceholder&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/asp:PlaceHolder&amp;gt;
                        &amp;lt;/LayoutTemplate&amp;gt;
                        &amp;lt;ItemTemplate&amp;gt;
                            &amp;lt;h4&amp;gt;
                                &amp;lt;a href=&amp;#39;&amp;lt;%# XPath(&amp;quot;link&amp;quot;) %&amp;gt;&amp;#39;&amp;gt;
                                    &amp;lt;%#XPath(&amp;quot;title&amp;quot;)%&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/h4&amp;gt;
                         &amp;lt;/ItemTemplate&amp;gt;
                        &amp;lt;ItemSeparatorTemplate&amp;gt;
                            &amp;lt;div style=&amp;quot;height: 0px; border-top: dashed 1px #ff0000&amp;quot;&amp;gt;
                            &amp;lt;/div&amp;gt;
                        &amp;lt;/ItemSeparatorTemplate&amp;gt;
                    &amp;lt;/asp:ListView&amp;gt;
                    &amp;lt;div class=&amp;quot;footer&amp;quot;&amp;gt;
                        »&amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;code from my CSS file:&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt;.right {margin: 5px; padding: 0; border: solid 2px #1E407B; background-color: #ccccff; font-size: 78%;}
.right h3 {margin: 0; padding: 4px; background-color: #1E407B; color: #ffffff; font: bold 100% sans-serif;}
.right h4 {margin: 0; padding: 4px; background-color: #ccccff; color: #ffffff; font: bold 100% sans-serif;}
a.right { color: #ffffff; text-decoration: none; }&lt;br /&gt;a.right:link { color: #ffffff; text-decoration: none; }&lt;br /&gt;.right:hover { text-decoration: underline; color: #ffffff; }&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;and... absolutely nothing happens on the&amp;nbsp;hyperlinks.&amp;nbsp; the colors don&amp;#39;t look right, they don&amp;#39;t get underlines when they hover, nada.&amp;nbsp; worse yet, if i get rid of the &amp;quot;.right&amp;quot; portion of the &amp;quot;a&amp;quot; pieces in the CSS, the entire page&amp;#39;s hyperlinks will follow whatever behavior i define.&amp;nbsp; however, because the page is different colors in different spots, i need to have them act differently, or at least be different colors.&amp;nbsp; i really must be losing my mind.&lt;/p&gt;</description></item></channel></rss>