|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Help edit a css stylesheet
ok the stylesheet contains this:
BODY, TD, TR, P, UL, OL, LI, INPUT, SELECT, DL, DD, DT, FONT { font-family: Verdana, Arial, Clean, Helvetica, sans-serif; font-size: 12px; } and I need to add this into it BODY { scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } Ok here's what I don't understand. The original stylesheet(used by a php script) contains lots of things at the top separated by commas. Does that mean that it will affect all of those things? So I have to do this? BODY { font-family: Verdana, Arial, Clean, Helvetica, sans-serif; font-size: 12px; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } TD, TR, P, UL, OL, LI, INPUT, SELECT, DL, DD, DT, FONT { font-family: Verdana, Arial, Clean, Helvetica, sans-serif; font-size: 12px; } Sorry about the newbie question, but I gotta start some where. |
|
#2
|
||||
|
||||
|
Yes, in your original stylesheet all (BODY, TD, TR, P, UL, OL, LI, INPUT, SELECT, DL, DD, DT, FONT) have the font attributes. In the second, you have removed BODY, so TD, TR, P, UL, OL, LI, INPUT, SELECT, DL, DD, DT, FONT should be defined as you have done. The BODY is correct now to, however, I think the BODY attributes should carry to the other tags -> but maybe not on older browsers -> so your method I think plays it safe.
HTH
__________________
Cheers, Jamie # mdb4u | mobile movie database] | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
|
#3
|
|||
|
|||
|
It just doesn't seen to be working!
I've checked and the css file is defenetly being used but adding those parametars doesn't have any affect on the scrollbar. Here's the full css file if that help any. BODY, TD, TR, P, UL, OL, LI, INPUT, SELECT, DL, DD, DT, FONT { font-family: Verdana, Arial, Clean, Helvetica, sans-serif; font-size: 12px; } .PhorumBodyArea { font-family: Verdana, Arial, Clean, Helvetica, sans-serif; font-size: 12px; width: 500px; } .PhorumListTable { border-style : solid; border-color : Black; border-width : 1px; } .PhorumListRow { font-family: Verdana, Arial, Clean, Helvetica, sans-serif; font-size: 12px; height: 21px; } .PhorumListHeader { font-family: Verdana, Arial, Clean, Helvetica, sans-serif; font-size : 14px; font-weight : bold; height: 24px; } .PhorumForumTitle { font-family: Verdana, Arial, Clean, Helvetica, sans-serif; font-size : 24px; font-weight: bold; } .PhorumTableHeader { font-family: Verdana, Arial, Clean, Helvetica, sans-serif; font-size: 12px; font-weight: bold; } .PhorumNav { font-family: Geneva, Verdana, MS Sans Serif , Clean, sans-serif; font-size: 10px; } .PhorumNewFlag { font-family: Geneva, Verdana, MS Sans Serif , Clean, sans-serif; font-size: 10px; color: Red; } .PhorumMessage { font-family: Courier New, Geneva, Courier, Clean; font-size: 12px; } Anyone know what could be wrong? This is for phorum 3.4.5 BTW |
|
#4
|
||||
|
||||
|
jsut curious...what browser are you viewing it in?
not sure if they all support colored scrollbars anyway other then that it looks fine good lucky and rock on!! ![]()
__________________
"I hate quotations." -ralph waldo emerson- |
|
#6
|
|||
|
|||
|
I am using IE. While some other browsers don't support this, I'm possitive IE does. I used this before so I know it works.
|
|
#7
|
||||
|
||||
|
yeah, but the scrollbar is a part of the browser not the webpage.
so there is no reason why you should want to alter it. and even in msie you can easily overrule the scrollbar settings that a webpage has set. |
|
#8
|
||||
|
||||
|
Coloring scrollbars only works in IE 5.5 I think, and as AKH said, it isn't W3 compliant.
Just extra hassle for nothing really IMHO |
|
#9
|
|||
|
|||
|
I suppose you're right, it's just that the default scrollbars always irritate me.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Help edit a css stylesheet |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|