473,699 Members | 2,531 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I center frames in center of page

1 New Member
it can be seen on my page at http://total-contradiction.c om/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">
<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="nores ize" id="leftFrame" title="leftFram e" />
<frameset rows="120,*" frameborder="no " border="0" framespacing="0 ">
<frame src="topbanner. html" name="topFrame" scrolling="No" noresize="nores ize" id="topFrame" title="topFrame " />
<frame src="welcome.ht ml" name="mainFrame " id="mainFrame" title="mainFram e" scrolling="no"/>
<frame src="indexmusic .html" name="Musicpage " id="Musicpage" title="Musicpag e" scrolling="no" />
Jan 16 '08 #1
2 3016
490 Recognized Expert Contributor
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>
  21. </head>
  22. <body>
  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>
  47. </body>
  48. </html>
Jan 28 '08 #2
Death Slaught
1,137 Top Contributor
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

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 (I am not caching pages) and a user clicks refresh from the menu bar the user is taken back to the home page! The home page is a frame with a top frame that is repeated on each subsequent asp pages
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
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?
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 Windows and Linux) but not under Konqueror (could not test Safari, but they have the rendering engine in common (see www.kde.org)): <pre>
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 div, leaving the contents of the other two divs unchanged. But I don't know how to set the "target" property to open in the center div. I would prefer to do this without using frames. Does anybody know how to set the "target" property of each...
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 "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head>
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?
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. Now i want to Disable ad Enable the menu items which are placed in the left frame for navigation purpose. Can any of you input me with any idea as how to proceed? If you need any other information then please let me know.
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. I'll appreciate any help/example you can provide. I am using visual studio 2005. Thanks, Mark
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.