SitePoint Sponsor

User Tag List

Results 1 to 14 of 14
  1. #1
    SitePoint Enthusiast vso's Avatar
    Join Date
    Oct 2003
    Location
    VA
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry Netscape 7.0 no likey my CSS controlled site!

    I do not like Netscape much, but I still want to make a site that is browser compatible across the board. Such is not the case with vitamin-shoppe-online.com

    I works splendidly in IE 5x and up, and also Opera 6x and up, but not at all in NS 7.0.

    I use a CSS style sheet to control placement and style of divide tags, and NS 7.0 is just not getting any of it.

    Any suggestions??

    Tim
    (hello Kevin Yank, how have you been? Sausage Forums are dead now. Makes me so sad
    )

  2. #2
    ********* Wizard silver trophy Cam's Avatar
    Join Date
    Aug 2002
    Location
    Burpengary, Australia
    Posts
    4,495
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Firebird 0.7 isn't getting any of it either. Not sure why though, I ran your site through the W3C CSS validator and it validates it and understand the stylesheet alright. The only think I can suggest is to change from using the <link> tag to import your CSS to using this method.
    HTML Code:
    <style>
        import url(/3col_rightNav.css);
    </style>

  3. #3
    SitePoint Wizard jag5311's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere in Indiana
    Posts
    3,082
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HEY VSO

    off topic..

    Is that vitamin site yours? How well does it do in terms of visitors? I own the domain healthytips.org and thought about doing a site based on providing , well, healthy tips but other stuff as well. Just thought I would throw that out there.

  4. #4
    SitePoint Enthusiast vso's Avatar
    Join Date
    Oct 2003
    Location
    VA
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hi

    Well I tried the Stlye import suggestion and not only did it not work for NS 7.0, but it screwed up IE 7.0

    This is so darned peculiar!

    Why won't netscape see the styles???

    As far as traffic to my site is concerned, I have no idea as the site is not yet live. I am currently developing it.

    Once it is complete, lets exchange links!!

    I will be registering it with Google soon I hope

    Tim

  5. #5
    SitePoint Zealot
    Join Date
    Sep 2003
    Location
    Michigan
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is just a guess. Could it be the order of the link?

    <link href="3col_rightNav.css" rel="stylesheet" type="text/css">

    <link rel="stylesheet" type="text/css" href="3col_rightNav.css">

  6. #6
    SitePoint Addict
    Join Date
    Sep 2003
    Location
    Europe
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, the link tag is just fine. If you actually validate the page, you will see what the problem is. You use two ids with the same name, which is not allowed. Make that a class, (also add body {background:#fff;} to your css) and it works fine in Firebird.

  7. #7
    SitePoint Enthusiast vso's Avatar
    Join Date
    Oct 2003
    Location
    VA
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Whoops, not so fast fella! :)

    Thank you so much!!! I totally missed that!

    I made the change and removed the duplicate DIV ID, then I did a validation, and it checked out. However, then I tested it both in NS and Firebird and the styles are still not being recognized. The page layout is thrown totally off, and all text parameters are being ignored.

    I am scratching my head here!
    Last edited by vso; Oct 20, 2003 at 04:50. Reason: I still need a resolution!

  8. #8
    SitePoint Addict
    Join Date
    Sep 2003
    Location
    Europe
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vso
    I am scratching my head here!
    So was I! The page validates, has valid css - why does Firebird not get the styles? I found the problem when I looked at the Page Info on the stylesheet: it is being sent as text/plain, while we want text/css - this is a server configuration problem. Is this your own server or can you contact the hosting provider about this?

  9. #9
    SitePoint Enthusiast vso's Avatar
    Join Date
    Oct 2003
    Location
    VA
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Plain Text?

    When I looked at the page in Firebird, and looked at the source code, the link says

    <link rel="stylesheet" href="3col_rightNav.css" type="text/css">

    So, what did you mean that the stylesheet was being sent as text/plain.

    I scanned the Page Info as well, and cannot see where the stylesheet is being sent as plain text.

    Thanks for your patience so far.
    Do you think it could have something to do with the Documment Declararion of


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">


    And yes, I have dedicated server space, but I lease it. I can contact the people who I obtain it from. However, what proof can I show them that the stylesheet is being sent as plain text?

    ??

    Tim
    Last edited by vso; Oct 20, 2003 at 12:29.

  10. #10
    SitePoint Addict
    Join Date
    Sep 2003
    Location
    Europe
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In MozillaFirebird, when I view the css file and left-click to View Page Info, there it says text/plain, while for working stylesheets it says text/css (like it should and as your link tag indicates).

    Also when you check your site in http://www.delorie.com/web/headers.c...l_rightNav.css you will see it is sent as text/plain.

    I see you are using Apache, which offers a solution. If you are allowed to use custom htaccess files you could place this one as .htaccess (note the dot) in the same directory as your css file(s):
    Code:
    AddType text/css .css

  11. #11
    SitePoint Enthusiast vso's Avatar
    Join Date
    Oct 2003
    Location
    VA
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, I tried that. It did not work. I am going to contact the server administrators and see whats up. I will let you know what they tell me.

  12. #12
    SitePoint Enthusiast vso's Avatar
    Join Date
    Oct 2003
    Location
    VA
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Guess what, Admin. added a mime type to a file on the apache server, something I do not have access to. It was almost identical to what you told me to add to the .htaccess file, minus the AddType comment. That did the trick.

  13. #13
    SitePoint Addict
    Join Date
    Sep 2003
    Location
    Europe
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Glad it worked out!

  14. #14
    SitePoint Enthusiast vso's Avatar
    Join Date
    Oct 2003
    Location
    VA
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    More Questions later

    Quote Originally Posted by yngwin
    Glad it worked out!
    I am new to SitePoint, but I can see I will be spending much time here.

    There is a tremendous knowledge base in the people who visit these forums.

    Lucky Me

    T


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
  •