What am I doing wrong? Need some CSS help!
-
On one of my blogs I want to display some of my categories with a drop down categories. I have done so using this code
<form id="categories" action="<?php bloginfo('url'); ?>/" method="get"> <?php $select = wp_dropdown_categories('show_option_none=**Reviews by Genre**&include=15,17&show_count=1&orderby=name&echo=0'); $select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select); echo $select; ?> <noscript><input type="submit" value="View" /></noscript> </form>
I am now trying to style it with CSS and am using this CSS to do that.
form.categories { text-align: left; padding-right: 10px; background: #F7F7F7; border: 1px solid #F2D6D3; width: 170px;}
My problem is that it’s not working. When I refresh the screen nothing happens. Am I missing something in my code? I’m positive I have everything correct. Help would be greatly appreciated.
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘What am I doing wrong? Need some CSS help!’ is closed to new replies.