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

card-columns class not rendering properly in Chrome #26814

Closed
pisukes opened this issue Jul 6, 2018 · 4 comments
Closed

card-columns class not rendering properly in Chrome #26814

pisukes opened this issue Jul 6, 2018 · 4 comments

Comments

@pisukes
Copy link

pisukes commented Jul 6, 2018

Card-Columns does not render properly in Chrome.

The attached code intends to achieve:

  • Two column layout for viewport width between 0 and 575px
  • Three column layout for viewport width between 576 and 767px
  • Four column layout for viewport width between 768 and 1199px
  • Six column layout for viewport width greater than 1199px.
    (Refer to the attached file to see the tested code: card-columns.zip)

The uploaded html file renders as expected in Firefox, IE11 and Edge.

The following issues appear when testing in Chrome:
1 Cards truncated across columns with viewport width between 330px and 575px. Note that the right column top card reading "Bottom" and the left column bottom card reading "Top" are truncated (Figure 1.1); in the 575px width view the problem repeats, in addition the right edge of the left column is not adequately rendered as all the borders disappear (Figure 1.2).
2 Four and six column layouts do not render. Note that column layout is kept at three no matter the width of the viewport. (Figures 2.1 and 2.2)

1 1

1 2

2 1

2 2

@jl-welch
Copy link

jl-welch commented Jul 7, 2018

This is an issue specific to the example file you downloaded.

.card-columns .card {  
  /*column-break-inside: avoid;*/  
  /*display: inline-block;*/  
  /* width: 100%; */  
}

These styles aren't being applied however you can still see them in the styles tab within the developer tools.

@mdo
Copy link
Member

mdo commented Jul 8, 2018

Closing per latest comment, and due to incomplete issue (missing live example, no Bootstrap version specified, no browser version specified).

@mdo mdo closed this as completed Jul 8, 2018
@pisukes
Copy link
Author

pisukes commented Jul 8, 2018

Software versions:
https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css
Firefox 61.0 64-bit
Chrome 63.0.3239.108 (Official Build) (64-bit)

Living example:
https://jsfiddle.net/eavbjfw9/
This example has class .card-columns .card as follows

.card-columns .card {  
  /*column-break-inside: avoid;*/  
  /*display: inline-block;*/  
  /* width: 100%; */  
}

Firefox renders as expected, but Chrome renders as described in my original post.
If the comments in ".card-columns .card" are removed, the div truncation is solved in Chrome. However, the four and six column layout depending on viewport size still doesn't work.

@AlonsoK28
Copy link

Software versions:
https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css
Firefox 61.0 64-bit
Chrome 63.0.3239.108 (Official Build) (64-bit)

Living example:
https://jsfiddle.net/eavbjfw9/
This example has class .card-columns .card as follows

.card-columns .card {  
  /*column-break-inside: avoid;*/  
  /*display: inline-block;*/  
  /* width: 100%; */  
}

Firefox renders as expected, but Chrome renders as described in my original post.
If the comments in ".card-columns .card" are removed, the div truncation is solved in Chrome. However, the four and six column layout depending on viewport size still doesn't work.

Works great for me 😋

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

No branches or pull requests

4 participants