SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 22nd, 2002, 07:28 PM
tommyj tommyj is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 29 tommyj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old June 22nd, 2002, 07:50 PM
persaltier's Avatar
persaltier persaltier is offline
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: NYC
Posts: 57 persaltier User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 19 sec
Reputation Power: 7
Send a message via AIM to persaltier
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.

Reply With Quote
  #3  
Old June 23rd, 2002, 06:56 AM
alicomb's Avatar
alicomb alicomb is offline
PHP Newbie forever
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: France
Posts: 58 alicomb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to alicomb
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

Reply With Quote
  #4  
Old June 23rd, 2002, 07:48 AM
tommyj tommyj is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 29 tommyj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #5  
Old June 23rd, 2002, 07:52 AM
tommyj tommyj is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 29 tommyj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #6  
Old June 23rd, 2002, 05:22 PM
Jeewhizz Jeewhizz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: London, England
Posts: 31 Jeewhizz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to Jeewhizz
It HAS to be between <head> and </head> for it to be valid XHTML

Jee
__________________
Jeewhizz
http://www.the-bluebox.co.uk

Reply With Quote
  #7  
Old June 24th, 2002, 06:11 AM
alicomb's Avatar
alicomb alicomb is offline
PHP Newbie forever
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: France
Posts: 58 alicomb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to alicomb
Thats what said, though header may be a little confusing, i ment <head></Head>, I've always called them header tags.

-ali

Reply With Quote
  #8  
Old June 25th, 2002, 08:03 PM
jpenn's Avatar
jpenn jpenn is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2002
Location: Washington, DC
Posts: 2,693 jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 41 m 10 sec
Reputation Power: 16
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......

Reply With Quote
  #9  
Old June 26th, 2002, 05:52 AM
alicomb's Avatar
alicomb alicomb is offline
PHP Newbie forever
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: France
Posts: 58 alicomb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to alicomb
<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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css scrollbar code and php


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway