generally i used to bootstrap for frontend design.. i am using css grid layout since about half year. i did not face any problem like before or i did not think this way
i read some article to find out how exactly grid-row: 1 / -1 work or it's behaviour .. maybe be i skip it... maybe it's a bad question or already answer here
.grid-container > div.item span { grid-row: 1 / -1 ; not working }
not working...
note:
- grid-row: 1 / span number.. will not solve the problem. (undefined number of paragraph tag).
- if i write grid-row: 1 / 99999 .. a higher number . it will solve my problem.. maybe it's baad practice...
- grid-row: 1 / -1. not working...
need clear explanation of it's behaviour or reliable source doc
.grid-container {
display: grid;
grid-template-columns: repeat(2,1fr) ;
grid-gap: 10px;
background-color: #2196F3;
padding: 10px;
animation: mymove 5s infinite;
}
.grid-container > div.item {
display: grid;
grid-template-columns: max-content 1fr ;
background-color: rgba(255, 255, 255, 0.8);
text-align: center;
padding: 20px 0;
font-size: 30px;
}
.grid-container > div.item span {
/* grid-row: 1 / -1 ; not working */
grid-row: 1 / 99999;
}
<div class="grid-container">
<div class="item">
<span style="writing-mode: vertical-rl;">Tex</span>
<h4 style>Title</h4>
<p>Pargraph</p>
<p>Pargraph</p>
</div>
<div class="item">
<span style="writing-mode: vertical-rl;"> Tex</span>
<h4>Title</h4>
<p>Pargraph</p>
<p>Pargraph</p>
<p>Pargraph</p>
</div>
</div>