The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Web Design
> CSS Help
|
css scrollbar code and php
Discuss css scrollbar code and php in the CSS Help forum on Dev Shed. css scrollbar code and php Cascading Style Sheets (CSS) forum discussing all levels of CSS, including CSS1, CSS2 and CSS Positioning. CSS provides a robust way of applying standardized design concepts to your web pages.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

June 22nd, 2002, 07:28 PM
|
|
Member
|
|
Join Date: Oct 2001
Posts: 29
Time spent in forums: < 1 sec
Reputation 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
|

June 22nd, 2002, 07:50 PM
|
 |
|
|
Join Date: Aug 2001
Location: NYC
Posts: 57
Time spent in forums: 32 m 19 sec
Reputation Power: 12
|
|
|
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.
|

June 23rd, 2002, 06:56 AM
|
 |
PHP Newbie forever
|
|
Join Date: May 2002
Location: France
Posts: 58
Time spent in forums: < 1 sec
Reputation Power: 11
|
|
|
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
|

June 23rd, 2002, 07:48 AM
|
|
Member
|
|
Join Date: Oct 2001
Posts: 29
Time spent in forums: < 1 sec
Reputation 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
|

June 23rd, 2002, 07:52 AM
|
|
Member
|
|
Join Date: Oct 2001
Posts: 29
Time spent in forums: < 1 sec
Reputation 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
|

June 23rd, 2002, 05:22 PM
|
|
Contributing User
|
|
Join Date: Jun 2001
Location: London, England
Posts: 31
Time spent in forums: < 1 sec
Reputation Power: 12
|
|
It HAS to be between <head> and </head> for it to be valid XHTML
Jee
__________________
Jeewhizz
http://www.the-bluebox.co.uk
|

June 24th, 2002, 06:11 AM
|
 |
PHP Newbie forever
|
|
Join Date: May 2002
Location: France
Posts: 58
Time spent in forums: < 1 sec
Reputation Power: 11
|
|
|
Thats what said, though header may be a little confusing, i ment <head></Head>, I've always called them header tags.
-ali
|

June 25th, 2002, 08:03 PM
|
 |
Contributing User
|
|
Join Date: Jun 2002
Location: Washington, DC
|
|
Quote: 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......
|

June 26th, 2002, 05:52 AM
|
 |
PHP Newbie forever
|
|
Join Date: May 2002
Location: France
Posts: 58
Time spent in forums: < 1 sec
Reputation Power: 11
|
|
|
<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
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|