Create only horizontal scroll on IFRAME

  • ljCharlie
  • Proficient
  • Proficient
  • ljCharlie
  • Posts: 343

Post 3+ Months Ago

Is there a way to have only the horizontal scroll bar on an IFRAME? If there is, can anyone show me?

ljCharlie
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • jzed
  • Newbie
  • Newbie
  • User avatar
  • Posts: 14
  • Loc: Florida

Post 3+ Months Ago

Not sure if this works, i havent tried it yet, but...

set your iframe's scrolling attribute to "auto". Then make sure all the text fits within the width of the iframe.
  • ljCharlie
  • Proficient
  • Proficient
  • ljCharlie
  • Posts: 343

Post 3+ Months Ago

I tried that but it didn't work. The auto attribute doesn't work. It doesn't matter how big the page is inside the iframe, I want to only allow the horizontal scroll bar only.

ljCharlie
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

I'm fairly certain you can't. I could never find a way to only get the vertical one (the scrollbar that actually matters) alone, and I'll be damned If I'd try for the horizontal :D
  • smilinjackhappy
  • Newbie
  • Newbie
  • smilinjackhappy
  • Posts: 9
  • Loc: pacific beach, ca

Post 3+ Months Ago

go to http://www.thisispb.com.

Yeah, I know, it is a bandwidth hog. Sooo shiny!

Anyway, click the button marked "umm".
That's a frames page. Notice the color of the scrollbar arrows, etc.?
In fact, click all the nav buttons. See the lack of flicker? (Pretty slick, huh? )The lower right hand corner is an iframe.
Not all have the scrollbar. Check the code to find out how I did it.
Hope that helps!

Mikey
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

:?
Mikey, I'm not sure what you were trying to say in that post, but your use of Iframes and frames is poor at best. Your backgrounds don't match, the buttons are hard to read, I have to scroll horizontally to see the whole site, and on top of that your iframe still has vertical and horizontal scroll bars.
  • jzed
  • Newbie
  • Newbie
  • User avatar
  • Posts: 14
  • Loc: Florida

Post 3+ Months Ago

yaa...vertical and horizontal are both their, however they can be hidden if colors are changed to blend them with the background...

kind of a ghetto work around
  • smilinjackhappy
  • Newbie
  • Newbie
  • smilinjackhappy
  • Posts: 9
  • Loc: pacific beach, ca

Post 3+ Months Ago

<iframe name="main" width="749" height="443" scrolling="no" noresize frameborder="0" src="home.html"></iframe>

If you want JUST the horizontal scrollbar, make sure the content which loads into the iframe does not exceed the height of the designated iframe.

"Hiding" the scrollbars is "ghetto", sure, but, IT WORKS.

LUUUUUVVVV to hear another, smoother, hassle free way of doing it, but that's what I came up with.

And hey,
" the buttons are hard to read"
what res/monitor size are you using to view that page?

-Mikey

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 57 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.