iframe scrollbar coding

Discussion in 'Web Design & Coding' started by Tuffgong4, Jan 28, 2004.

  1. Tuffgong4

    Tuffgong4 The Donger Need Food!!!! Political User

    Messages:
    2,465
    Location:
    Chicago
    just a question...I just learned about iframes but have yet to play around with it yet...I'm going to use them to serve up the content on my website and I was wondering if they automatically scroll if the content is too large for the table cell or if you have to code the iframe so it will have a scrolll
     
  2. RagnaroK

    RagnaroK Must be dreaming...

    Messages:
    673
    Location:
    Australia
    It "should" automatically add scrollbars when the content overflows the iframe.
     
  3. Tuffgong4

    Tuffgong4 The Donger Need Food!!!! Political User

    Messages:
    2,465
    Location:
    Chicago
    cool I'll try it and get back to you on the forum rag
     
  4. Tuffgong4

    Tuffgong4 The Donger Need Food!!!! Political User

    Messages:
    2,465
    Location:
    Chicago
    ok using dreamweaver and want to accomplish this
    Easy, add this simple code in the link tag: target="iframe"
    I want to put this code to a table that just has a background color where to I put the code...or how do I do it...
    also I need to add something similar to this with the name changed for my own purposed but this is what is on the website
    The code:
    | <a href="http://www.zymic.com/html/content.html" target="iframe2">Content</a>
    | <a href="http://www.zymic.com/html/jokes.html" target="iframe2">Jokes</a>
    | <a href="http://www.zymic.com/html/resources.html" target="iframe2">Resources</a> |
    now where would this go as well
     
  5. CHiLLaXen

    CHiLLaXen hypnotika

    Messages:
    107
    Location:
    Minnesota
    Code:
    <table bgcolor="background_color" background="image_file"><tr><td>
    <!-- link to iframe -->
    <a href="blah1.html" target="iframe_name">blah 1</a>
    <a href="blah2.html" target="iframe_name">blah 2</a>
    <a href="blah3.html" target="iframe_name">blah 3</a>
    </td></tr></table>
    
    <iframe name="iframe_name" width="if_needed" height="if_needed" scroll="auto">
    </iframe>
    
    this code is a little smiple but hope you get the idea

    also, instead of doing href="http://www.zymic.com/html/..."
    you can just do href="/html/..."
     
  6. Tuffgong4

    Tuffgong4 The Donger Need Food!!!! Political User

    Messages:
    2,465
    Location:
    Chicago
    nice thanks