XHTML vs. CSS
- Started
- Last post
- 10 Responses
- alienlb
is possible do give a style to the scrollbar in a XHTML document.
==========
i start my document with that
==========<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml
1/DTD/xhtml1-frameset.dtd"&
gt;==========
this my CSS style
==========.scrollbar {
scrollbar-face-color: #FFFFFF;
scrollbar-shadow-color: #FFFFFF;
scrollbar-highlight-color: #CCCCCC;
scrollbar-3dlight-color: #FFFFFF;
scrollbar-darkshadow-color: #FFFFFF;
scrollbar-track-color: #FFFFFF;
scrollbar-arrow-color: #CCCCCC;
}And i canĀ“t give a style to the body to have nice scrollbars !
do you have any solution ?
- alienlb0
oops
i start my doc with that :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml...
<html xmlns="http://www.w3.org/19...
- unknown0
You need to define that your style is withing the body tag.
body {scrollbar-3dlight-color:gold;
scrollbar-arrow-color:yellow;
scrollbar-base-color:tomato;
scrollbar-darkshadow-color:orang...
scrollbar-face-color:teal;
scrollbar-highlight-color:hotpin...
scrollbar-shadow-color:magenta}Cheers.
- alienlb0
*Boz
it doesn't work, i've allready tried
- unknown0
alienlb,
I tried it with your dtd declaration and the code I posted and it works perfectly.
What type of browser are you testing on? I'm using IE 6.0SP1
Scrollbar colors work on IE 5.5 and above...
- alienlb0
curious,
i ll tri again
- CAJTBr0
or class="scrollbar" in your body tag.
apparently winxp themes override scrollbar settings unless you put a meta tag in telling them not to:
<meta http-equiv="MSThemeCompatible" content="no" />
- sp0
As do Linux browsers like Galeon. I'm pretty sure that MAC overides button/scrollbar display too.
It's pretty much a Windows/IE deal.
- CAJTBr0
i don't think they override them so much as not support them, sp?
- matt250
might seem obvious - but you can't use CAPTIAL LETTERS when coding in xhtml
- sp0
I don't know. See, I think Mozilla might on Windows, where as on Linux (what I use) the Gnome Themes over-ride the display of all buttons, form elements, scrollbars, etc.
It's not that it's not supported - since Mozilla, Galeon, et al...support CSS standards more reliably now. I just think it's a OS level issue now.
Course, I haven't tried to force the issue either.
Although, I notice that something sneak through - like a form element font/text properties are changed but border, background, etc are left untouched.
Dunno...