Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > scrollbars and stylesheets

scrollbars and stylesheets
Thread Tools
Dedicated MacNNer
Join Date: Nov 2000
Location: Netherlands
Status: Offline
Reply With Quote
Sep 18, 2001, 04:46 AM
 
Is it possible to apply styles in CSS to a scrollbar or dropdownlist in a form-element in html?
"Chance is irrelevant. We will succeed."
== 7 of 9 ==
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Meida, PA USA
Status: Offline
Reply With Quote
Sep 18, 2001, 01:08 PM
 
I seen both on windows ie, some on ie for mac and some on NN for both but befinatly shakey.

Truth be told its a very questionable practice as I don't think it under the offical CSS rules, but i thik MS does it anyway.

Check out the source of ffonline.com for some samples and umichmug.org ' s vBulletin BB forum (esp post new thread form) for even more.

My recommendation is to KISS (Keep it simple, stupid) and do those style addition once in a while and don't be surprised if everyone don't see them.

~ Mike
~ Mike
--
Personal Site: MikeZornek.com
Other Interests: WebDevWiki.com
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Sep 19, 2001, 04:29 PM
 
Originally posted by ervier:
<STRONG>Is it possible to apply styles in CSS to a scrollbar or dropdownlist in a form-element in html?</STRONG>
for scrollbars:
body { scrollbar-face-color: #666666;
scrollbar-highlight-color: #999999;
scrollbar-shadow-color: #333333;
scrollbar-3dlight-color: #999999;
scrollbar-arrow-color: #666666;
scrollbar-track-color: #ffffff;
scrollbar-darkshadow-color: #333333; }

for dropdownlists and form-elements:
select, option, textarea, input {FONT-FAMILY:verdana,arial;color:#ffffff; FONT-SIZE: 12px; background-color:#333333}

i hope that's what you meant?
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Sep 20, 2001, 09:29 AM
 
As has been pointed out here, it can be done via nonstandard extensions to CSS, but it will only work in IE5.5/Windows and higher.

Everyone else will just see plain old scrollbars (not really all that bad, since that won't render the page unusable). At least it shouldn't break anything, though one can never be certain with NS4.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Dedicated MacNNer
Join Date: Oct 2000
Location: Copenhagen, Denmark
Status: Offline
Reply With Quote
Sep 20, 2001, 01:35 PM
 
A note to applying style to form elements:
In my experience the style has to be applied every time in the element (i.e. input type=text style="xx:xx") - it won't work if it's defined in the top of the page. Quite annoying!

Peter
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:44 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2