Jak ustawić header na środku

0

Witam

Podczas prac natknąłem się na kolejny problem, który mam nadzieję, pomożecie mi rozwiązać, otóż:
Wgrałem styl i wszystko jest z nim OK, poza jedną rzeczą: górna część (tj. header wszystkie odnośniki górnego menu itp) są przysunięte do lewej krawędzi monitora, podczas gdy pozostała część strony stoi na środku tak jak powinna.

Jak to zmienic? Który plik edytować?

0

nie pamiętam ale chyba over_header.tpl czy jakoś tak plik się nazywał, zapewne masz błąd ze znacznikiem table czy div ale jak byś podał link to strony powiedział bym więcej...

0

overall_header.tpl, tak, w starym phpBB, ale skąd masz pewność, że mowa o phpBB 2.x?

edit: ah, tak, w innym temacie o phpBB by przemo pisał.

0

www.ganjaskill.pl
Header jest dociągnięty do lewej strony

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <LINK REL="SHORTCUT ICON" HREF="templates/Abreo_LoteQ/images/favoicon.png" />
  {META_DESC}
  {META}
  <title>{SITENAME} - {PAGE_TITLE}</title>
  <link rel="stylesheet" href="templates/Abreo_LoteQ/{T_HEAD_STYLESHEET}" type="text/css">
	<script language="Javascript" type="text/javascript">
	<!--
	var factive_color = '{T_ACTIVE_COLOR}';
	var faonmouse_color = '{T_ONMOUSE_COLOR}';
	var faonmouse2_color = '{T_ONMOUSE2_COLOR}';
	var l_empty_message = '{L_EMPTY_MESSAGE}';
	var no_text_selected = '{L_NO_TEXT_SELECTED}';
	var cname = '{UNIQUE_COOKIE_NAME}';
	var cpath = '{COOKIE_PATH}';
	var cdomain = '{COOKIE_DOMAIN}';
	var csecure = '{COOKIE_SECURE}';
	<!-- BEGIN switch_enable_pm_popup -->
	if ( {PRIVATE_MESSAGE_NEW_FLAG} )
	{
		window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225, resizable=yes, WIDTH=400');
	}
	<!-- END switch_enable_pm_popup -->
	<!-- BEGIN switch_report_popup -->
	report = window.open('{switch_report_popup.U_REPORT_POPUP}', '_phpbbreport', 'HEIGHT={switch_report_popup.S_HEIGHT}, resizable=yes, scrollbars=yes, WIDTH={switch_report_popup.S_WIDTH}');
	report.focus();
	<!-- END switch_report_popup -->
	<!-- BEGIN switch_enable_greeting_popup -->
	var greeting_flag = {GREETING_FLAG};
	if ( greeting_flag )
	{
		window.open('{U_GREETING_POPUP}', '_phpbbprivmsg', 'HEIGHT=225, resizable=yes, WIDTH=400');
	}
	<!-- END switch_enable_greeting_popup -->
	//-->
	</script>
	<script language="JavaScript" type="text/javascript" src="images/jsscripts.js"></script>
	<!-- BEGIN overlib -->
	<script language="JavaScript" type="text/javascript" src="templates/{STYLE_NAME}/overlib.js"><!-- overLIB (c) Erik Bosrup --></script>
	<!-- END overlib -->
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobjstr, opt_position){
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)?   

-(subobj.offsetWidth-curobj.offsetWidth) : 0)
var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)?

curobj.offsetHeight : 0)
subobj.style.left=xpos+"px"
subobj.style.top=ypos+"px"
return false
}
else
return true
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}

// ]]></script>
<script type="text/javascript" src="templates/Abreo_LoteQ/menu.js"></script>
</head>
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" onload="focus_field('focus');">
<!-- BEGIN body_with_loading -->
<script language="Javascript" type="text/javascript">
<!--
	document.write('<div id="hidepage" style="position: absolute; left:0px; top:0px; height: 100%; width: 100%; background-color: {T_BODY_BGCOLOR}; layer-background-color: {T_BODY_BGCOLOR};"><table width="100%" style="height: 100%"><tr><td align="center" valign="middle"><table width="50%" align="center" style="border: 1px solid {T_BODY_LINK}, solid"><tr><td align="center" class="row1"><span class="genmed"><br /><b>{L_PAGE_LOAD_PLEASE_WAIT}<br /><br /><img src="images/loading.gif" alt=""><br /><br />{PAGE_LOADING_STOP}<br />&nbsp;<\/span><\/td><\/tr><\/table><\/td><\/tr><\/table><\/div>');
//-->
</script>
<!-- END body_with_loading -->
<!-- BEGIN body_without_loading -->
<!-- END body_without_loading -->
<!-- BEGIN overlib -->
<div id="overDiv" style="position:absolute; visibility:hidden; filter: alpha(opacity=85); -moz-opacity: 0.85; z-index: 10"></div>
<!-- END overlib -->
<!-- BEGIN advert -->
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
	<tr>
		<td valign="top">
<!-- END advert -->

<!-- BEGIN forum_thin -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="{forum_thin.WIDTH_COLOR_1}">
<tr>
<td align="center">
<table width="{forum_thin.WIDTH_TABLE}" border="0" bgcolor="{forum_thin.WIDTH_COLOR_2}" cellpadding="0" cellspacing="{forum_thin.TABLE_BORDER}">
<tr>
<td align="center">
<!-- END forum_thin -->
<a name="top"></a>{ROTATE_BANNER_1}
<!-- BEGIN header -->
<div class="header">
</div>
<div id="menu">

<a href="index.php" title="Strona Główna" class="home"></a>
<a href="memberlist.php" title="Uzytkownicy" class="user"></a>
<a href="staff.php" title="Administracja" class="staff"></a>
<a href="faq.php" title="FAQ" class="faq"></a>
<a href="statistics.php" title="Statystyki" class="stat"></a>
<a href="#" title="Reklama" class="bans"></a>


</div>
<!-- END header -->
<table width="80%" cellspacing="0" cellpadding="7" border="0" align="center">
   <tr>
      <td class="bodyline">
<!--[if lt IE 8]><a href=http://browsehappy.pl/infobar>
Internet Explorer nie potrafi poprawnie wy¶wietlić tej strony. Kliknij tutaj, aby dowiedzieć się więcej...</a> Do przegl±dania forum polecamy przegl±darki <a href="http://www.mozilla-europe.org/pl/firefox/"><font color="#0392cd">Mozilla Firefox</font></a> oraz <a href="http://operapl.net/"><font color="#0392cd">Opera</font></a>.<![endif]-->
	  {FORUM_WARNINGS}
         {ROTATE_BANNER_2}{BANNER_TOP}
         
         
		<!-- BEGIN simple_header -->
		<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
			<tr>
				<th>{SITENAME}</th>
			</tr>
			<tr>
				<td class="cat" align="center">
					<!-- BEGIN switch_user_logged_in -->
					&bull; <a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a> &bull; <a href="{U_SEARCH}" class="mainmenu">{L_SEARCH}</a> &bull; <a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a> &bull; <a href="{U_GROUP_CP}" class="mainmenu">{L_USERGROUPS}</a>
					<!-- BEGIN statistics -->
					&bull; <a href="{U_STAT}" class="mainmenu">{L_STATISTICS}</a>
					<!-- END statistics -->
					<!-- BEGIN download -->
					&bull; <a href="{U_DOWNLOADS}" class="mainmenu">{L_DOWNLOADS}</a>
					<!-- END download -->
					&bull; <a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a> &bull; <a href="{U_PRIVATEMSGS}" class="mainmenu">{PRIVATE_MESSAGE_INFO}</a> &bull; <a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a>
					<!-- BEGIN album -->
					&bull; <a href="{U_ALBUM}" class="mainmenu">{L_ALBUM}</a>
					<!-- END album -->
					<!-- BEGIN chat -->
					&bull; <a href="{S_JOIN_CHAT}" target="_blank"class="mainmenu">Chat</a>
					<!-- END chat -->
					<!-- END switch_user_logged_in -->
					<!-- BEGIN switch_user_logged_out -->
					&bull; <a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a>
					&bull; <a href="{U_SEARCH}" class="mainmenu">{L_SEARCH}</a> &bull; <a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a> &bull; <a href="{U_GROUP_CP}" class="mainmenu">{L_USERGROUPS}</a>
					<!-- BEGIN statistics -->
					&bull; <a href="{U_STAT}" class="mainmenu">{L_STATISTICS}</a>
					<!-- END statistics -->
					&bull; <a href="{U_REGISTER}" class="mainmenu">{L_REGISTER}</a> &bull; <a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a>
					<!-- BEGIN album -->
					&bull; <a href="{U_ALBUM}" class="mainmenu">{L_ALBUM}</a>
					<!-- END album -->
					<!-- BEGIN chat -->
					&bull; <a href="{S_JOIN_CHAT}" target="_blank"class="mainmenu">Chat</a>
					<!-- END chat -->
					<!-- BEGIN download -->
					&bull; <a href="{U_DOWNLOADS}" class="mainmenu">{L_DOWNLOADS}</a>
					<!-- END download -->
					<!-- END switch_user_logged_out -->
					<!-- BEGIN switch_report_list -->
					&bull; <a href="{switch_report_list.U_REPORT_LIST}" class="mainmenu">{switch_report_list.L_REPORT_LIST}</a>
					<!-- END switch_report_list -->
					&bull;
				</span></td>
            </tr>
         </table>
         <!-- END simple_header -->
		 <table style="width: 100%; text-align: center; font-family: Calibri, Arial, Helvetica, sans-serif" class="borderwrap2">
