SitePoint Sponsor

User Tag List

Results 1 to 15 of 15
  1. #1
    SitePoint Guru Marc's Avatar
    Join Date
    Nov 2000
    Location
    New York
    Posts
    765
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why doesnt CSS work in netscape?

    Hmm.. I made this page:
    here and it works fine (for me at least) in IE.

    The CSS for the links changing color and making them not underlined works. The forms work.

    However, when I load it up in Netscape 4.77 it looks like a different site! Aside from the problems with the tables (which I can probably fix, but I'll try that tomorrow), nothing that I did with CSS works! At all!

    I'll understand if the forms don't work, I know Netscape doesn't handle CSS and forms very well, but can I even get the links to change color on hover, or have no underline normally?

    Am I stupid or maybe Netscape just doesn't support CSS at all and I didn't know it?

    Wow, I'm no big fan of Microsoft, but wouldn't life be sooo much easier if Netscape didnt exist!
    Marc Gugliuzza
    marc.gugliuzza.com



  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not using quotes will help you, although Netscape 4 supports less CSS than IE. Netscape6/mozilla supports more CSS than NS 4.

  3. #3
    SitePoint Guru Marc's Avatar
    Join Date
    Nov 2000
    Location
    New York
    Posts
    765
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What's a good web developer supposed to do?

    Argh, I thought I was being all good when i made sure i put ALL my values in quotes and made sure all tags were lowercase and everything had a closing tag, because that was supposed to be XHTML compatible, the way of the future.

    But now I have to go and take out all the quotes for Netscape. Well, it's impossible to please everyone
    Marc Gugliuzza
    marc.gugliuzza.com



  4. #4
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I meant to take out the quotes you had in the CSS file.

  5. #5
    SitePoint Guru Marc's Avatar
    Join Date
    Nov 2000
    Location
    New York
    Posts
    765
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    O ok

    yea, i kinda figured that, but I bet according to xhtml you're supposed to but css values in quotes too..

    although i dont know that, im only presuming..
    Marc Gugliuzza
    marc.gugliuzza.com



  6. #6
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope, xhtml only covers HTML, and according to the CSS specification, you're not supposed to quote most values.

  7. #7
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The only CSS values you need to quote are those that are more than one word. For example:

    .test {font-family: verdana, arial, "Arial Black"; }

    See? Only words that need to stay together should be quoted. Nothing else should be quoted.

    Also, regarding your rollovers, Netscape does not understand the pseudo-class (the effect used to get the text rollovers) properly. It will accept the "link" value, but it does not understand any of the other values such as a:hover, a:visited.hover, etc...

    One more thing, it appears that the reason why your FORM is not showing up in Netscape is because you do not have an opening <FORM> tag. Hehehe...I did a search through the code and found only one opening FORM tag and that was for the Clock at the bottom of the page.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  8. #8
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All and All....it was your code. =)
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  9. #9
    busy Steelsun's Avatar
    Join Date
    Mar 2001
    Location
    Houston, Tejas; Future Capital of the World
    Posts
    2,474
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Netscape is picky about Codes.
    Microsoft could care less if the code is buggy. (hence so many fixes for any MS product)

    I used to be a Netscape prostelyzer, and still use 'scape for most of my browsing, but alas I am having to use IE for more and more things (like this forum, which is not NS4 friendly).

    I have always avoided using CSS in my webpages so they will be easier to see in all browsers, but I am actually starting to learn CSS now, since I realize NS is gasping unto death. (Alas poor browser, we knew thee well...)
    Brian Poirier
    SunStockPhoto: Stock Photos, Fine Art Photos, Event Photography

  10. #10
    SitePoint Guru Marc's Avatar
    Join Date
    Nov 2000
    Location
    New York
    Posts
    765
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wow no opening form

    Wow that was dense! Well at least now the form fields show. thanks :P

    See the search box for spf in the top corner of this forum? if u load this page up in NS, its still a little funky lookin.. the box is smaller than normal and the text is in the same font, just the background color stays white.. how they do that?

    btw thanks a lot guys i really appreciate it


    hmmm i apparently noticed that using #id in css must be a psuedo-class deal cause it doesnt work in ns

    i think that by being so hard-assed when it comes to code netscaped brouht about its own death.
    Last edited by Marc; Jul 17, 2001 at 04:17.
    Marc Gugliuzza
    marc.gugliuzza.com



  11. #11
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Wow no opening form

    Originally posted by Marc
    its still a little funky lookin.. the box is smaller than normal and the text is in the same font, just the background color stays white.. how they do that?
    without looking at the source code of both the template and the style sheet, they should have made use of backgorund-color, border, ofnt size, width, color and font family..and several otehrs to name some.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  12. #12
    SitePoint Member
    Join Date
    Jul 2001
    Location
    Czech Republic
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS in NS?

    Have you received any answer on your question?

    I also don't know why CSS doesn't work in NS?

  13. #13
    SitePoint Addict
    Join Date
    Jul 2001
    Posts
    284
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: CSS in NS?

    Originally posted by Singha
    Have you received any answer on your question?

    I also don't know why CSS doesn't work in NS?
    It depends on which CSS properties you are trying to use. N4 supports about half or so that IE5 does. I think N6 is much closer to supporting as much as IE5.

    As mentioned in an earlier post, the HOVER property of CSS will not work in N4. Other things N4 does not cover is scroll bar colors, favicon, etc....

    I am just glad that over 90% of my visitors are using IE5+. For the others, I try to accomodate, but sometimes it's just impossible.

    Cheers!
    htmlite.com

  14. #14
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually, NS6 and Mozilla (same thing) support more CSS than IE5 does....
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  15. #15
    SitePoint Addict
    Join Date
    Jan 2001
    Location
    Ottawa ON
    Posts
    315
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Aes
    Actually, NS6 and Mozilla (same thing) support more CSS than IE5 does....
    I'd say that they support the same number because IE has a lot of proprietary CSS extensions with the likes of filters and scrollbar colors and such. If you just count up the number that are supported, it's probably about equal. If you count up the number supported that are specified by the W3C, Gecko is certainly ahead =)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •