?
Solved

centering a frame?

Posted on 2003-03-14
5
Medium Priority
?
171 Views
Last Modified: 2010-04-09
Ok, it goes like this. When I make frames in a page, the frames align themselves to the left and right of the page. What I need to do is to get a frame in the center of a frame.
0
Comment
Question by:braindude
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:coreybryant
ID: 8141469
I am trying to picture what you are trying to accomplish.  If you have a page with two frames (left & right) which split the screen right down the middle, then whatever properties that you have in each of those single pages would apply.  You could simply use <center> to center the information.  
Corey
0
 

Author Comment

by:braindude
ID: 8141501
Ok, its something like this:

----------------------------
|                          |
|                          |
|      -----------         |
|      |         |         |
|      |         |         |
|      |         |         |
|      -----------         |
|                          |
|                          |
----------------------------

Thats what I want it to look like....
0
 

Author Comment

by:braindude
ID: 8141509
stupid thing.... you sorta get the picture... the outside box is one of the frames, and the inside box is the other frame. that is what i need to know, how to get the inside box centered vertically and horizontally...
0
 
LVL 29

Accepted Solution

by:
coreybryant earned 300 total points
ID: 8141550
OK - so you are speaking of an i-frame I presume?

If so, you can use something like this:
<table border="1" cellpadding="0" cellspacing="0" width="100%" height="100%">
  <tr>
    <td width="100%">
    <p align="center"><iframe name="I1" src="iframe.htm">
    Your browser does not support inline frames or is currently configured not to display inline frames.
    </iframe></td>
  </tr>
</table>

Corey
0
 

Author Comment

by:braindude
ID: 8141572
Yep, just like that. I-frame, interesting name. Thanks!!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question