#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Posts
    29
    Rep Power
    0

    css scrollbar code and php


    hello... this is strange... if i add the following code to my stylesheet and include it in a php file, the css doesn't take effect.... but if i include the stylesheet in an html file everything works fine... the scrollbar color changes in a .html file and not in a .php file...

    What Is Wrong?

    Code:
    body	{
    	scrollbar-face-color: #96A096; 
    	scrollbar-shadow-color: #96A096; 
    	scrollbar-highlight-color: #96A096; 
    	scrollbar-3dlight-color: #9AB6C4; 
    	scrollbar-darkshadow-color: #20253A; 
    	scrollbar-track-color: #738278; 
    	scrollbar-arrow-color: #000000;
    }
    i've seen this work in .php files before...www.deviantart.com

    -me
  2. #2

  3. Join Date
    Aug 2001
    Location
    NYC
    Posts
    57
    Rep Power
    13
    as is the code is fine....
    how are you including it? if it's a style sheet, it needs to be initially saved as a .css extension, and then use include() to load the file using PHP into your script.

    you need to provide a little bit more info.
  4. #3
  5. PHP Newbie forever
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Location
    France
    Posts
    58
    Rep Power
    13
    or use the the HTML commands

    <link rel="stylesheet" href="styles/site.css" type="text/css">

    Between the header tags of you pages, either one will do. I prefer to use the above as it does not add all the css code to you page. Not sure if its any better, but I prefer it.

    -ali
  6. #4
  7. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Posts
    29
    Rep Power
    0
    i'm using html to include it... but this is very strange... in a .php file... if i put some TEXT on the beginning of the file instead of a image it works! hmm... what is this?

    -me
  8. #5
  9. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Posts
    29
    Rep Power
    0

    hmm---


    well.. I'm using XHTML... and if i add text BEFORE the DOCTYPE tag it works... and if i just use HTML 4.. it also works... argh.

    i thikn i'll post this on the xhtml board then...

    -meself
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    London, England
    Posts
    31
    Rep Power
    14
    It HAS to be between <head> and </head> for it to be valid XHTML

    Jee
    Jeewhizz
    http://www.the-bluebox.co.uk
  12. #7
  13. PHP Newbie forever
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Location
    France
    Posts
    58
    Rep Power
    13
    Thats what said, though header may be a little confusing, i ment <head></Head>, I've always called them header tags.

    -ali
  14. #8
  15. Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Jun 2002
    Location
    Washington, DC
    Posts
    2,692
    Rep Power
    22
    What Is Wrong?

    code:--------------------------------------------------------------------------------
    body {
    scrollbar-face-color: #96A096;
    scrollbar-shadow-color: #96A096;
    scrollbar-highlight-color: #96A096;
    scrollbar-3dlight-color: #9AB6C4;
    scrollbar-darkshadow-color: #20253A;
    scrollbar-track-color: #738278;
    scrollbar-arrow-color: #000000;
    }
    Inlcude your CSS Tags

    <style type="text/css">
    <!--

    SCROLLBAR STUFF HERE!

    -->
    </style>

    If that don't work, well, I have no more idea's......
  16. #9
  17. PHP Newbie forever
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Location
    France
    Posts
    58
    Rep Power
    13
    <HEAD>
    <style type="text/css">

    body {
    scrollbar-face-color: #96A096;
    scrollbar-shadow-color: #96A096;
    scrollbar-highlight-color: #96A096;
    scrollbar-3dlight-color: #9AB6C4;
    scrollbar-darkshadow-color: #20253A;
    scrollbar-track-color: #738278;
    scrollbar-arrow-color: #000000;
    }

    </style></HEAD>

    -ali

IMN logo majestic logo threadwatch logo seochat tools logo