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

.dl-horizontal dt/dd widths don't match grid #11232

Closed
ericscheid opened this issue Oct 25, 2013 · 1 comment
Closed

.dl-horizontal dt/dd widths don't match grid #11232

ericscheid opened this issue Oct 25, 2013 · 1 comment
Labels
Milestone

Comments

@ericscheid
Copy link

(Consider this a feature request)

This is most obvious when I do something simple like this:

<dl>
  <dt>Your name</dt>
  <dd>Eric</dd>
  <dt>Timezone</dt>
  <dd>Australia/Sydney</dd>
  <dt>Created</dt>
  <dd>Sunday, 23-Sep-12 22:46:40 UTC</dd>
</dl>
<div class="col-md-offset-2">
  <a class="btn btn-default" href="edit">Edit your details</a>
  <a class="btn btn-default" href="logout">Logout</a>
</div>

1200 breakpoint:
image

992 breakpoint:
image

768 breakpoint:
image

I've got the result I want by doing the following in my site css (but this only works right with full width containers)

@media (min-width: 768px) {
  .dl-horizontal dt {
    width: 90px;
    }
  .dl-horizontal dd {
    margin-left: 111px;
    padding-left: 15px !important;
    }
}
@media (min-width: 992px) {
  .dl-horizontal dt {
    width: 126px;
    }
  .dl-horizontal dd {
    margin-left: 146px;
    }
}
@media (min-width: 1200px) {
  .dl-horizontal dt {
    width: 160px;
    }
  .dl-horizontal dd {
    margin-left: 180px;
    }
}
@cvrebert
Copy link
Collaborator

Duplicate of #11639.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants