• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 172
  • Last Modified:

centering a frame?

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
braindude
Asked:
braindude
  • 3
  • 2
1 Solution
 
coreybryantCommented:
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
 
braindudeAuthor Commented:
Ok, its something like this:

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

Thats what I want it to look like....
0
 
braindudeAuthor Commented:
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
 
coreybryantCommented:
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
 
braindudeAuthor Commented:
Yep, just like that. I-frame, interesting name. Thanks!!
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now