compatibility with css grids
-
Hello, I was trying to include a piece of Html code to my page where I used some CSS grids but I noticed that when I wrote the CSS custom code I got an error message saying that it was an unkonwn operator.
Are CSS grids supported with this theme?
Why do I get that error?
Thank you so much! -
-
using the html, tool in the gridder I added this piece of code:
<div class="container">
<div class="box image">
<a href="some url"><img src="some pic"></a>
</div>
<div class="box description"><p>Some text</p></div>
</div>then in the custom CSS section I added this code:
.contenitore{
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: auto;
grid-column-gap: 1em;
grid-row-gap: 1em;
grid-gap: 1em;
grid-auto-rows: minmax(100px, auto);
}
.box{
align-self: center;
justify-self: start;
}
.description{
font-size: 50px;
grid-column: 1/3;
z-index: 1;
padding: 1em;
text-align: center;
vertical-align: middle;
grid-row:1/1;
display: none;
}
.image{
grid-column: 2/3;
grid-row:1/1;but I got an error here "grid-template-columns: 1fr 1fr 1fr;"
and warnings for the other lines saying "unknown property grid template rows" etc. -
Dear @beshepappà
can you rewrite the code that you do not use this?
grid-template-columns: 1fr 1fr 1fr;Best!
Marius
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login