4 Replies - 610 Views - Last Post: 24 December 2009 - 01:37 AM

#1 seansmythe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 23-December 09

Creating Center Frame

Post icon  Posted 23 December 2009 - 05:38 PM

Ok folks I am a complete newbie with 5 days experience, I've managed to get my site looking almost exactly how I want it too except I can't get a center from to go in between my nav bar and footer. I dont wanna disturb how they look right now because they are just perfect..so is there a way to do this. Here is my 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" />
<meta name="clothing" />
<meta name="sportsware" />
<meta name="entropy" />
<meta name="entropy pr"/>
<meta name="apparel" />
<meta name="swim wear" />
<meta name="t-shirts" />
<title>::Official eNTROPY Website-Home Page::</title>
<style type="text/css">
<!--
body {
	background-color: #FFF;
}
-->
</style>
<link href="layout.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

</script>
</head>

<body onload="MM_preloadImages('home.png','threads.png','events.png','info.png','fans.png')">
<div id="wrapper">
  <div id="logonav"><img src="logo.png" width="273" height="133" alt="logo" longdesc="http://entropy-pr.com" /><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home','','home.png',1)"><img src="home9.png" name="home" width="152" height="85" border="0" id="home" /></a><a href="threads.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('threads','','threads.png',1)"><img src="threads8.png" name="threads" width="172" height="78" border="0" id="threads" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('events','','events.png',1)"><img src="events8.png" name="events" width="172" height="86" border="0" id="events" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('fans','','fans.png',1)"><img src="fans8.png" name="fans" width="124" height="90" border="0" id="fans" /></a><a href="http://www.facebook.com/group.php?gid=200447623339&amp;ref=ts#/pages/Entropy/203684376717?ref=nf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('info','','info.png',1)"><img src="info8.png" name="info" width="111" height="95" border="0" id="info" /></a></div>
  <div id="splash"><img src="splash.jpg" width="1024" height="548" alt="splash" /></div>
  <div id="footer"></div>
</div>
</body>
</html>



thanks in advanced.

Is This A Good Question/Topic? 0
  • +

Replies To: Creating Center Frame

#2 felixtgomezjr  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 68
  • Joined: 04-November 09

Re: Creating Center Frame

Posted 24 December 2009 - 12:30 AM

just put another div with align equal to center
Was This Post Helpful? 0
  • +
  • -

#3 seansmythe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 23-December 09

Re: Creating Center Frame

Posted 24 December 2009 - 12:37 AM

Where should I put the div? in between the header and footer?
Was This Post Helpful? 0
  • +
  • -

#4 calebjonasson  Icon User is offline

  • $bert = new DragonUnicorn(); $bert->rawr();
  • member icon

Reputation: 209
  • View blog
  • Posts: 989
  • Joined: 28-February 09

Re: Creating Center Frame

Posted 24 December 2009 - 01:17 AM

<div id="wrapper">
<div id="header"></div>
<div id="maincontent"></div>
<div id="footer"></div>
</div>


Something like this is what you are after.
Was This Post Helpful? 0
  • +
  • -

#5 felixtgomezjr  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 68
  • Joined: 04-November 09

Re: Creating Center Frame

Posted 24 December 2009 - 01:37 AM

View PostMs.needlove, on 10 Dec, 2009 - 04:38 PM, said:

hospital management system project in vb and oracle using adodb.



View Postseansmythe, on 23 Dec, 2009 - 11:37 PM, said:

Where should I put the div? in between the header and footer?


Just before your footer.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1