How can I remove remove bullets from @Html.ValidationSummary()
in MVC4. Any suggestions?
<span class="help-block" style="list-style-type: none;">
@Html.ValidationSummary()
</span>
Given that your comment describes your code like this:
<span class="help-block">
@Html.ValidationSummary()
</span>
You can set the CSS property list-style-type
to none
on the ul
element which the ValidationSummary
generates. Try this:
.help-block ul {
list-style-type: none;
}
.validation-summary-errors ul {
list-style: none;
margin-left:-40px
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With