473,399 Members | 3,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Can I center frames in center of page

it can be seen on my page at http://total-contradiction.com/index3.html
i have the frames i want them but i the page in the center of the screen.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Total Contradiction Studios </title>
<frameset rows="611, 27" frameborder="0" border="0" framespacing="0">
<frameset rows="*" cols="197,*" frameborder="no" border="0" framespacing="0">
<frame src="leftbanner.html" name="leftFrame" scrolling="no" noresize="noresize" id="leftFrame" title="leftFrame" />
<frameset rows="120,*" frameborder="no" border="0" framespacing="0">
<frame src="topbanner.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frame src="welcome.html" name="mainFrame" id="mainFrame" title="mainFrame" scrolling="no"/>
</frameset>
</frameset>
<frame src="indexmusic.html" name="Musicpage" id="Musicpage" title="Musicpage" scrolling="no" />
</frameset>
<noframes></noframes></head><body>
</body>
</html>
Jan 16 '08 #1
2 3007
harshmaul
490 Expert 256MB
Hi,
Sorry to inform you but frames aren't designed to be used like this. The best thing to do is use the CSS solution.

take a look at this...
Very simplified template for a center down approac to a website

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <title>HELLO WORLD</title>
  6. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  7. <style type="text/css">
  8.   body { margin-left: 0px;
  9.       margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}
  10.   #navMain {width:768px;height:25px;color:#ff0000;}
  11.   #navMain ul{background-color:#ff0000;padding-left:0px;margin-left:0px;width:100%;}
  12.   #navMain ul li{border:0px solid #000000;margin:0px 0px;float:left;list-style:none;}
  13.   #navMain ul li a{ color:#ccccff; display:block;padding:5px 10px; margin: auto 3px;}
  14.   #navMain ul li a:hover{ color:#ccccff;}
  15.   #mainpage{ position:relative; width:768px; margin:5px auto; padding:10px; }
  16.   #midbar{ width:768px; height:600px; border:2px solid #ccccff; top:125px; left:0px; z-index:5; }
  17.   #bodyMain{ padding:15px; width:738px; border:1px solid #cccccc; top:0px; left:0px; }
  18.   #headBar{ width:768px; height:100px; top:0px; left:0px; background-color:#996600;}
  19. </style>
  20.  
  21. </head>
  22. <body>
  23.  
  24. <div id="mainpage">
  25.   <div id="headBar">
  26.     <h1>MY SITE LOGO</h1>
  27.   </div>
  28.   <div id="navMain">
  29.     <ul>
  30.       <li><a href="#">Link one</a></li>
  31.       <li><a href="#">Link one</a></li>
  32.       <li><a href="#">Link one</a></li>
  33.       <li><a href="#">Link one</a></li>
  34.       <li><a href="#">Link one</a></li>
  35.       <li><a href="#">Link one</a></li>
  36.     </ul>
  37.   </div>
  38.   <div id="midBar">
  39.     <div id="bodyMain">
  40.       <h2>Welcome?</h2>
  41.       Hello world, content goes here  content goes here content goes here content goes here content goes
  42.       here content goes here content goes here content goes here content goes here content goes here
  43.     </div>
  44.   </div>
  45. </div>
  46.  
  47. </body>
  48. </html>
Jan 28 '08 #2
Death Slaught
1,137 1GB
tcontridiction, please use proper code tags when posting your code.


Please refer to the link in my signature for the posting guidelines.

Thanks, Death
Jan 28 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jawahar Rajan | last post by:
All, I have an ASP site that uses frames two frames. (yes I should be using include files, but we started ou using frames so we have been stuck with frames.) When I get a page expired warning...
40
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
27
by: FL | last post by:
Hi Everyone, I know howto center a block using margin-left: auto ; margin-right: auto ; but I'm trying to center vertically a box, any idea to solve this?
1
by: dumblede | last post by:
Hello fellows, i would like to center a 800px wide 600px high content area without using frames. I have "come up" with the following solution so far. It works under IE 6.0, Firefox 1 (under...
3
by: Jennifer | last post by:
I have a page with three divs (top, left and center). I want to place hyperlinks in the left column (div), where each link calls a separate page. I want each separate page to open in the center...
25
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC...
7
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
56
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content....
14
by: Mark | last post by:
Hi Guys, I am very new to ASP.NET world. I need to create three frames. One at the top, one on the left and another on the right side. I don't know how to do it. So please help me with it. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.