MyBB.de Forum
Suche in Header - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Theme-Diskussionen (https://www.mybb.de/forum/forum-84.html)
+--- Thema: Suche in Header (/thread-9227.html)

Seiten: Seiten: 1 2 3


RE: Suche in Header - Murphy - 21.04.2009

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" />



RE: Suche in Header - Lambert - 21.04.2009

Jawohl das wars!!

Dankeschön


RE: Suche in Header - happyspeedy - 06.09.2010

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?


RE: Suche in Header - Michael - 06.09.2010

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.