Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Site search - layout

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1602 Views
  • valentino
    Avatar
    Community Member
    2 Posts

    Site search - layout Link to this post

    Hi all,

    I'm new to SS and web programming....so excuse if this sounds like a simple question.

    I've implemented the site search function on my site, yet I've found that the 'go' button sits beneath the textfield. I can't seem to change the position of the 'go' button relative to the 'search' textfield.

    so far, I've created a header <h2> in html ($SearchForm) and can change the positioning of the entire searchform from the layout css file. But I cant change the position of the 'go' button on its own.

    can someone please assist and put me on the right track.
    Cheers,

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Site search - layout Link to this post

    The go button will have a class on it or a ID. You can use this in your layout.css or form.css (since its a form element) to target that button.

    I suggest using firebug to select the element and find out its ID or Class otherwise action buttons (like go, submit) automatically have a .action class attached to them so you can go #SearchForm input.action and apply styles to just the action button.

  • valentino
    Avatar
    Community Member
    2 Posts

    Re: Site search - layout Link to this post

    Thanks Will - that worked!

    1602 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.