SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    Knowledge is key 2 progression Tryst's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Reading CSS files with Netscape...

    Hi all,

    I am in the middle of creating a website that is makes use of an external stylesheet. No when I preview the webpage in the in Internet Explorer the CSS files is read ok by the browser and the neccessary formatting is applied, but when I open the webpage in Netscape, the CSS file is not read.

    I want any text within a table to be off a certain size, but Netscape doesnt seem to srink the text down to the size specified within the CSS file.

    Does anyone know why this is happening, or does Netscape's font size differ considerably to Internet Explorers?!?!

    Cheers

    Tryst

  2. #2
    SitePoint Addict
    Join Date
    Sep 2003
    Location
    Europe
    Posts
    222
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Which Netscape version are we talking about? How is the css linked? How is the font size defined?

    And yes, different browsers have different defaults for font sizes (among other things) and besides, users can change those and configure their own "defaults".

  3. #3
    I am obstructing justice. bronze trophy fatnewt's Avatar
    Join Date
    Jul 2002
    Location
    Ottawa, Canada
    Posts
    1,766
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How are you linking to the external file? also, what version of Netscape are you using.

    Netscape 4 doesn't understand the @import command when used inline to bring in stylesheets... and if I remember correctly, it doesn't accept <link> elements that use the media="" attribute either...
    Colin Temple [twitter: @cailean]
    Web Analyst at Napkyn


  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by fatnewt
    How are you linking to the external file? also, what version of Netscape are you using.

    Netscape 4 doesn't understand the @import command when used inline to bring in stylesheets... and if I remember correctly, it doesn't accept <link> elements that use the media="" attribute either...
    Not true. Netscape 4 DOES understand linked stylesheets with a media attribute, as long as its value is SCREEN. Even a stylesheet with media="all" is ignored by NN4.

  5. #5
    I am obstructing justice. bronze trophy fatnewt's Avatar
    Join Date
    Jul 2002
    Location
    Ottawa, Canada
    Posts
    1,766
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vgarcia
    Not true. Netscape 4 DOES understand linked stylesheets with a media attribute, as long as its value is SCREEN. Even a stylesheet with media="all" is ignored by NN4.
    hence "if I remember correctly" ... I knew there was something I was missing... thanks.
    Colin Temple [twitter: @cailean]
    Web Analyst at Napkyn


  6. #6
    Knowledge is key 2 progression Tryst's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok,

    I'm using netscape 7,

    am using the following html code to link to the file...
    <link rel="stylesheet" type="text/css" href="style.css" />

    With the CSS file I have this...
    td {
    font-size : 10 px;
    }

    hope this helps.

    Tryst

  7. #7
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Is that the only rule in your stylesheet?

    Also, try removing the space between the property and the colon, and the space between the 10 and "px", like so:
    Code:
    td {
      font-size: 10px;
    }

  8. #8
    Knowledge is key 2 progression Tryst's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, its seems that the space between the '10' and the 'px' was the problem. Strange ? :s

    Cheers for that guys.

    Tryst


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
  •