Backroun and Scrollbar properties

liunx

Guest
Alright, I have 2 problems.

1. My scrollbar properties (scrollbar-track-color: black; et cetera) never work when in a linked style sheet. The code in the .css file is just the same as i have used in embedded style sheets, but, it doesn't work when linked. Very annoying. (the documents are all linked to the .css file, only the scrollbar stuff doesn't work, everything else does)

2. What the hell is the right way to set the body backround in a style sheet? Embedded or linked (the only ones I use)? I have tried:

{background: black; ...}
{background-color: black; ...}
{bgcolor: black; ...}
{backgroundcolor: black; ...}

NONE WORK! Very annoying to do 50 or so <body bgcolor="000000">'s. Please help me! Thanks in advance.body {
background-color: #000000;
color: #ffffff;
}I find it odd that the background is the only thing you have to use the hexidecimal code for. Using just the word for the color works for everything else...do you reccommend switching over to pure hexidecimal for style sheets?Yes, or RGB notation if it is not one of the 16 colours, er... 17 if you include the: CSS 2.1 Orange :D.Originally posted by Robert Wellock
er... 17 if you include the: CSS 2.1 Orange :D. lol... :D

Also, black is a valid color to specify by name, but I generally just specify the hex code. Here is a list of the valid color names:

aqua
black
blue
fuchsia
gray
green
lime
maroon
navy
olive
purple
red
silver
teal
white
yellow
Taken from <!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/syndata.html#color-unitsI">http://www.w3.org/TR/REC-CSS2/syndata.html#color-unitsI</a><!-- m --> tried it, doesn't work. wtf? This stuff always happens to me...I even copy W3C coding and it doesn't work. I just don't get it. I did do the code you reccommended as well:

body {background-color: #000000;...}
(not that I wasn't doing body before, but I just didn't type it up)

No one has answered my scrollbar question. I don't believe I could have stumped you guys that easily. If you read this soon after the time of posting, just IM on AIM at demonkin8908. Thanks anyway.Zip up the files and send upload them. Styling the scrollbars is IE proprietary code, so perhaps you are viewing it in a different browser?I'm using Internet Explorer..however now that I know it's only IE I guess I can't get as worked up about it. I'm not sure I understand your first sentence.Post the files you are using, that are not working. Even if you just post the code, we can go from there. The code posted above to change the body's background color is correct, so there must be some other problem.The scroll bars only work in ie6 to my knowledge. I have seen sites that have scroll bars in ie6 but then looked at them in ie5 and found that they do not on that browser.dont expect anything great, i just started doing html. i only just got my first job; designing my fathers business website. and i only just got photoshop, still learning it.

check out my website (<!-- m --><a class="postlink" href="http://www.geocities.com/falling_through_infinity">http://www.geocities.com/falling_through_infinity</a><!-- m -->) (files on the website all have the attribute bgcolor in the body tag) for code. I'm aware that my style sheet is contained in a .htm file, however I have seen this work on several other websites, and have the scrollbar properties transfer over.

I also have a giant network of hypertext files (about 70, and growing) i practice html with, but its on my other computer.

but folks, i honestly dont care much about scrollbar properties much anymore. now that i know their inhibited to ie (possibly just 6). also, i should be spending my time learning more html, starting xml, xhtml....thanks anyway, guys/girls.It seems to work and all (I didint look for the scroll bars, because i am on mozilla no attribute) But the ads are horrendus ahhhhhhh. I think you really should change hosts. Geocities is awesome, for one they have a ton of ads. Two they have a low bandwidth cap. Three they don't support any server side languages. Its horrid. I would suggest continuing your host search. <!-- w --><a class="postlink" href="http://www.lycos.co.uk">www.lycos.co.uk</a><!-- w --> is free with less abnoxious ads, higher bandwidth and php. <!-- w --><a class="postlink" href="http://www.brinkster.com">www.brinkster.com</a><!-- w --> is free no ads asp and asp.net but has some asp.net problems (due to them being on nt servers and they are a webfarm) and their bandwidth cap is about the same as geocities I believe. Also <!-- w --><a class="postlink" href="http://www.freewebs.com">www.freewebs.com</a><!-- w --> is ad free with php and cgi but it has the same bandwidth as brinkster. It is 500mb a month which means its capped about about 16 meg per daythanks, ill try switching to lycos.co.uk. the scrollbars are working - I only have 3 files that use those attributes in. i just used em in embedded style sheets, while also using a linked style sheet for other things.
 
Back
Top