57 users online (0 members and 57 guests)  

Thread: Iframe help


  Results 1 to 3 of 3

Related

  1. IFrame in PHP?    Forum: PHP Forum
    Replies: 1
  2. iframe    Forum: HTML Forum
    Replies: 4
  3. Php and Iframe    Forum: PHP Forum
    Replies: 3
  4. iframe    Forum: HTML Forum
    Replies: 2
  5. IFRAME    Forum: HTML Forum
    Replies: 14
  1. #1
    cbchtstff's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2004
    Posts
    3

    Question Iframe...

    [can you change the color of a iframe, and color of the scroolbar?

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    yes. Yes you can.

    By the color of the iframe, I assume you mean the background color? If so, just set a background color in the document inside the iframe and it will change. Its the same for scrollbar, just add the CSS needed to change the scrollbar color in the iframe src document.

    Example:

    Code:
    <style type="text/css">
    body {
    scrollbar-3dlight-color:#CCCCCC;
    scrollbar-darkshadow-color:#000000;
    scrollbar-highlight-color:#FFFFFF;
    scrollbar-shadow-color:#999999;
    scrollbar-track-color:#666666;
    scrollbar-arrow-color:#000000;
    scrollbar-face-color:#CCCCCC;
    background-color:#FFFFFF;
    }
    </style>
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    cbchtstff's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2004
    Posts
    3
    Thanks!


    Quote Originally Posted by QuietDean
    yes. Yes you can.

    By the color of the iframe, I assume you mean the background color? If so, just set a background color in the document inside the iframe and it will change. Its the same for scrollbar, just add the CSS needed to change the scrollbar color in the iframe src document.

    Example:

    Code:
    <style type="text/css">
    body {
    scrollbar-3dlight-color:#CCCCCC;
    scrollbar-darkshadow-color:#000000;
    scrollbar-highlight-color:#FFFFFF;
    scrollbar-shadow-color:#999999;
    scrollbar-track-color:#666666;
    scrollbar-arrow-color:#000000;
    scrollbar-face-color:#CCCCCC;
    background-color:#FFFFFF;
    }
    </style>



Tags for this Thread