Skip to content

How to enforce ".wa-grid" not to wrap containers? #178

Discussion options

You must be logged in to vote

Hi @HovKlan-DH!

To clarify, you need every element with a class of showBorder on the same line?
If so, that’s actually the default behavior of the gap utilities, which you would place on the parent element (the same one you've used wa-grid on). E.g. assuming you want a medium gap:

<div class="wa-gap-m">
    <div class="showBorder"></div>
    <div class="showBorder"></div>
    <div class="showBorder"></div>
    <div class="showBorder"></div>
    <div class="showBorder"></div>
    <div class="showBorder"></div>
</div>

Also, I find it a little confusing that something is a class while others are DOM elements? E.g. why isn't this grid here a <wa-grid> element, and why is <wa-avatar> not "jus…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@HovKlan-DH
Comment options

@LeaVerou
Comment options

Answer selected by HovKlan-DH
Comment options

You must be logged in to vote
1 reply
@HovKlan-DH
Comment options

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