-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Way to fit column to content? #1012
Comments
Could you possibly share a fiddle or a small demo? |
Is the issue still open? I would like to take it up if that is the case. |
Looks like we were looking for more information about the use case before decide to implement it or not. |
Bootstrap has a edit: the |
Example with bootstrap: https://jsfiddle.net/pgoLkz38/1/ <style>
div {
border: 1px solid black;
}
</style>
<nav class="row">
<div class="col-2">
a
</div>
<div class="col-2">
b
</div>
<div class="col">
c
</div>
<div class="col-auto">
dddd
</div>
</nav> |
https://bulma.io/documentation/columns/sizes/#narrow-column .column {
display: block;
flex-basis: 0;
flex-grow: 1;/* This is a point. */
flex-shrink: 1;
}
.column.is-narrow {
flex: none;/* This is a point. */
width: unset;/* This is a point. */
} |
Bulma has
is-narrow
CSS class to fit a column to its content, and then the other columns autosize.It would be great if Pure could have this too. Because Bulma breaks too many other things sadly.
The text was updated successfully, but these errors were encountered: