is there a trick to getting multiple classes to have different hyperlink activities on the same page? i have searched all over the internet and i can't for the life of me figure out why this won't work:
code from my master page:
<div class="right">
<asp:XmlDataSource ID="rssData" runat="server" DataFile="MyRSSfeed"
XPath="rss/channel/item [position()<=6]"></asp:XmlDataSource>
<asp:ListView ID="ListView1" runat="server" DataSourceID="rssData">
<LayoutTemplate>
<h1>
My RSS</h1>
<asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
</LayoutTemplate>
<ItemTemplate>
<h4>
<a href='<%# XPath("link") %>'>
<%#XPath("title")%></a></h4>
</ItemTemplate>
<ItemSeparatorTemplate>
<div style="height: 0px; border-top: dashed 1px #ff0000">
</div>
</ItemSeparatorTemplate>
</asp:ListView>
<div class="footer">
»</div>
</div>
code from my CSS file:
.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; }
a.right:link { color: #ffffff; text-decoration: none; }
.right:hover { text-decoration: underline; color: #ffffff; }
and... absolutely nothing happens on the hyperlinks. the colors don't look right, they don't get underlines when they hover, nada. worse yet, if i get rid of the ".right" portion of the "a" pieces in the CSS, the entire page's hyperlinks will follow whatever behavior i define. however, because the page is different colors in different spots, i need to have them act differently, or at least be different colors. i really must be losing my mind.