<th width="100%" class="thCornerL" style="cursor: pointer; height: 25px;" nowrap="nowrap" colspan="5">&nbsp;Serwery cs-4Strike &nbsp;</th></tr>
<tr style="font-weight: bold;">
<td class="row2">Nazwa serwera</td>
<td class="row2">Monitoring</td>
<td class="row2">IP</td>
<td class="row2">Rodzaj</td>
<td class="row2">Sloty</td>
</tr>
<tr>
<td class="row2"><font color="white"> CS-4STRIKE.PL</font></td>
<td class="row2"><img src="http://cache.www.gametracker.com/server_info/91.199.22.41:27046/b_350x20_CFFAD41-E98100-000000-591F11.png"</img></td>
<td class="row2"><font color="lime"><b>91.199.22.41:27046</b></font></td>
<td class="row2"><font color="#0da1ff">S/NS</font></td>
<td class="row2"><font color="yellow">15</font></td>
</tr>


<!-- koniec serwery --> 
      {ROTATE_BANNER_3}
      <!-- BEGIN switch_enable_board_msg --> 
	  <div id="hm" style="display: ''; position: relative;">
      <table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center">
        <tr> 
         <th class="thCornerL" height="25" nowrap="nowrap" onclick="javascript:ShowHide('hm','hm2','hm3');" style="cursor: pointer" title="{L_VHIDE}">&nbsp;{L_BOARD_MSG}&nbsp;</th>
        </tr>
        <tr>
         <td class="row1"><span class="gen">{BOARD_MSG}</span></td>
        </tr>
      </table>
	</div>
	<div id="hm2" style="display: none; position: relative;">
	<table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center">
	  <tr> 
	   <th class="thCornerL" height="25" nowrap="nowrap" onclick="javascript:ShowHide('hm','hm2','hm3');" style="cursor: pointer">&nbsp;{L_BOARD_MSG}&nbsp;</th>
	  </tr>
	</table>
	</div>
	<script language="javascript" type="text/javascript">
	<!--
	if(GetCookie('hm3') == '2') ShowHide('hm', 'hm2', 'hm3');
	//-->
	</script>
	<!-- END switch_enable_board_msg -->
0

ten arkusz jest r**y ładnie mówiąc ;]
zobacz na validator strony
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.ganjaskill.pl%2F

a tak poza tym to

<a name="top"></a><div class="header">
</div>
<div id="menu">

<a href="index.php" title="Strona Główna" class="home"></a>
<a href="memberlist.php" title="Uzytkownicy" class="user"></a>
<a href="staff.php" title="Administracja" class="staff"></a>
<a href="faq.php" title="FAQ" class="faq"></a>
<a href="statistics.php" title="Statystyki" class="stat"></a>
<a href="#" title="Reklama" class="bans"></a>


</div>

powinno być po gdzieś po tym

<table align="center" width="80%" border="0" cellpadding="7" cellspacing="0">
ale nie powiem ci dokładnie ;] nie mam całości żeby sprawdzić poprawność

0

ooo... :O
No faktycznie mocno, że tak powiem ładnie zniszczony :D

1 użytkowników online, w tym zalogowanych: 0, gości: 1