Seite mit Layern znetrieren...

sbkbros

Mitglied
Seite mit Layern zentrieren...

ICh habe meine Seite mit Layern aufgebaut.
Leider habe ich das Problem das ich die Seite jetzt nicht znetrieren kann...

habe schon alles versucht ...
das ganze in eine Tabelle und dann zu znetirieren funktioniert nicht!

Die layer alle mit align="center" geht auch nicht .....

Die bleiben alle linksbündig! ...

Hat jemand vorschläge?
 
Zuletzt bearbeitet:
PHP:
<body bgcolor="#CCCCCC" alink="#00FF00" onLoad="MM_preloadImages('Buttons/ButtonTeam2.gif','ButtonHome2.gif','home2.gif','team2.gif','foto2.gif','videos2.gif','forum2.gif','Gb2.gif','links2.gif')">
<div id="Layer11" style="position:absolute; width:264px; height:537px; z-index:12; left: 772px; top: 263px;">
  <table width="263" height="526" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td><?php include("shoutbox.php");?>&nbsp;</td>
    </tr>
  </table>
</div>
<table width="1024" border="1" bordercolor="#333333">
  <tr>
    <th scope="col"><img src="banner.gif" width="1024" height="175"></th>
  </tr>
</table>
<p>&nbsp;</p>
<div id="Layer3" style="position:absolute; overflow: auto; width:750px; height:406px; z-index:22; top: 229px; left: 10px;"><?php 
switch($section){ 
case "news": include("news.php"); break; 
case "team": include("team.php"); break;
case "links": include("links.php"); break; 
case "shoutall": include("shoutall.php"); break; 
case "fotos": include("fotos.php"); break;
//case "hm": include("fotos.php"); break;
//case "hmm": include("images.php"); break;
case "Guestbook": include("gbook.php"); break; 
case "Guestbookw": include("gbookw.php"); break; 
case "videos": include("videos.php"); break;
default: include("news.php"); break;
} 

if($page=="hm")
{
include("fotos.php");
}
elseif($page=="hmm")
{
include("images.php");
}
?></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="Layer5" style="position:absolute; width:284px; height:410px; z-index:6; left: 761px; top: 227px;"><img src="tableshoutbox.gif" width="287" height="582"></div>
<div id="Layer6" style="position:absolute; width:92px; height:21px; z-index:7; left: 867px; top: 237px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; font-style: italic;">Shoutbox</div>
<p>&nbsp;</p>
<div id="Layer4" style="position:absolute; width:363px; height:170px; z-index:23; top: 637px; left: 10px;">
  <table width="363" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><?php include("showroom.php");?>&nbsp;</td>
    </tr>
  </table>
</div>
Reicht das ...?

Ich würde jetzt die ganze Seite zentrieren wenn es möglich ist!
 
PHP:
<div id="Layer11" style="position:absolute; width:264px; height:537px; z-index:12; left: 772px; top: 263px;" align="center">

also mit align habe ich es auch schon versucht funkt nicht...
 
PHP:
<body bgcolor="#CCCCCC" alink="#00FF00" onLoad="MM_preloadImages('Buttons/ButtonTeam2.gif','ButtonHome2.gif','home2.gif','team2.gif','foto2.gif','videos2.gif','forum2.gif','Gb2.gif','links2.gif')">
<div id="Layer11" style="position:absolute; width:264px; height:537px; z-index:12; left: 772px; top: 263px;">
  <table width="263" height="526" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td><?php include("shoutbox.php");?>&nbsp;</td>
    </tr>
  </table>
</div>
<table width="1024" border="1" bordercolor="#333333">
  <tr>
    <th scope="col"><img src="banner.gif" width="1024" height="175"></th>
  </tr>
</table>
<p>&nbsp;</p>
<div id="Layer3" style="position:absolute; overflow: auto; width:750px; height:406px; z-index:22; top: 229px; left: 10px;"><?php 
switch($section){ 
case "news": include("news.php"); break; 
case "team": include("team.php"); break;
case "links": include("links.php"); break; 
case "shoutall": include("shoutall.php"); break; 
case "fotos": include("fotos.php"); break;
//case "hm": include("fotos.php"); break;
//case "hmm": include("images.php"); break;
case "Guestbook": include("gbook.php"); break; 
case "Guestbookw": include("gbookw.php"); break; 
case "videos": include("videos.php"); break;
default: include("news.php"); break;
} 

if($page=="hm")
{
include("fotos.php");
}
elseif($page=="hmm")
{
include("images.php");
}
?></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="Layer5" style="position:absolute; width:284px; height:410px; z-index:6; left: 761px; top: 227px;"><img src="tableshoutbox.gif" width="287" height="582"></div>
<div id="Layer6" style="position:absolute; width:92px; height:21px; z-index:7; left: 867px; top: 237px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; font-style: italic;">Shoutbox</div>
<p>&nbsp;</p>
<div id="Layer4" style="position:absolute; width:363px; height:170px; z-index:23; top: 637px; left: 10px;">
  <table width="363" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><?php include("showroom.php");?>&nbsp;</td>
    </tr>
  </table>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="Layer7" style="position:absolute; width:363px; height:170px; z-index:24; top: 637px; left: 380px;">
  <table width="363" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><?php include("picoftheweek.php");?>&nbsp;</td>
    </tr>
  </table>
</div>
<p>&nbsp;</p>
<div id="Layer1" style="position:absolute; width:1033px; height:28px; z-index:1; left: 10px; top: 201px;"><img src="navigationbar.gif" width="1032" height="25"></div>
<div id="Layer2" style="position:absolute; width:659px; height:22px; z-index:2; left: 203px; top: 203px;"><a href="index.php?section=news" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Home','','ButtonHome2.gif',1)"> </a><a href="index.php?section=home" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','home2.gif',1)"><img src="home1.gif" name="home" width="90" height="22" border="0"> </a><a href="index.php?section=team" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Team','','team2.gif',1)"><img src="team1.gif" name="Team" width="90" height="22" border="0"> </a><a href="index.php?section=fotos" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Foto','','foto2.gif',1)"><img src="foto1.gif" name="Foto" width="90" height="22" border="0"> </a><a href="index.php?section=videos" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('videos','','videos2.gif',1)"><img src="VIDEOS1.gif" name="videos" width="90" height="22" border="0"> </a><a href="Forum/phpBB2/" TARGET="_blank" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Forum','','forum2.gif',1)"><img src="FORUM1.gif" name="Forum" width="90" height="22" border="0"> </a><a href="index.php?section=Guestbook" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('GB','','Gb2.gif',1)"><img src="gb1.gif" name="GB" width="90" height="22" border="0"> </a><a href="index.php?section=links" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('links','','links2.gif',1)"><img src="links1.gif" name="links" width="90" height="22" border="0"></a></div>
<div id="Layer20" style="position:absolute; width:124px; height:21px; z-index:21; left: 912px; top: 175px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #FFFFFF;">Visits: <?php
include("counter.php");
?></div>
</body>

Hier nochmal die Seite von <body> ....</body>
 
Zurück