...

View Full Version : iframe and CSS ...



nick_a
12-10-2002, 11:16 PM
I have an iframe on my page and its not applying the scrollbar style that I have in my style sheet. Do iframes not support styles or do I have to define something differently in my style sheet for it to work? Thanks.
- Nick

bacterozoid
12-10-2002, 11:22 PM
Well, keep in mind that your iFrame is just simply another page stuck inside your current one. Edit the source code of your iFrame to include your style sheet and voila, your iFrame will have it's custom scrollbars.

nick_a
12-11-2002, 12:10 AM
ahhh ..... ok thanks :)

chrismiceli
12-11-2002, 12:11 AM
i don't think he understands, do this
<style>
iframe { //style
}
</style>

nick_a
12-11-2002, 04:44 PM
what? no I undersand.... I didnt have the style sheet linked on the page I was loading into the iframe. I got it now. :)

nick_a
12-11-2002, 04:51 PM
ohh wait I see what you mean... Yea I could do it that way too. Thanks both of you for the help.

cg9com
12-11-2002, 05:26 PM
custom scrollbars wouldnt be in the iframe section.
would be in the body

nick_a
12-11-2002, 05:46 PM
well.... in any case I got it all straightened out and working.

chrismiceli
12-11-2002, 11:39 PM
i though it would be in the iframe secion like textareas and css, or mabey both, i am new to css.

cg9com
12-12-2002, 10:25 PM
if its in the body{} section it will control every scrollbar
this is only IE of course

Quiet Storm
12-13-2002, 01:16 AM
Originally posted by cg9com
if its in the body{} section it will control every scrollbar
this is only IE of course

...on that one page.

You'll need to have another copy on the page that sits in the iFRAME... :D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum