Bookmark display

C

Craig Schiller

Hi, all -

I have a page of FAQs on my website, where the topics at the top of the
page are links to bookmarks of discussions of those items lower in the
page. In other words. links at top, discussion below.

The links at top are configured to change color and change to small caps
when hovered over.

In IE, everything works as it should. In Netscape 7, however, the target
bookmarks also change color and change to small caps when hovered over,
which, since they are not links, they shouldn't do, and of course is
confusing.

How do I prevent this behavior in Netscape?

URL is www.theschillergroup.com/faqs.htm

TIA for any suggestions.

Craig
 
R

Ronx

I am guessing here that you have a style set up similar to
<style>
a:hover {text-transform:capitalize;}
</style>

The above might affect all anchors, whether they are links or bookmarks.

One solution is to place the links in a <div> and change the style sheet to
refer to the div.
<style>
#faq a:hover {text-transform:capitalize;}
</style>


<div id=faq>
links to bookmarks
</div>
 
C

Craig Schiller

Ronx -

Thanks for your reply.

Actually, the code in the page is:

<style fprolloverstyle>A:hover {color: #FF0000; font-variant: small-caps;
font-weight: bold}
</style>

The question is why is Netscape parsing this incorrectly (applying the effect
to a bookmark) while IE parses it correctly (does not apply the effect to a
bookmark). Or, really, more importantly. how to defeat this behavior in
Netscape.

TIA,
Craig
 
R

Ronx

The A:hover pseudo element is not officially defined, so is open to
interpretation by different browsers (see
http://www.w3.org/TR/CSS1#anchor-pseudo-classes)

My solution, wrapping the links in a <div> and amending the style sheet as
described below, should resolve the problem on *this page, on other pages a
<span> might be more appropriate.

I generally bookmark borderless images or use empty bookmarks, example: <a
name="ex"></a> which are not recommended since they allegedly fail in some
browsers (I have yet to find a browser they fail in - though I have not
tested any Apple-Macs.) These bookmarks do not display any hover
characteristics at all.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top