I'm having trouble styling the anchors with in this list. I've tried several variations of the css below to remove the text decoration dot infront of the anchors in the UL. I must not be referencing the elements correctly in the style sheet. Does anyone
see what I'm missing?
div.right_column ul.blog_links li a { text-decoration: none; }
That should work. I've tested a sample web page and it works fine in firefox and chrome. May be another style is overriding it? Please debug with the browser developer tools and see what are the styles applied for the links (press F12 on keyboard to invoke
those in IE and Chrome. Install firebug extention for firefox). In that case, you can use !important like below.
div.right_column ul.blog_links li a
{
text-decoration: none !important;
}
So now this style will take priority over others and apply for the links.
To achieve that you need to add list-style:none; style!
Check the below code!
<style type="text/css">
div.right_column ul li
{
text-decoration: none;
list-style:none;
}
div.right_column ul.blog_links li a
{
text-decoration: none;
}
</style>
Thanks for the responses. Link Text is a generic replacement for the actual link text. There will be text with in the anchor so the user can see the link.
I hope to get a chance to try your proposed solutions tomorrow night. Thanks again.
Gaining competency by discovering my incompetencies.
newbie2C#
Member
694 Points
1179 Posts
Can'r remove text decoration for anchors
Feb 18, 2012 11:08 AM|LINK
I'm having trouble styling the anchors with in this list. I've tried several variations of the css below to remove the text decoration dot infront of the anchors in the UL. I must not be referencing the elements correctly in the style sheet. Does anyone see what I'm missing?
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <div class="left_column">....</div> <div class="right_column"> <h2>header</h2> <ul class="blog_links"> <li><a href="http://link/" target="_blank">link text</a></li> <li><a href="http://link/" target="_blank">link text</a></li> <li><a href="http://link/" target="_blank">link text</a></li> </ul> </div> </asp:Content>div.right_column ul li { text-decoration: none; div.right_column ul.blog_links li a { text-decoration: none; }Ruchira
All-Star
42975 Points
7025 Posts
MVP
Re: Can'r remove text decoration for anchors
Feb 18, 2012 11:23 AM|LINK
That should work. I've tested a sample web page and it works fine in firefox and chrome. May be another style is overriding it? Please debug with the browser developer tools and see what are the styles applied for the links (press F12 on keyboard to invoke those in IE and Chrome. Install firebug extention for firefox). In that case, you can use !important like below.
div.right_column ul.blog_links li a { text-decoration: none !important; }So now this style will take priority over others and apply for the links.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.srinanthuram
Contributor
6800 Points
1549 Posts
Re: Can'r remove text decoration for anchors
Feb 18, 2012 12:43 PM|LINK
hi
remove link text
change itortry itthank u
Ruchira
All-Star
42975 Points
7025 Posts
MVP
Re: Can'r remove text decoration for anchors
Feb 18, 2012 12:48 PM|LINK
Hi,
If he remove the text inside the link he will not be able to even view the link.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.MetalAsp.Net
All-Star
112158 Points
18249 Posts
Moderator
Re: Can'r remove text decoration for anchors
Feb 18, 2012 12:51 PM|LINK
Besides copying Ruchira's answer (which you seem to be quite good at), what does link text have to do with this?
roopeshreddy
All-Star
20155 Points
3328 Posts
Re: Can'r remove text decoration for anchors
Feb 18, 2012 01:05 PM|LINK
Hi,
To achieve that you need to add list-style:none; style!
Check the below code!
<style type="text/css"> div.right_column ul li { text-decoration: none; list-style:none; } div.right_column ul.blog_links li a { text-decoration: none; } </style>Hope it helps u...
Roopesh Reddy C
Roopesh's Space
newbie2C#
Member
694 Points
1179 Posts
Re: Can'r remove text decoration for anchors
Feb 21, 2012 12:47 AM|LINK
Thanks for the responses. Link Text is a generic replacement for the actual link text. There will be text with in the anchor so the user can see the link.
I hope to get a chance to try your proposed solutions tomorrow night. Thanks again.
Smith Peter
Member
142 Points
52 Posts
Re: Can'r remove text decoration for anchors
Feb 22, 2012 05:02 AM|LINK
Try this:
div.right_column ul li { text-decoration: none !important; div.right_column ul.blog_links li a { text-decoration: none !important; }