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

Align description lists with grid #11639

Closed
webmozart opened this issue Nov 28, 2013 · 2 comments
Closed

Align description lists with grid #11639

webmozart opened this issue Nov 28, 2013 · 2 comments

Comments

@webmozart
Copy link

It would be great if it was possible to align description lists with the grid system. I have a description list and below a grid and I would like the left and right columns to match.

The columns currently don't match, because:

  • dt has a fixed width of 160px
  • grid columns have dynamic widths
  • dd has a fixed left padding of 20px
  • grid columns have a padding of 30px by default
Some text

<dt> item 1 | <dd> Description
<dt> item 2 | <dd> Description
<dt> item 3 | <dd> Description

Horizontal form, using a 3:9 grid

Field 1 label  | Field 1
Field 2 label  | Field 2
Field 3 label  | Field 3

            ^--^
 both the column start and the
 column padding are different
@mdo
Copy link
Member

mdo commented Dec 15, 2013

Realistically this isn't something we can do until v4 when we can safely rewrite the component to support only those definition lists.

@mdo mdo closed this as completed Dec 15, 2013
@christopheg
Copy link

maybe this is an alternative:

<div class="row">
  <div class="col-lg-X"><strong>DEFINITION_TERM</strong></div>
  <div class="col-lg-Y">DEFINITION_NAME</div>
</div>

Semantically this is off course not the same as a <dl>, but it will have the requested behaviour.

@mdo mdo mentioned this issue Aug 19, 2015
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

3 participants