:( My colored scrollbars don't work!

He has: 21 posts

Joined: Jul 2004

Hey all. I finally finished my site. But there's one huge problem: The colored CSS scrollbars in my iframe don't work. The main scrollbars work, though. I'm using internet explorer 6. What could be the problem?

here's the page, feel free to look at the code.

http://mandyrocks.com/main.html

He has: 21 posts

Joined: Jul 2004

okay lol i just got that fixed. but now im facing another problem. the background of the iframe is white!

He has: 578 posts

Joined: Jun 2004

That's because you didn't set the background color.

He has: 1,380 posts

Joined: Feb 2002

Just a comment...don't mess with the scrollbar colors. I used to, but with browsers like Firefox and Mozilla where you can change skin of the browser, people have their scrollbars set how they want them. Dont touch them.

He has: 21 posts

Joined: Jul 2004

But not a lot of people use those browsers....most people using windows use IE.

And the reason I didn't set the background color is because I want it to be transparent so the layout shows through. This works fine in Safari, but not in IE.

KarenArt's picture

She has: 354 posts

Joined: May 2001

Quote: And the reason I didn't set the background color is because I want it to be transparent so the layout shows through.

Did you use background-color:transparent?

gotta finish redesigning my sites so I can show them again.

The purpose of education is... to get more jokes!

He has: 21 posts

Joined: Jul 2004

In the external file (main.html), yes I did put background: transparent for the iframe. Am I supposed to do that in the iframe file as well? But where? in the section?

Sorry if what I said is kinda confusing, I'm very new to html.

KarenArt's picture

She has: 354 posts

Joined: May 2001

I'm not sure what you have but in your css have

iframe.CLASS {
  background-color: #COLOR CODE;
  Any other css;
}
'

I've haven't used iframes for awhile so I'm not sure what the problem might be for you trying to set the background color.

Oops... just realized something....

Quote: n the external file (main.html), yes I did put background: transparent for the iframe.

What you want to do is give your iframe a class for css styling and set the background color in an external css file. You can also do the css inline, but I'd suggest keeping everything external.
I like to have inline styles on my php pages where I need to change a height, width, etc. for an element.

gotta finish redesigning my sites so I can show them again.

The purpose of education is... to get more jokes!

He has: 21 posts

Joined: Jul 2004

thank you soo much....i'll try that now.

so what you're saying is that instead of writing out all my css in the page, i should make an external .css file?

i'll try both ways, thanks.

He has: 21 posts

Joined: Jul 2004

okay i tried both ways...still doesn't work.

its okay though i've decided all i'll do is set the iframe bg color to the main layout color. no biggie...but thanks for all help anyway!

He has: 1,380 posts

Joined: Feb 2002

Transparent isnt supported across the board

And just for your knowledge...IE is the major browser...but there are others, and their numbers are growing. Mozilla/Firefox is on the rise, Opera has been around for awhile, Netscape is still used, AOL, etc etc. IE is most definitely not the browser of choice, and you shouldn't ignore your other users as well

Plus, most people find the scrollbars annoying if the colors change

He has: 21 posts

Joined: Jul 2004

i set the background color to #ff9999

still shows up as white!

urggghhhh i am so frustrated.

He has: 21 posts

Joined: Jul 2004

ok its fixed now...i just set a background image....it kind of ruins the 'mandy rocks' part of the layout but oh well...i'll try to make the next layout better.

now i have to fix all the pages. yay.

He has: 1,758 posts

Joined: Jul 2002

Also... The IE team seem to be keen to make the next release of IE more in line with what users want and that will mean making it standards compliant, so they may well get rid of proprietry code like the css scrollbar colouring, marquee etc etc.

Microsoft know that they're going to loose out if people keep moving to these new browsers so they WILL give people what they want, design for standards-compliance now and you won't have to redesign in the future.

Andy

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.