 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
kwncy
Joined: 29 Jun 2009 Posts: 3
|
Posted: Mon Jun 29, 2009 6:11 am How to Center My Frames? |
|
|
|
Hi, Im no expert in Html and Css.
And I really NEED YOUR HELP.
HOW DO I CENTER my FRAMESET?
this page http://torturedexistence.co.cc/ looks right
on 1024 width but when you VIEW it on WIDE SCREEN its not centered.
please help me.
[/b] |
|
sticks464

Joined: 31 Dec 2006 Posts: 2311
|
Posted: Mon Jun 29, 2009 7:39 am |
|
|
|
You have to create blank pages with only a background color and put them on either side of your two frames.
frame.html
| Code: |
<!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" />
<link rel="SHORTCUT ICON" href="http://img81.imageshack.us/img81/1002/25711967.png"/>
<title>Quincy Alivio</title>
<style type="text/css">
<!--
body {
margin: 0;
padding: 0;
background:#000;
background-image: url("http://img150.imageshack.us/img150/9639/noscroll.jpg");
background-position: top center;
background-repeat: no-repeat;
}
-->
</style>
<link rel="SHORTCUT ICON" href="http://img81.imageshack.us/img81/1002/25711967.png"/>
</head>
<frameset cols="*,223,800,*" frameborder="0" border="0">
<frame src="leftframe.html" noresize="noresize" scrolling="no" />
<frame noresize="noresize" src="navi_bar.html" scrolling="no" id="navframe" />
<frame noresize="noresize" src="body_bar.html" scrolling="no" id="mainframe" />
<frame src="rightframe.html" scrolling="no" noresize="noresize" />
</frameset>
<noframes>
<body bgcolor="#000000">
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes></html> |
leftframe.html
| Code: |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Left Frame</title>
<style type="text/css">
body {background:#000;}
</style>
</head>
<body>
</body>
</html> |
rightframe.html
| Code: |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Right Frame</title>
<style type="text/css">
body {background:#000;}
</style>
</head>
<body>
</body>
</html> |
|
|
kwncy
Joined: 29 Jun 2009 Posts: 3
|
Posted: Mon Jun 29, 2009 7:53 am |
|
|
|
| sticks464 wrote: |
You have to create blank pages with only a background color and put them on either side of your two frames.
|
so ill just make the rightframe and leftframe? |
|
kwncy
Joined: 29 Jun 2009 Posts: 3
|
Posted: Mon Jun 29, 2009 7:56 am |
|
|
|
| sticks464 wrote: |
You have to create blank pages with only a background color and put them on either side of your two frames.
|
I did it already but when i click the
links on my nav_bar.html
it will open on a new window not on body_bar.html
help i really have no idea about it, |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|