homepage Welcome to WebmasterWorld Guest from 23.22.2.150
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Netscape 4 - style a border on a link and...
...the link becomes dead!
tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 266 posted 1:29 am on Aug 3, 2002 (gmt 0)

I have a new client who still needs to support Netscape 4. I'm working on their first page, which I hope will use css to eliminate some wasteful mouseover graphics, and I just stumbled on the strangest thing.

For anyone still struggling with that relic of a browser, you probably realize that if want the background color to fill out an entire block, rather than being confined to the letters, you need to declare a border. OK, no problem so far.

But, if I style a border for the <a> tag, the link goes dead. On hover, the cursor turns to an I-bar instead of staying an arrow (to say nothing of the pointing finger I hoped for) -- and the link doesn't work at all.

I found a kludge, which involves putting every link inside its own paragraph, and then styling the <p> tag. It's a bit nasty, but at least I have some navigation back.

Has anyone else wrestled with this and found a better fix?

 

papabaer

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 266 posted 2:34 am on Aug 3, 2002 (gmt 0)

Tedster, I'm don't know if this will work, but have you tried adding {display:block;} to the anchor style group? It may help define the backgound area NN4 is struggling to display.

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 266 posted 3:18 am on Aug 3, 2002 (gmt 0)

Yes, in fact that was the way I started -- because the stylesheet for the better behaved engines needs it.

I had to do a lot of detective work to figure out where the problem lies. So it's funny right now. There are classes in the HTML that are only defined on the NN4 stylesheet and there are classes in the HTML that are only defined on the main stylesheet.

I've also discovered that NN4 is rather funky in how it obeys the cascade. So I ended up not using the cascade, but using document.write after a browser sniffer.

It should just go away, you know?

papabaer

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 266 posted 3:57 am on Aug 3, 2002 (gmt 0)

It will... lol!

Tedster, just think of all the time you will free up when you no longer have to hunt for NN4 work-arounds!

msr986

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 266 posted 7:07 am on Aug 3, 2002 (gmt 0)

I've just given up trying to accommodate NN4 with a single page approach.

In my experience, even if you get NN4 to render sort of OK with code that will run on a real browser, NN4 gets real touchy and crashes now and then.

Now I use a location.replace if(document.layers).

Then I can build a page that NN4 likes.

Hopefully when NN7 is released, many of the NN4 users will see the light and upgrade!

starway

10+ Year Member



 
Msg#: 266 posted 1:43 pm on Aug 5, 2002 (gmt 0)

tedster,
I'm pretty sure that you found the only possible solution. I encountered such a problem myself once and ended up with the same thing as you did.

By the way, did you manage to eliminate additional white 3-5px border inside the block where you added border style and background color? I didn't fing any way to fix it in NN4.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved