Bootstrap: [v4] <hr> not visible in Cards

Created on 9 Jul 2017  路  2Comments  路  Source: twbs/bootstrap

When adding an <hr> inside a .card, the line does not appear. I believe this may be a bug.

The only way I found to make it appear, is by adding width: 100%; to the <hr>. But this doesn't seem like an intended feature.

css has-pr v4

Most helpful comment

I did some research on this and found this:
https://stackoverflow.com/questions/34365271/hr-inside-container-with-display-flex-become-corrupted/34372979#34372979

Adding some margin left and right seems to fix this issue.

We can either add margin-left:0; and margin-right:0; or margin-left:1rem; and margin-right:1rem;

@mdo I would like to fix this.

All 2 comments

Note for future me or someone who wants to fix this鈥攑robably the flex styles interfering.

I did some research on this and found this:
https://stackoverflow.com/questions/34365271/hr-inside-container-with-display-flex-become-corrupted/34372979#34372979

Adding some margin left and right seems to fix this issue.

We can either add margin-left:0; and margin-right:0; or margin-left:1rem; and margin-right:1rem;

@mdo I would like to fix this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

knownasilya picture knownasilya  路  3Comments

matsava picture matsava  路  3Comments

athimannil picture athimannil  路  3Comments

ziyi2 picture ziyi2  路  3Comments

fohlsom picture fohlsom  路  3Comments