-
Notifications
You must be signed in to change notification settings - Fork 172
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
remove margin / offset so grid elements are full width of container #123
Comments
Hi! No prob at all :) The columns should already take the whole container width. There are a few cases where this may not happen, for example if you add the <ul class="grid">
<li class="col grid">
<div class="col-6"></div>
</li>
</ul>
<!-- do this instead 👇 -->
<ul class="grid">
<li class="col">
<ul class="grid">
<li class="col-6"></li>
</ul>
</li>
</ul> In general, you can try adding an empty |
thanks, almost, but maybe this image example will explain it better. It only happens when I use grid-gap https://drive.google.com/file/d/12GxpH9Zp18xm-U5eIsufk6NDoVc3qs7Z/view?usp=sharing |
Can you show the grid code in this example? |
it's grid gap that causes the issue and I found that the fix that seems to work is changing -1 to -0.75 .grid-gap-md, .grid-gap--md { btw, I'm on v2.93 |
I'm sorry if this is such as noob question as to make you facepalm, but......
Say I have a bunch of columns within a grid - how can I remove the left margin of the ones in the left column and make the items fill the container they are in?
I don't mean make each column 100% width, but basically increase the container width to allow for the margins / offset.
Does that makes sense?
thanks :)
The text was updated successfully, but these errors were encountered: