Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    New Coder
    Join Date
    Nov 2002
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts

    iframe and CSS ...

    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

  • #2
    Regular Coder bacterozoid's Avatar
    Join Date
    Jun 2002
    Location
    USA
    Posts
    490
    Thanks
    24
    Thanked 35 Times in 35 Posts
    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.

  • #3
    New Coder
    Join Date
    Nov 2002
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ahhh ..... ok thanks

  • #4
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i don't think he understands, do this
    <style>
    iframe { //style
    }
    </style>

  • #5
    New Coder
    Join Date
    Nov 2002
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what? no I undersand.... I didnt have the style sheet linked on the page I was loading into the iframe. I got it now.

  • #6
    New Coder
    Join Date
    Nov 2002
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ohh wait I see what you mean... Yea I could do it that way too. Thanks both of you for the help.

  • #7
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ?

    custom scrollbars wouldnt be in the iframe section.
    would be in the body

    Moderator: General web building

    Get out from under them, resist and multiply.
    Get out from under precipice and see the sky.

  • #8
    New Coder
    Join Date
    Nov 2002
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well.... in any case I got it all straightened out and working.

  • #9
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i though it would be in the iframe secion like textareas and css, or mabey both, i am new to css.

  • #10
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if its in the body{} section it will control every scrollbar
    this is only IE of course

    Moderator: General web building

    Get out from under them, resist and multiply.
    Get out from under precipice and see the sky.

  • #11
    Regular Coder
    Join Date
    Jun 2002
    Location
    Beyond Lament
    Posts
    424
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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...
    Quíet Storm Designs ~ Art is not what you see, but what you make others see.
    · the Storms· || ·Ultraviolent Winter· || ·Was Einstein Wrong?· || ·It´s About Time!·


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •