MyBB.de Forum

Normale Version: Suche in Header
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Seiten: 1 2 3
Versuch mal den Code:

Code:
<a name="top" id="top"></a>
    <div id="container">
        <div id="header">
            <div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" /></a></div>
<div id="mainMenu" class="mainMenu">
<div style="float:right;">
<form method="post" action="search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="showresults" value="threads" />
<input name="keywords" type="text" class="textbox" value="" size="20" maxlength="250"/>
<input type="submit" class="button" name="submit" value="Suchen" />
</form>
</div>    
                                <div class="menu">
                <ul>
                    <li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.gif" alt="" />{$lang->toplinks_search}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" />{$lang->toplinks_memberlist}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.gif" alt="" />{$lang->toplinks_calendar}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.gif" alt="" />{$lang->toplinks_help}</a>&nbsp;</li>
                </ul>
                                </div>
                          <hr class="hidden" />
            <div id="panel">
                {$welcomeblock}
            </div>
        </div>
        <hr class="hidden" />
        <br class="clear" />
        <div id="content">
            {$bannedwarning}
            {$bbclosedwarning}
            {$unreadreports}
            <navigation>
            {$board_messages}
            <br class="clear" />
Jawohl das wars!!

Dankeschön
Code:
<center><div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" /></a></div></center><br>
<div id="mainMenu" class="mainMenu">

<div style="float:right;">

<form method="post" action="search.php">

<input type="hidden" name="action" value="do_search" />

<input name="keywords" type="text" class="textbox" value="" size="20" maxlength="250"/>

<input type="submit" class="button" name="submit" value="Suchen" />

</form>
</div>
<div class="menu">
<ul>
<li><a href="http://www.url.de"><img src="{$theme['imgdir']}/toplinks/startseite.gif" alt="Startseite" />URL.de</a></li>
<li><a href="http://url.mainchat.de"target=blank_><img src="{$theme['imgdir']}/chat.gif" alt="Chat" />Chat</a></li>
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" />{$lang->toplinks_search}</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" />{$lang->toplinks_memberlist}</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" />{$lang->toplinks_calendar}</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" />{$lang->toplinks_help}</a></li>
<li><a href="{$mybb->settings['bburl']}/links.php"><img src="{$theme['imgdir']}/toplinks/links.gif" alt="" />Links</a></li>
<li><a href="{$mybb->settings['bburl']}/downloads.php"><img src="{$theme['imgdir']}/toplinks/downloads.png" alt="" />Downloads</a></li>
                </ul>
<br>    
            </div>

Mein Menü ist nicht ganz zentriert, sondern ein wenig nach links verschoben, woran liegt das denn?
Ich kenne dein CSS nicht, aber du benutzt zwei DIVs in der gleichen Zeile, wobei ein DIV normalerweise über die ganze Breite geht. Ein Link dazu könnte helfen.
Seiten: 1 2 3