I have this html:
<div>
<input class="orderrow-1" type="text"></input>
<input class="orderrow-2" type="text"></input>
</div>
and this css:
input[class^='orderrow-']
{
border: 1px solid #e2e2e2;
color: #333;
font-size: 1em;
margin: 5px 5px 6px 0px;
padding: 5px;
width: 100px;
text-align: right;
}
I try to style all input fields with a class that begins with 'orderrow-' but above doesn't work. Any suggestions?
Edit: Sorry, above does work. The problem is that I have two casses. Like this:
<div>
<input class="trigger orderrow-1" type="text"></input>
<input class="trigger orderrow-2" type="text"></input>
</div>
The selector doesn't work when there is something before orderrow-1. Ideas?