Thread Starter
dvmac
(@dvmac)
Forgive me, I’m still editing my local version. This is what has been output:
<div id="secondary" class="span3 sigwell pull-right">
<div id="search-2" class="widget widget_search">
<form>edited</form>
</div>
</div>
And here is a rule to target it:
#search-2 .widget .widget_search {display:block;background-color:red;padding:.5em;}
That’s because that isn’t valid in your case.
You should use something like this:
#secondary .widget_search {display:block;background-color:red;padding:.5em;}
It works like this:
.parent-div-selector .selector-you-want-style {
property: value;
}
And in your case, CSS is looking first for ID secondary then element inside that ID with class widgetand then class widget_search.
Your CSS will only work in following case:
<div id="secondary" class="span3 sigwell pull-right">
<div id="search-2">
<div class="widget">
<div class="widget_search">
<form>edited</form>
</div>
</div>
</div>
</div>