Close

Results 1 to 6 of 6
  1. #1
    DF VIP Member
    canardo's Avatar
    Join Date
    Jul 2001
    Location
    uk
    Posts
    840
    Thanks
    0
    Thanked:        0
    Karma Level
    322

    Default html rendering in a box without and iframe

    probably a weird request but I want to implement the following

    scrollable area that grows like a textfield when I add content without using a textfield, basically want a marked area that has a fixed height that the browser will stick a scroll bar onto, the area will contain basically table rows (though not in a table unless necessary) can contain images etc (any html)

    hope that makes sense, I cant for love nor money see an easy way of doing it

  2. #2
    DF VIP Member BBK's Avatar
    Join Date
    May 2006
    Location
    here
    Posts
    12,422
    Thanks
    234
    Thanked:        128
    Karma Level
    1084

    Default Re: html rendering in a box without and iframe

    Off my head (usually am) it would seem a DHTML scrolling section is what you are after?

    As an example -

    http://simplythebest.net/scripts/DHT...script_93.html

    works in IE only I think. Should be easy to replace the text links with the gfx required to make it look more like its scrolling.

  3. #3
    DF VIP Member
    canardo's Avatar
    Join Date
    Jul 2001
    Location
    uk
    Posts
    840
    Thanks
    0
    Thanked:        0
    Karma Level
    322

    Default Re: html rendering in a box without and iframe

    cheers yeh thats basically how I am doing it at the moment with a fair whack of java script, was hoping there would be an easier way and I was making a mountain out of a mole hill, as quite happy for it to have a browser scroll bar

  4. #4
    DF VIP Member hxbro's Avatar
    Join Date
    Nov 2000
    Location
    Behind a wall
    Posts
    2,731
    Thanks
    4
    Thanked:        18
    Karma Level
    476

    Default Re: html rendering in a box without and iframe

    HTML Code:
    <div id="messagesTable" style="width: 430px; height: 286px; overflow: auto"></div>
    set your width and height and put the content in the div tag

    it's the overflow: auto that does the scrolling, if there's less content than the height then it won't show the scrollbar
    Download my latest breaks and electro mixes or listen to Sellout Breaks FM

  5. #5
    DF VIP Member
    canardo's Avatar
    Join Date
    Jul 2001
    Location
    uk
    Posts
    840
    Thanks
    0
    Thanked:        0
    Karma Level
    322

    Default Re: html rendering in a box without and iframe

    Thanks again hxbro karma added

  6. #6
    DF VIP Member ElWappo's Avatar
    Join Date
    Jun 2004
    Location
    In The Beast
    Posts
    1,230
    Thanks
    0
    Thanked:        0
    Karma Level
    463

    Default Re: html rendering in a box without and iframe

    That's useful...K+ from me too.

Similar Threads

  1. HTML for MAKE HOMEPAGE button
    By hitmandk1985 in forum Website Coding & Graphics
    Replies: 1
    Last Post: 26th May 2003, 01:36 PM
  2. html
    By hitmandk1985 in forum Website Coding & Graphics
    Replies: 0
    Last Post: 25th May 2003, 11:52 AM
  3. (X)HTML standards
    By graham.edmon in forum Website Coding & Graphics
    Replies: 0
    Last Post: 1st February 2003, 02:20 AM
  4. Palm os + html editor
    By digidump in forum PC Software
    Replies: 0
    Last Post: 20th November 2002, 02:15 PM
  5. html question
    By p i m p in forum The Dog and Duck
    Replies: 27
    Last Post: 17th October 2002, 08:52 AM

Social Networking Bookmarks

Posting Permissions

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