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

Strange CSS :after effect in card columns #19725

Closed
itsMattShull opened this issue Apr 12, 2016 · 3 comments
Closed

Strange CSS :after effect in card columns #19725

itsMattShull opened this issue Apr 12, 2016 · 3 comments

Comments

@itsMattShull
Copy link

I'm using Bootstrap 4 masonry card layout for a project and inside that project I have a <select> that has custom styles. Part of the custom styles is a caret made with CSS using :after. Different browsers give me different results and I wanted to post it here in case someone had a solution. I'm not sure if this is a Bootstrap issue or a CSS spec issue so maybe someone could shed light there too.

Here's a demo: http://codepen.io/derekshull/pen/GZQaRY

  • Chrome Canary: everything looks fine
  • Chrome: the first column looks fine but any columns after the first look bad, unless you go to mobile (where I have it set to only 1 column), then it shows up fine there. It's only if there are more than 1 columns.
  • Firefox: everything is fine
  • Safari: the first column appears but any columns after the first one the caret AND the text don't appear.
@cvrebert
Copy link
Collaborator

Safari: the first column appears but any columns after the first one the caret AND the text don't appear.

WebKit Nightly matches Chrome Canary, so it's already been fixed; just need to wait for Safari to ship a new version.

@cvrebert
Copy link
Collaborator

Closing since this involves custom CSS and since the browser bugs have already been fixed in bleeding-edge browser versions.
If you're looking for a workaround in the mean time, you can ask on StackOverflow/IRC/Slack; see https://github.com/twbs/bootstrap/blob/master/README.md#community for links.

@itsMattShull
Copy link
Author

Taking out overflow:hidden; made it work on all browsers for some odd reason.

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

2 participants