Jump to content


DIV Like iFrames?


4 replies to this topic

#1 signature16

    Young Padawan

  • Members
  • Pip
  • 180 posts
  • Gender:Male
  • Location:San Diego

Posted 10 August 2006 - 02:44 AM

How can I make a DIV tag appear like a scrolling iframe? I want to limit the height of a a div area to like 250px and then allow it to scroll with expanded text.

#2 seraph!m

    Pixels 4 Life!

  • Members
  • Pip
  • 172 posts
  • Location:"In heavenly places..."

Posted 12 August 2006 - 08:04 PM

Add this to the css for the div:

overflow: scroll;

^_^

#3 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 12 August 2006 - 08:18 PM

using overflow: auto; may be better as it hides the scrollbars when they are not needed.

#4 seraph!m

    Pixels 4 Life!

  • Members
  • Pip
  • 172 posts
  • Location:"In heavenly places..."

Posted 12 August 2006 - 08:31 PM

Although auto may cause him to not compensate for the extra space that the bars take up if he previews it.

^_^

#5 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 13 August 2006 - 07:16 AM

I could be wrong but i think the bars appear within the div :P not on the outside.

Edited by .Matt, 13 August 2006 - 07:16 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users