Community Forums › Forums › Archived Forums › Design Tips and Tricks › Winning Agent Search Bar CSS
Tagged: child theme, css, padding, search bar, winning agent
- This topic has 3 replies, 2 voices, and was last updated 12 years, 1 month ago by
Tonya.
-
AuthorPosts
-
September 10, 2014 at 11:23 pm #123868
eeennnstan
MemberHi, I am trying to get my site's search bar to look like the demo site's search bar (http://my.studiopress.com/themes/winning-agent/#demo-full.
However, no matter what I try I can't successfully add padding to the <select> elements to make them jumbo size like they are on the demo. I've compared CSS between the two and can't see where I'm going wrong.
Thanks a bunch for assistance!
http://iswebsolutions.com/labs/montgomeryandcoSeptember 11, 2014 at 2:00 am #123886Tonya
MemberHi,
The select size is actually determined by the content within the options themselves. On the demo, click on the select and see how the window is sized to the longest item in the dropdown list.
With that being said, you can force a width by doing this on line 2643 of your style.css file:
#property-search-2 select{min-width: 150px;}I picked a random number of pixels. You can also target the individual select element by doing select#price for the price one for example.
Cheers,
Tonya
Software & Electrical Engineer and Programming Teacher · I’m on a mission to help developers be more awesome.
Find Me: KnowTheCode.io | @hellofromTonya | Profitable WordPress Developer BootcampSeptember 17, 2014 at 11:34 pm #124855eeennnstan
MemberTonya, thanks so much for the reply!!
I'm sorry but I messed up on the link that I sent. The design I want to replicate is actually at http://my.studiopress.com/themes/agentpress/#demo-full (I thought this was what I was purchasing but I guess not..).
Anyway, if you see they have uniquely styled dropdown menus. I checked the CSS but couldn't see where the styling is for this and haven't seen dropdowns like this before.
Thanks for your help (and patience with me 🙂
September 18, 2014 at 1:11 pm #124943Tonya
MemberAhha that helps. If you are editing directly in your style.css file, then follow along with these changes:
1. Go to line 2643 and comment out lines 2643 through 2647 as follows:
/* #property-search-2 select{width: auto !important;} #property-search-2 form{/*background-color:#339933;*/} #property-search-2 select.agentpress-taxonomy{margin: 0 10px;} #property-search-2 form#searchform{text-align:center;padding: 25px 0;} */2. At the end of the file, insert these styles:
#property-search-2 input, #property-search-2 select { border: medium none; margin: 5px; width: 23.375%; -webkit-appearance: none; }Cheers,
Tonya
Software & Electrical Engineer and Programming Teacher · I’m on a mission to help developers be more awesome.
Find Me: KnowTheCode.io | @hellofromTonya | Profitable WordPress Developer Bootcamp -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.