HTML Text Box Set Dimension *Help having a BrainFart*

Discussion in 'HTML & Website Design' started by MediaHustler, Feb 19, 2007.

  1. #1
    Well I want to have a box that looks like a frame but does not link to an outside page. It looks like a frame but you edit the page in it's respective html file. It contains text and you can scroll up and down with it.

    www.GameFrat.com/TheVideo

    Where it says News, I can't expand the box because of the design and i'm trying to do this for a friend. He asked me but i'm having a major brain fart.

    Help and Thank you!
    -Doug
     
    MediaHustler, Feb 19, 2007 IP
  2. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm not sure what you mean exactly but i think you want an internal frame, or iframe?
     
    klown, Feb 19, 2007 IP
  3. MediaHustler

    MediaHustler Well-Known Member

    Messages:
    1,857
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    120
    #3
    Yes but I don't want src="whatever.html" I want to edit the text on the page itself. See what I mean?
     
    MediaHustler, Feb 19, 2007 IP
  4. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #4
    Amazing design, Doug!
    Here is a mockup that will help you achieve the "iframe" style with a DIV and pure CSS.
    <div style="width: 300px; height: 100px; overflow: auto; border: 1px solid #000000"><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>
    Code (markup):
    All you have to do basically is define a DIV fixed width and height, and then set the "overflow" property to "auto". As a result, if content inside DIV does not fit the space, scrollers will jump in, just like in iframes :)
     
    Clive, Feb 19, 2007 IP
    klown and MediaHustler like this.
  5. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #5
    So you want the user to be able to edit it? why not just use a regular text box? Otherwise your stuck with an iframe, you can skip the src and just put stuff inside it.
     
    klown, Feb 19, 2007 IP
  6. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Very nice, this must be what you wanted.
     
    klown, Feb 19, 2007 IP
  7. MediaHustler

    MediaHustler Well-Known Member

    Messages:
    1,857
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    120
    #7
    Clive you know I love you right?
     
    MediaHustler, Feb 19, 2007 IP
    Clive likes this.
  8. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #8
    Haha, I knew it ;)
     
    Clive, Feb 19, 2007 IP