News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

How to put the Search bar in the Navigation Bar?

Started by IDunc, June 13, 2011, 06:32:34 PM

Previous topic - Next topic

Sir Osis of Liver


Try this one.  It's your template with my edits added.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

IDunc

Perfect! Well.... not quite. Could you possibly center the searchbox horizontally?


Sir Osis of Liver


You mean centered between the menubar and the right edge?  That'll look crappy, because the width of the menubar is different if user is logged in or guest, so the search widget will change position.  It should be floated right, where it belongs.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

IDunc

No, I mean centered between the top and bottom of the navigation bar, keeping it to the right where it belongs.

http://mwheadquarters.co.cc/index.php

Look, it's as far down as it can I go. I want to raise it to the center.


Sir Osis of Liver


It's centered vertically in my 2.0 install.  I'll take another look.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

#25

I see it centered in IE and FF, but not on your forum.  The formatting is in /css/index.css -

#search {   float: right;   margin: 10px 0 0 0;   padding-right: 10px;   height: 28px;   width: 214px;   background: url(../images/custom/search.png) 0 0 no-repeat;   overflow: hidden;}

Margins are - top, left, right, bottom.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

IDunc

Wow clearing the cache seems to fix all my problems  :P

Sorry about that. Thank you for having patients with me. I really appreciate all the help!

I have another question that involves some very simple coding, or at least I hope it's very simple, but I will PM you tomorrow as it's late here.


Advertisement: