Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.form-control-static changes height when empty #15691

Closed
end-user opened this issue Jan 28, 2015 · 0 comments
Closed

.form-control-static changes height when empty #15691

end-user opened this issue Jan 28, 2015 · 0 comments

Comments

@end-user
Copy link

Shouldn't a form-group maintain the same height if an element is empty?

<div class="form-group">
  <label class="col-md-2 control-label">Case Id</label>
  <div class="col-md-5">
    <p class="form-control-static"></p>
  </div>
</div>

capture

should generate the same resulting box model as

<div class="form-group">
  <label class="col-md-2 control-label">Case Id</label>
  <div class="col-md-5">
    <p class="form-control-static">1</p>
  </div>
</div>

capture1

This has the consequence of shifting lower elements down.

@cvrebert cvrebert added the css label Jan 28, 2015
@cvrebert cvrebert changed the title empty form-control-static block changes height uniformity .form-control-static changes height when empty Jan 28, 2015
cvrebert added a commit that referenced this issue Feb 19, 2015
Fix #15691: .form-control-static changes height when empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants