Welcome to WebmasterWorld Guest from 188.8.131.52
Forum Moderators: not2easy
I'd say a good 75% of my pages have anchor tags(?) on them (FrontPage calls them bookmarks). The template I'm using underlines them like links, even though they aren't. How can I use CSS to remove the underline without removing the underlines from the real links on the pages?
Ex. of the code I'm talking about:
If I set the text decoration for all a elements to none, that removes the underline for all links, including my <a name="">, correct? I don't want that to happen.
I also did a search and saw a post from a couple of years ago that said the <a name> tag is out-of-date.
Is there a way to deal with this in CSS or do I need to deal with it item by item in the HTML coding?
Then in the HTML use ID where you would have used "name" and add the class "name" to each anchor.
<a class="name" id="rear-facing">rear-facing</a>
[edited by: Old_Honky at 8:19 am (utc) on Oct. 22, 2007]
Both "bookmarks" and links are anchors: <a...> which is why it's styling it as a default hyperlink.
Another way around this is to not put the anchor directly on the text. Then you don't have to worry about styling. You can style the element with something semantic, such as a list item or heading.
<a name="rear-facing" id="rear-facing"></a>