Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Centering or Center Aligning the Search Bar
This topic contains 4 replies, has 2 voices, and was last updated by retreatdiscounter 8 years ago.
- AuthorPosts
- September 28, 2015 at 7:06 pm #6052
Hello,
I have been trying to set up the bar and looked on your knowledge base before writing, but haven’t been able to center the bar.
Is there a way of centering (align center) de search bar? Either through any of the options or with custom css?
Thanks so much for your help,
DanielSeptember 29, 2015 at 10:27 am #6057Hi!
Unfortunately there is no option for that, because it depends on the container element alignment as well.
I suggest trying the following custom CSS code, it works most of the time:
Best,.asp_main_container { margin: 0 auto !important; }
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 29, 2015 at 2:45 pm #6060Awesome, that worked perfectly!
Is there a way to add a margin below the search bar?
http://www.retreatdiscounter.com/home-test/ The content is right below the search bar, without no space.
Thanks so much in advance!
DanielSeptember 29, 2015 at 4:29 pm #6063Sure 🙂
Try modifying the code above to something like:
.asp_main_container { margin: 0 auto 26px auto !important }
..where the 26px is the bottom margin, you can change that to anything you want.
Also, if I may suggest another thing. I noticed that the theme is adding a bit of a box shadow inside the input field when focusing it. If you want to get rid of that light grey shadow, you can use this code:
Best,.probox .proinput input:focus { box-shadow: none !important; }
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 1, 2015 at 2:58 pm #6083That worked perfectly, thanks so much!
Daniel - AuthorPosts
You must be logged in to reply to this topic.