Page 1 of 1

Very basic, silly questions - Positioning a Search box.

Posted: Fri Jul 23, 2010 9:32 am
by Sarmorrow
This is the silliest question yet...
I've installed the search box module on my site (Ethics Trading) Look, there it is under the menu, on the left and working fine!

But I want it on the right... At the mo the {search} tag is sitting in the template sop the search box is on all pages. I'm assuming there's a little, very simple, bit of code that will make it go on the right?

Anyone care to share it?
Thank folks, I'll send virtual cake...
Sarah

Re: Very basic, silly questions - Positioning a Search box.

Posted: Fri Jul 23, 2010 10:39 am
by Ziggywigged
You can customize using CSS and the form template under Extension > Search.
I like chocolate.

Re: Very basic, silly questions - Positioning a Search box.

Posted: Fri Jul 23, 2010 11:25 am
by Sarmorrow
OK, I found that, virtual choc cake if you can tell me what to add in the template...

Re: Very basic, silly questions - Positioning a Search box.

Posted: Fri Jul 23, 2010 11:38 am
by Ziggywigged
Sounds like you should read up on CSS.
But you can try something like:

Code: Select all

<div style="float:right">
{$startform}

    <label for="{$search_actionid}searchinput">{$searchprompt}: </label><input type="text" class="search-input" id="{$search_actionid}searchinput" name="{$search_actionid}searchinput" size="20" maxlength="50" value="{$searchtext}" {$hogan}/><input class="search-button" name="submit" value="{$submittext}" type="submit" />
{if isset($hidden)}{$hidden}{/if}

{$endform}
</div>

Re: Very basic, silly questions - Positioning a Search box.

Posted: Fri Jul 23, 2010 11:42 am
by Sarmorrow
That puts it on the right hand side, thanks. But it messes up the layout underneath.
I'm learning, slowly, and yes I could do with reading up on it a bit more.

Virtual choc cake for your help.