Text im gleichen Abstand Anzeigen

Started by MorpheusR, January 03, 2007, 01:12:20 PM

Previous topic - Next topic

MorpheusR

Hallo,

Ich hab ein Problem mit meiner Menü-Bar. Der Text ist bei mir in unregelmäßigen Abständen angeordnet (siehe Bild 1).
Das sieht wirklich total bescheuert aus  >:(
Ich hätte gerne dass der Text regelmäßig Angeordnet ist (siehe Bild 2).

Kann mir jemand helfen?

Hier noch der relevante Code für die Menü-Bar:
// Show the start of the tab section.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>';

// Show the [home] button.
echo '
<td class="main-navigation"><b><a href="', $scripturl, '">' , $txt[103] , '</a></b></td>';

// Show the [help] button.
echo '
<td class="main-navigation"><b><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></b></td>';

// How about the [search] button?
if ($context['allow_search'])
echo '
<td class="main-navigation"><b><a href="', $scripturl, '?action=search" onClick="return overlay(this, \'subcontent\',\'bottom\')">' , $txt[182] , '<img src="', $settings['images_url'], '/search_down.gif" width="10" height="10" /></a></b>
<!--Do not remove outer most DIV tag with id="subcontent"-->
<DIV id="subcontent" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 210px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">Schnellsuche</td>
</tr>
<tr>
<td height="26" align="left" valign="middle" class="windowbg">
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
<input type="text" name="search" value="" style="width: 150px;" />&nbsp;
<input type="submit" name="submit" value="Suchen" />
<input type="hidden" name="advanced" value="0" />';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form></td>
</tr>
<tr>
<td height="20" align="center" valign="middle" class="windowbg"><a href="', $scripturl, '?action=search;advanced">Erweiterte Suche</a></td>
</tr>
</table>
<div align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\'subcontent\'); return false">[Schliessen]</a></div>

</DIV>
</td>';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<td class="main-navigation"><b><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></b></td>';

// The [calendar]!
if ($context['allow_calendar'])
echo '
<td class="main-navigation"><b><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</b></a></td>';

echo '
       <td class="main-navigation"><b><a href="', $scripturl, '?action=staff">' , Team , '</a></b></td>';

// the [member] list button
if ($context['allow_memberlist'])
echo '
<td class="main-navigation"><b><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></b></td>';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '
<td class="main-navigation"><b><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></b></td>';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '
<td class="main-navigation"><b><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></b></td>';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '
<td class="main-navigation"><b><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></b></td>';

// How about the [quick links] button?
if ($context['user']['is_logged'])
echo '
<td class="main-navigation"><b><a href="', $scripturl, '#quicklinks" onClick="return overlay(this, \'quicklinks\',\'bottomright\')">Nützliches<img src="', $settings['images_url'], '/search_down.gif" width="10" height="10" /></a></b>
<!--Do not remove outer most DIV tag with id="quicklinks"-->
<DIV id="quicklinks" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 150px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">Nützliches</td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a href="', $scripturl, '?action=unread">Ungelesen</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a href="', $scripturl, '?action=unreadreplies">Neue Antworten</a></td>
</tr>
<tr>
<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">Profil</td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a href="', $scripturl, '?action=profile">Profil Anzeigen</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a href="', $scripturl, '?action=profile;u=', $context['user']['id'], ';sa=account">Profil-Einst.</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a href="', $scripturl, '?action=profile;u=', $context['user']['id'], ';sa=forumProfile">Profil editieren</a></td>
</tr>
<tr>
<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">PN-Center</td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a href="', $scripturl, '?action=pm">Kontrollzentrum</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a href="', $scripturl, '?action=pm;sa=send">Neue PN</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a href="', $scripturl, '?action=pm;f=outbox">Postausgang</a></td>
</tr>
</table>
<div align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\'quicklinks\'); return false">[Schliessen]</a></div>

</DIV>
</td>';

// The end of tab section.



Dankeschön schonmal für die mühen.

Greetz,
MorpheusR

Dom

Hi MorpheusR,
du könntest bei deinen Spalten eine gewisse breite angeben. hier mal als Beispiel.
<td width="30px" class="main-navigation"><b><a href="', $scripturl, '">' , $txt[103] , '</a></b></td>';                                                                     
Natürlich kann es sein, daß du dann hinten einen sehr langen leere Platz hast.

mfg Dom :)
Ich benutze SMF 1.1.8  mit MKPortal M1.1.2b zusammen.

www.soessen.de.vu

dieter4

padding für jede Zelle ist evtl. eine Lösung.

MorpheusR

Danke für die Tipps, ich werde es mal ausprobieren :)

MFG
MorpheusR

Advertisement: