Reputation: 678
Im using Google Crome and I would set auto min-height
style in this button:
<button style="padding: 0; min-height: auto"
type="button"
class="btn btn-primary btn-block">
</button>
why auto doesnt work? 0 or 100% doesnt works to
Upvotes: 0
Views: 33
Reputation: 4364
as per my understanding u cant set min-height: auto
it has to be some integer like 10px or something
from this answer
CSS2.1 defines the initial value of min-height to be 0, not auto. The value auto never existed in CSS2.1, so it is invalid in CSS2.1. Just use min-height: 0 instead:
You can specify min-height using px, cm etc, or % or inherit
Upvotes: 1
Reputation: 155
auto
doesn't work for min-height You must specify the minimum height. although auto works for height
property
Upvotes: 1