Seite 1 von 1

Brauche Hilfe bei html: Logo zentriert und Tabelle kleiner..

Verfasst: 06.07.2006 15:10
von AnimalFriends
Vorweg: Ich habe ein phpBB 2.0.21 mit Portal+Intro.

Es geht um meinen Header. Ich möchte gern, dass das Logo zentriert angeordnet ist. Ich weiss, dass man dafür "align=center" oder <center>TEXT</center> dafür anwendet. Jedoch funzt es nicht!

Wie bekomme ich das Logo mittig?


Und noch etwas anderes....
Ich hätte gern die Tabelle des Forum kleiner. Sprich, dass das Forum einfach schmäler ist. Das kann man ja in % angeben. Nur wo mache ich das?

Vielen Dank. :)

Hier ein Auszug aus der overall_header.tpl:

Code: Alles auswählen

<?xml version="1.0" encoding="{S_CONTENT_ENCODING}"?>
<!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" 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" />
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/fisubice/{T_HEAD_STYLESHEET}" type="text/css" />
<!-- BEGIN switch_enable_pm_popup -->
<script type="text/javascript">
<!--
	if ( {PRIVATE_MESSAGE_NEW_FLAG} )
	{
		window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
	}
//-->
</script>
<!-- END switch_enable_pm_popup -->
</head>
<body>
<a name="top" id="top"></a>
<table class="bodyline" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<table class="topbkg" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr> 
<td><a href="{U_INDEX}"><img src="templates/fisubice/images/phpbb2_logo.jpg" border="0" alt="{L_INDEX}" title="{L_INDEX}" /></a></td>
<td align="center" width="100%">&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr> 
<td align="center" class="topnav">&nbsp;<a href="{U_FAQ}">{L_FAQ}</a>&nbsp; •&nbsp; <a href="{U_SEARCH}">{L_SEARCH}</a>
&nbsp;• &nbsp;<a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a>&nbsp; • 
&nbsp;<a href="{U_GROUP_CP}">{L_USERGROUPS}</a>
<!-- BEGIN switch_user_logged_out -->
&nbsp; • &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a>
<!-- END switch_user_logged_out -->
&nbsp;• &nbsp;<a href="{U_PROFILE}">{L_PROFILE}</a>&nbsp; • &nbsp;<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>&nbsp; 
• &nbsp;<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td>

Verfasst: 06.07.2006 17:32
von S2B
Logo zentrieren:
Finde:

Code: Alles auswählen

<td><a href="{U_INDEX}"><img src="templates/fisubice/images/phpbb2_logo.jpg" border="0" alt="{L_INDEX}" title="{L_INDEX}" /></a></td>
<td align="center" width="100%">&nbsp;</td> 
Ersetze mit:

Code: Alles auswählen

<td align="center"><a href="{U_INDEX}"><img src="templates/fisubice/images/phpbb2_logo.jpg" border="0" alt="{L_INDEX}" title="{L_INDEX}" /></a></td>
Forum "schmäler" und zentriert:
Finde:

Code: Alles auswählen

<table class="bodyline" width="100%" cellspacing="0" cellpadding="0" border="0">
Ersetze mit:

Code: Alles auswählen

<table class="bodyline" width="90%" cellspacing="0" cellpadding="0" align="center" border="0">
Natürlich kannst du die 90% durch jede beliebige Angabe ersetzen. :wink: