|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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. |
|
#3
|
||||
|
||||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
It HAS to be between <head> and </head> for it to be valid XHTML
![]() Jee
__________________
Jeewhizz http://www.the-bluebox.co.uk |
|
#7
|
||||
|
||||
|
Thats what said, though header may be a little confusing, i ment <head></Head>, I've always called them header tags.
-ali |
|
#8
|
||||
|
||||
|
Quote:
Inlcude your CSS Tags <style type="text/css"> <!-- SCROLLBAR STUFF HERE! --> </style> If that don't work, well, I have no more idea's...... |
|
#9
|
||||
|
||||
|
<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 |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > css scrollbar code and php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|