Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 11-30-2007, 08:10 AM   #1 (permalink)
 
Super Techie

Join Date: Jul 2004

Posts: 398

kostas

Default div positioning

Hello all, i'm trying to center two iframes on a page. First I tried using a table to insert the iframes and it worked on IE but not in Firefox so I figured I'd take the div route. But regardless of positioning, it doesnt work at all. Any ideas? Here's code of main page:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>main</title>
</style>
</head>
<body>
<div id="site" style="position: absolute; top:0; left:300; width:600; height:800;">
<div id="top" style="position: absolute; top:0; left:300; width:600; height:220;">
<iframe src="menu.html" frameborder="0" height="220" scrolling="no" width="600"></iframe></div>
<div id="bottom" style="position: absolute; top:220; left:300; width:600; height:580;">
<iframe src="menu.html" frameborder="0" height="580" scrolling="no" width="600"></iframe></div></div>
</body></html>

__________________

kostas is offline  
Old 11-30-2007, 09:40 PM   #2 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: div positioning

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>main</title>
</style>
</head>
<body>
<div id="site" style="position: absolute; top:0px; left:300px; width:600px; height:800px;">
<div id="top" style="position: absolute; top:0px; left:300px; width:600px; height:220px;">
<iframe src="menu.html" frameborder="0px" height="220px" scrolling="no" width="600px"></iframe></div>
<div id="bottom" style="position: absolute; top:220px; left:300px; width:600px; height:580px;">
<iframe src="menu.html" frameborder="0px" height="580px" scrolling="no" width="600px"></iframe></div></div>
</body></html>
Try that. You have to give a unit to the size, like px, or cm, etc.
__________________

Need website help? PM me!
CrazeD is offline  
Old 12-01-2007, 02:49 AM   #3 (permalink)
 
Super Techie

Join Date: Jul 2004

Posts: 398

kostas

Thumbs up Re: div positioning

yea that was it. duh. thanks
__________________

kostas is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On