Forums › Forums › Search & Filter Pro › Styling the Forms
- This topic has 8 replies, 2 voices, and was last updated 5 years, 8 months ago by Anonymous.
-
Anonymous(Private) February 28, 2019 at 9:21 pm #203620
Hi I have a search form on my home page that is just the search box. I would like to make that 100% width and add some background styling and button styling changes and increase the overall font size, etc. Is there documentation on how to style the search forms to match your site?
Trevor(Private) March 1, 2019 at 9:56 am #203645There is no documentation, sorry. If you are able to send me a live link/URL to your search page so I can take a look, then I could make some suggestions as to what the custom CSS might need to look like.
If you could also provide a link (use an image sharing site like cloudup) to an image (an annotated screenshot) showing what you plan in the context of your web site, that would help.
Anonymous(Private) March 1, 2019 at 2:18 pm #203718Thanks for your reply. The link is http://wherethunext.504mediasolutions.com. The first search box is for Search and Filter plugin. The 2nd one is a module within my theme thats styled like I wish search and filter to look.
Thanks!
Trevor(Private) March 1, 2019 at 2:47 pm #203728Something like this:
.searchandfilter li.sf-field-search label { width: 100%; } .searchandfilter > ul { border-radius: 3px; padding: 0 !important; } .searchandfilter li.sf-field-search { padding: 0; max-width: 100%; } .searchandfilter li.sf-field-search input::placeholder { color: #fff; } .searchandfilter li.sf-field-search input { color: rgb(102, 102, 102); text-shadow: rgb(12, 113, 195) 0px 2.2px 2.2px; text-transform: uppercase; width: 100%; background: rgb(25, 229, 135); border: 0; font-size: 22px; padding: 15.73px 122px 15.73px 15.73px; }
But I can’t seem to get the border-radius to work.
Trevor(Private) March 4, 2019 at 5:01 pm #203861The CSS above now becomes:
.searchandfilter li.sf-field-search label { width: 100%; } .searchandfilter > ul { border-radius: 3px; padding: 0 !important; } .searchandfilter li.sf-field-search { padding: 0; width: calc(100% - 112.73px); } .searchandfilter li.sf-field-search input::placeholder { color: #fff; } .searchandfilter li.sf-field-search input { color: rgb(102, 102, 102); text-shadow: rgb(12, 113, 195) 0px 2.2px 2.2px; text-transform: uppercase; width: 100%; background: rgb(25, 229, 135); border: 0; font-size: 22px; padding: 15.73px 122px 15.73px 15.73px; } .searchandfilter .sf-field-submit input { color: #fff; cursor: pointer; position: absolute; right: 0px; text-shadow: rgba(0, 0, 0, 0.4) 0px 2px 2px; text-transform: uppercase; top: 0px; background: #0c71c3; border: none; font-size: 20px; padding: 17.6px 14.7px; }
-
AuthorPosts