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
Empty <dd> tags mis-aligns <dd> that follow #6707
Labels
Comments
This is a common problem of using floats without any content to float against—the content below it will wrap up and there is no easy way to fix it other than a clearfix on an immediate parent. Since there is no parent around each |
Closed
stempler
pushed a commit
to stempler/bootstrap
that referenced
this issue
Apr 11, 2014
Instead of clearing the entire `.dl-horizontal`, we've moved the clearfix mixin to the `dd` level to solve two problems in one: empty `dd`s mid-list, and empty `dd` as the last child. Addresses a few old issues, including twbs#2824, twbs#3819, twbs#3821, twbs#4062, twbs#6707, and twbs#7180. Sorry that took so long :D.
stempler
pushed a commit
to stempler/bootstrap
that referenced
this issue
Nov 4, 2014
Instead of clearing the entire `.dl-horizontal`, we've moved the clearfix mixin to the `dd` level to solve two problems in one: empty `dd`s mid-list, and empty `dd` as the last child. Addresses a few old issues, including twbs#2824, twbs#3819, twbs#3821, twbs#4062, twbs#6707, and twbs#7180. Sorry that took so long :D.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When an empty or self-closing <dd> tag is used in a horizontal <dl>, the <dd> tags following it are mis-aligned with the matching <dt> tags.
Here is a jsFiddle: http://jsfiddle.net/xjQX3/
In the above example, "Description 3" will sit beside "Title 2". It should sit beside "Title 3". If the <dl> is not horizontal, then they appear as expected.
The text was updated successfully, but these errors were encountered: