Home » questions » a little help with html frame code...?

a little help with html frame code...?

2006-08-01 12:57:58, Category: Programming & Design
i am looking for html code, so that i can place a frame, or something like it, in the middle of the page with its own background and scroll bar, and that the size will remain the same despite the size of the browser window. a good example of what i want is the following web page www.marcanthonyonline.com. thanks.

Answers

  1. Ana

    On 2006-08-01 13:01:42


    The Frame Tag The tag defines what HTML document to put into each frame In the example below we have a frameset with two columns. The first column is set to 25% of the width of the browser window. The second column is set to 75% of the width of the browser window. The HTML document "frame_a.htm" is put into the first column, and the HTML document "frame_b.htm" is put into the second column: It si not an iframe it is a simple frame take a look to the source code View source and if you want to nknow more about every tag including iframe take a look here: http://www.w3schools.com/html/html_frames.asp
  2. hawk200022000

    On 2006-08-01 13:01:33


    This is one of the best coding sites on the web, it will teach you everything you want to do and more. http://www.w3schools.com/
  3. someDumbAmerican

    On 2006-08-01 13:00:38


    it's called an iframe. That's all you get. Go google it.
  4. Userdan

    On 2006-08-01 13:05:20


    Oh, that's easy:
    Thiss will put a centered inline-frame on your page, 200 pixels wide, 200 pixelt high, and 200 pixels away from your browser's top....Oh, and unless you make another object which x-index's above 999, it will also stay above anything you may put under it.
  5. Brian B

    On 2006-08-01 13:28:38


    The url you provided uses a frameset to create this layout. I'd recommend using an iframe though. You can use the code below to place the iframe on your webpage. Which will center it horizontally and vertically on the page. The src attribute should be changed to the url of the web page you want to load in the iframe. You can change the height and width attributes so the page your loading fits correctly in the iframe. Also, change the margin-left attribute to half of the width and margin-top to be half of the height. Make sure to keep these negative numbers.