Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Help With A Text Box!!!

    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!!


  • #2
    Senior Coder TheShaner's Avatar
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Posts
    1,126
    Thanks
    2
    Thanked 40 Times in 40 Posts
    They're called iframes.

    Resource:
    http://www.htmlcodetutorial.com/frames/_IFRAME.html

    Usage:

    Code:
    <iframe name="myframe" src="somepage.html" width="400" height="400">
    If you see this message, your browser does not use IFRAMEs.
    </iframe>
    
    <a href="anotherpage.html" target="myframe">Click me to load this page in the above frame</a>
    -Shane

  • #3
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!

  • #4
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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??

  • #5
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Also,

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

    can i make it an up and down scroll?

  • #6
    Senior Coder TheShaner's Avatar
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Posts
    1,126
    Thanks
    2
    Thanked 40 Times in 40 Posts
    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.

    -Shane


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •