-
Notifications
You must be signed in to change notification settings - Fork 145
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
-equalHeight does not work properly #85
Comments
Hello @thomasoldenburger |
Hello @devlint Very interesting. I did make a codepen and everything seems to work well in the codepen. When I want use it in my projects is doesn't seem to work. I tried the most basic setup and it is still not working. Am I doing something wrong here? Basic project |
<div class="welcome-cards grid-4-center-equalHeight">
<div class="col">
<div class="grid-1">
<div class="col-top">
<h6>Riparazioni</h6>
</div>
<div class="col-middle">
<img src="{% webpack_static 'images/icons/calzolaio.svg' %}" alt="riparazioni">
</div>
<div class="col-bottom">
<button type="button" name="button">scopri</button>
</div>
</div>
</div>
<div class="col">
<h6>Duplicazione Chiavi</h6>
<figure>
<img src="{% webpack_static 'images/icons/chiave.svg' %}" alt="riparazioni">
</figure>
<button type="button" name="button">scopri</button>
</div>
<div class="col">
<h6>Duplicazione Chiavi Auto</h6>
<figure>
<img src="{% webpack_static 'images/icons/chiave-auto.svg' %}" alt="riparazioni">
</figure>
<button type="button" name="button">scopri</button>
</div>
<div class="col">
<h6>Duplicazione Radiocomandi</h6>
<figure>
<img src="{% webpack_static 'images/icons/radiocomando.svg' %}" alt="riparazioni">
</figure>
<button type="button" name="button">scopri</button>
</div>
[...]
</div> In the first col there is a new grid and equalHeight doesn't touch that grid. Children of the other cols inherit the parent height. By inspecting [class*="grid-"][class*="-equalHeight"] > [class~="col"] > *, [class*="grid-"][class*="-equalHeight"] > [class*="col-"] > *, [class*="grid-"][class*="-equalHeight"] > [class*="col_"] > * {
height: 100%;
} I had to override this rule setting all col's children elements to |
Adding extra items in the
<div class="col">
within agrid-equalHeight
does not seem to work. The content will become 100VH somehow.This is working:
This is NOT working:
The text was updated successfully, but these errors were encountered: