Very basic, silly questions - Positioning a Search box.

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
Sarmorrow
Forum Members
Forum Members
Posts: 26
Joined: Sun May 23, 2010 2:04 pm

Very basic, silly questions - Positioning a Search box.

Post 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
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am

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

Post by Ziggywigged »

You can customize using CSS and the form template under Extension > Search.
I like chocolate.
Take a penny, leave a penny.
User avatar
Sarmorrow
Forum Members
Forum Members
Posts: 26
Joined: Sun May 23, 2010 2:04 pm

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

Post by Sarmorrow »

OK, I found that, virtual choc cake if you can tell me what to add in the template...
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am

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

Post 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>
Take a penny, leave a penny.
User avatar
Sarmorrow
Forum Members
Forum Members
Posts: 26
Joined: Sun May 23, 2010 2:04 pm

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

Post 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.
Post Reply

Return to “Layout and Design (CSS & HTML)”