jatinder bhola jatinder bhola - 1 year ago 343
CSS Question

How can I modify the md-input-container in angularJS

I am working on designing a form with angularJS. I am facing this issue from a long time. Whenever I use a text field (md-input-container) and drop down (md-select), this causes a height difference.

When I inspect the code, I find out that the md-input-container has an extra md-error div tag.

Please check this pic

I want to get rid of this div tag

<div class="md-errors-spacer"></div>
. Any suggestion?

Thank you

Answer Source

You could do something like .hide-validation-error .md-errors-spacer { display: none; }, and then you would just need to add the class hide-validation-error to any of the <md-input-container>'s that you know won't need validation.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download