Unstoppable Domains โ€” Get your daily AI drops report

Text Box Problem

SpaceshipSpaceship
SpaceshipSpaceship
Spacemail by SpaceshipSpacemail by Spaceship
Watch

bluey21

Established Member
Impact
0
Hi, I'm making a site for a restaurant, and because the menu is so big I want to put it in a text box with its own scoll bar. Might be iframes or something like, but sorry i'm just beginning this stuff. Is iframes the way to go and if so how do u do it?

thanks all
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Re: Text Box Problem

Originally posted by bluey21
Hi, I'm making a site for a restaurant, and because the menu is so big I want to put it in a text box with its own scoll bar. Might be iframes or something like, but sorry i'm just beginning this stuff. Is iframes the way to go and if so how do u do it?

thanks all

Well you could do this with iFrames, here is the code for an iFrame:

<IFRAME SRC="content.htm" WIDTH=200 HEIGHT=300 SCROLLING=YES>
If you can see this, your browser doesn't understand IFRAME. However, we'll still <A HREF="content.htm">link</A> you to the file here.
</IFRAME>

SRC="content.htm" is a local path to your iFrame content, you could also use something like SRC="http://www.domain.com/content.htm".

Also you can set SCROLLING=YES to SCROLLING=AUTO if you only require scrolling when the content html file is longer or wider than the specified measurements above.

Now, that said iFrames can be clumsy if not done right and my ultimate suggestion would be to use PHP or SSI but if you are just learning or simply happy with the iFrame, your away!

Warm Wishes,
 
0
•••
iFrame may not be the best idea. It should be possible to use <div> or <p> or something with css style overflow: auto;
so it will display srollbars.
 
0
•••
iframes also display scrollbars:blink:
 
0
•••
Originally posted by Slewey
iframes also display scrollbars:blink:
but are somehow ..... well messy?
 
0
•••
Originally posted by scisoft
but are somehow ..... well messy?

i dont think they are messy if they are styled right
 
0
•••
wasn't messy here...:|
 
0
•••
i would use a iframe but dont do the whole site in frames.. i wouldnt suggest that.
 
0
•••
I think divs would be simpler to do here that iframes. Trouble with iframes is you have to make a new html page that has the content of that iframe. With a div layer, you can just have the content on the same page.
 
0
•••
Iframes are just as bad as any frames. Bad with search engines!. And more fuss. Why bother when there is a safer, easier way of achieving the same goal using a scrollable layer.:)
 
Last edited:
0
•••
CatchedCatched
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back