Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i need to have similar on iframes

Status
Not open for further replies.

Keendev

Technical User
Jan 23, 2006
106
PH

hi,

I have scrolling portion inside my page and i used iframes.

Is there another way similar to iframes that scrolls inside the page.

thanks
 
You can use the overflow css property on the block level element wrapping the text - that can give you scroll bars around, say, a div of text. It's similar to what you want, I think.

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
But make sure your block level element has (width and) height defined -- else it would default to growing as big as the content inside it.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Additional info to the answers above : An Iframe is a kind of "browser inside the browser". As is, you can only fill it with a well formated HTML full page with an header and a body.
If you want to use another container like a DIV, you should fill it with HTML code without HTML, HEADER and BODY tags (eg : an HTML portion, not a full page).

hope that helps.

Water is not bad as long as it remains outside human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top