SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Nov 2000
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help!!! my stylesheet doesn't work

    I use this command:

    <LINK REL=stylesheet HREF="/forums/default.css" TYPE="text/css">

    within <head></head> tag, but seems like it's not working, please help.

    My url is http://www.namnet.com , you can see my .css file at http://www.namnet.com/forums/default.css

    Thanks a lot.

  2. #2
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    UK
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote the rel="" for neatness? Maybe put a dot in the url, i.e. HREF="./forums/default.css"

  3. #3
    Probably eating pie mitsubishi's Avatar
    Join Date
    Sep 2001
    Location
    England, UK
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have a look at your style sheet, are you expecting it to be parsed or something?
    COLOR: {linkcolor};
    Is no good

  4. #4
    Probably eating pie mitsubishi's Avatar
    Join Date
    Sep 2001
    Location
    England, UK
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    maybe I'm wrong thats been changed, is this a vbullitin thing?
    [edit]
    No I looked again, are some getting parsed and others not?

  5. #5
    SitePoint Zealot
    Join Date
    Nov 2000
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by TechSited
    Quote the rel="" for neatness? Maybe put a dot in the url, i.e. HREF="./forums/default.css"
    I've put a dot but it's still didn't work, I don't know what's wrong, but if I just copy an paste the info int default.css, everything works fine.

    mitsubishi, I don't relly get the "parse" that you were talking about, and yes it's vbulletin, may be I just have to ask them .

    Oh, here is the link with the same css, I just put all code in the head tags.

    http://www.namnet.com/forums/index.php?s=&styleid=10
    Last edited by Stinky Mouse; Dec 7, 2001 at 20:42.

  6. #6
    Probably eating pie mitsubishi's Avatar
    Join Date
    Sep 2001
    Location
    England, UK
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah look at your CSS sheet by itself and then look at it when it's included with the script, eg;

    Code:
    BODY {
    	SCROLLBAR-BASE-COLOR: {categorybackcolor};
    	SCROLLBAR-ARROW-COLOR: {categoryfontcolor};
    }
    //compared to
    BODY {
    	background: #ffffff;
    	SCROLLBAR-BASE-COLOR: #ebd6ad;
    	SCROLLBAR-ARROW-COLOR: #000000;
    }
    You are relying on VB's template engine to parse the CSS, which it won't if its <link>ed to from HTML, you have to write those values into your stylesheet.

  7. #7
    Probably eating pie mitsubishi's Avatar
    Join Date
    Sep 2001
    Location
    England, UK
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its done it again, VB is pasing it when I write it in here!! But you see what I mean because its doing it here,
    Code:
    SCROLLBAR-BASE-COLOR: [categorybackcolor];
    //but with curly braces!! Ha Ha can't parse me now!

  8. #8
    SitePoint Zealot
    Join Date
    Nov 2000
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got it, thanks a lot, you've been a big help .


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
  •