Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!


Sponsored Content

 

 
 

Photo
- - - - -

Css Links And Netscape


  • Please log in to reply
6 replies to this topic

#1 idrive

idrive

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 333 posts
  • Location:Ottawa, ON Canada

Posted 27 September 2003 - 03:18 PM

Can anyone tell me why Netscape is ignoring my stylesheet? I am creating different classes of links - for example:
<a href="yellowpage.html" class="banana">Yellow Page</a>
And in the external stylesheet I would define
.banana {color : yellow;}
. I have also tried a.banana to see if tha makes a difference.

Netscape is ignoring my styles altogether - and that is Netscape 6 and 7!

For living proof, www.drivetraffic.ca/NEW for the code (I'm looking at the navigation bar at the top). If you look at the same page in IE it is very different.

Thanks! If I am coding improperly I'd like to know ;-)

#2 Scottie

Scottie

    Psycho Mom

  • Admin
  • 6,293 posts
  • Location:Columbia, SC

Posted 27 September 2003 - 03:59 PM

Try removing the space between color and : .

For a link, you'll want to use:

.banana a:link { color:yellow; }

although I would recommend using:

.banana a:link { color:#ffff00; }

I prefer the hex designation for colors, just to be safe.

#3 idrive

idrive

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 333 posts
  • Location:Ottawa, ON Canada

Posted 27 September 2003 - 04:29 PM

Update upon testing (before looking at Scotties reply ;-)):

The problem appears to be with the fact that it is an external style sheet. If I copy the styles from the external stylesheet and put them on the html page, they work!!!

I have tested this on a separate document and had no problem. There is something extremely obvious going on here....but it's not obvious enough *grin*

#4 Randy

Randy

    Convert Me!

  • Moderator
  • 17,540 posts

Posted 27 September 2003 - 07:23 PM

Remember now...don't shoot the messenger. :laugh:

In your CSS file, you've closed your "body" section with a parentheses instead of a squiggly bracket. Fix that and it should work in Netscape then.

#5 idrive

idrive

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 333 posts
  • Location:Ottawa, ON Canada

Posted 28 September 2003 - 06:08 AM

Oh my! That's it? Wow...now I know how students feel when I am teaching them html and they have forgotten to close a bracket *grin*

Thanks Randy!

BTW, do you know if <strong> tag is unsupported in Netscape? I am looking at my paragraph headings.

Makes me think I should look into Top Style or another CSS editor that can validate CSS and advise you of styles that are not used in the document...

#6 Randy

Randy

    Convert Me!

  • Moderator
  • 17,540 posts

Posted 28 September 2003 - 07:33 AM

Netscape supports the <strong> tag, generally speaking. I say generally speaking because there is often a world of difference depending upon if you're referring to Netscape Navigator 4.x, Netscape 6.x or Netscape 7. Especially when it comes to support of CSS methods. However all three of those should at least recognize the <strong> tag if memory serves.

Basically Netscape makes <strong> text into boldface letters, so the tag is roughly equivalent to the <b> tag in my mind for Netscape. This, of course, is a bit different than how IE adds emphasis where the <strong> tag is concerned.

If you want the <strong> to appear the same in IE and Netscape the best way to do that IMO is to simply set up a "strong" subset in your CSS file and hardcode the text appearance you want. Not a perfect solution, but at least it's a workable one.

#7 leftbrain

leftbrain

    A Refreshing Alternative

  • Active Members
  • PipPipPip
  • 54 posts
  • Location:Newberry, South Carolina

Posted 28 September 2003 - 08:09 AM

idrive, if you are looking for a CSS2 reference that indicates browser compatability, a good one is to be found at the W3Schools web site. They also offer free tutorials on CSS, as well as many other web-related technologies.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users