View Full Version : Help With A Text Box!!!

12-21-2005, 06:58 PM
Hello everyone, this is my first post to this awsome site.

I have started my own site, and consider myself advanced in HTML.
This site is going to be used as my companys main site.

SO, I have made the background, basic codes and design. I used a text box in a previous site, but cannot find the code or any info on how make another one! I need a set area where I can put text or images, with a individual scroll bar, so it can be visable from the background... Kinda think of it as a site within a site...

Does anyone know what im talking about, I need help asap!!


12-21-2005, 07:16 PM
They're called iframes.



<iframe name="myframe" src="somepage.html" width="400" height="400">
If you see this message, your browser does not use IFRAMEs.

<a href="anotherpage.html" target="myframe">Click me to load this page in the above frame</a>

12-21-2005, 07:25 PM
Thanks for your help....

this looks like what I was talking about!

once i get the basics up, ill post a link to a temp site to get some pre-reviews.

thanks again!

12-21-2005, 07:33 PM
Ok, so when I go to align this iframe, it ends up in the top left of the screen..

I want it in the middle left of screen....

Any easy way to align the i frame, other then the value "Left" or using a bunch of &nbsp's??

12-21-2005, 07:34 PM

the scroll bar is at the bottom of the iframe..

can i make it an up and down scroll?

12-21-2005, 08:01 PM
1) For alignment, you can do align="center" in the iframe tag. If you're a table person, you can set the TD to have align="center". If you're a CSS person, then you'd want to center a div that contains the iframe with text-align: center; for your div and also a margin: 0 auto; for IE to center the div.

2) For vertical scrolling, that just depends on the height of the iframe and the height of the info inside. If the info inside is longer than the iframe's height, than it will automatically include a vertical scrollbar. Same for the horizontal scrollbar.