On a ".cshtml" web page I have several labels declaring the form-horizontal class and the control-label class. By default, these classes align right in my project, ie .. implement the text-align: right property, but I need to change the value of this property to only two cases, and I'm not getting, has no effect.
What I've already tried:
CSS
.form-horizontal .control-label .text-left{
text-align: left !important;
}
LABEL
<div class="col-md-6">
@Html.LabelFor(x => x.observacoes, "Observações Internas:", new { @class = "control-label text-left" })
</div>
I have also tried assigning ID and using "#" in the CSS class, without success and assigning directly to the component's Html attributes, even with "! important" but did not work.