SitePoint Sponsor

User Tag List

Results 1 to 12 of 12
  1. #1
    SitePoint Guru coiL's Avatar
    Join Date
    Sep 2001
    Location
    QLD, Australia
    Posts
    666
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question have I missed a new css??

    I ask this beacuse I currently have two sites on netfirms accounts and as of a few days ago the css is not working. Text is the wrong colour, bakground colour is just showing up as white etc?

    Have a missed some new tags or something? Have they maybe disabled css?
    coiL
    "cradled in the learning curve"

  2. #2
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would you be able to give us an example of the coding you're using, a link to the site(s) in question, or anything else that's releveant and may aid in answering your questions (e.g. what browser are you using, et cetera).

    CSS tags will not simply "change;" chances are your code simply is not valid in the particular browser you happen to be using or there's a coding bug in your HTML and the CSS isn't being interpreted correctly.

    -Colin
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  3. #3
    SitePoint Guru coiL's Avatar
    Join Date
    Sep 2001
    Location
    QLD, Australia
    Posts
    666
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok well I'm using the latest explorer, the pages work on my hardrive and aslo on a non-netfirms account.

    some of the code is:
    body {font-size: 11pt;
    font-family: Arial;
    color: #FFFFFF;
    line-height: 150%;
    background-color: #000033;
    scrollbar-base-color: #CC6600;}



    I think its right
    coiL
    "cradled in the learning curve"

  4. #4
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check to make sure that the file paths line up. I.E. you don't have:
    Code:
    <link rel="stylesheet" href="c:\website\...\etc" type="text/css" />
    You get the idea? :-)

    ~~Ian

  5. #5
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you're externally linking the CSS file, use Ian's suggestion and make sure it's pointing to the correct directory path and file name on your server. That is most likely the cause.

    If you're using in-line stylesheets, make sure you have it formatted like so:
    Code:
    <style type="text/css">
    <!--
    body { font-size : 11pt ;
    font-family : Arial ;
    color : #ffffff ;
    line-height : 150% ;
    background-color : #000033 ;
    scrollbar-base-color : #cc6600 ; }
    -->
    </style>
    Let us know if you're still having problems.

    -Colin
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  6. #6
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also, make sure that you have type="text/css" in either the <STYLE> or <LINK> tags (depending on which one you're using, of course). Otherwise, compliant browsers won't even bother to read it.

    ~~Ian

  7. #7
    SitePoint Guru coiL's Avatar
    Join Date
    Sep 2001
    Location
    QLD, Australia
    Posts
    666
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok I checked all that and it's still not working.

    Here's how I link to the style sheet (it's external)I think it's right?!
    <link rel="stylesheet" type="text/css" href="name.css"> - the style sheet is in the same directory as the html files.

    I might just leave it a few days and see if it fixes itself. I haven't changed any of the code for the site and it's been up for about 5 weeks, it's only the last 4 or 5 days that it's stopped working (which is why I though perhaps there was a new css standard or something )

    Thanks for your help
    coiL
    "cradled in the learning curve"

  8. #8
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The only things that I think are still left are:
    1. The files aren't on the server. Try re-uploading the stylesheet and see where that brings you.
    2. For some reason the Netfirms servers aren't serving up CSS files. If that's the case get a hold of there technical support -- they may have updated their servers and screwed something up then. If they don't fix it within ten min after you call, find a new host. ;-)
    ~~Ian

  9. #9
    SitePoint Addict
    Join Date
    Nov 2001
    Posts
    213
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    hmmm..

    Do you have access to your MIME types? Perhaps the server MIME type is incorrect. You may have to contact your host to get that fixed. Test it by surfing directly to your style sheet (ie/ www.host.com/user/style.css). It should send you the style sheet code as plain text if the MIME type is correct. NS4.x's page property sheet even tells you what the mime type is.

  10. #10
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, that was part of option two. :-)

    If you use Internet Explorer, then IE may open up FrontPage or some other program.

    ~~Ian

  11. #11
    SitePoint Member
    Join Date
    Feb 2002
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This solution is just a work-around, but it works. Netfirms' ads make the first CSS declaration invalid. So, what you do, is on the first line, insert this:

    Code:
    .dummy {}
    Then add the rest of your CSS after that.

  12. #12
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahhh! That makes sense and it's something I didn't consider. That makes perfect since because the first rule is the body style, right? Do what Hadur said and it'll probably work.

    Dude, you really need to find a host that doesn't try to advertise in your CSS files! ;-)

    ~~Ian


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
  •