Any idea why this is placing all items in the top right corner ?
if i put the
grid-template-areas:
". . title title . ."
". . server server . ."
". . who who . ."
". . toWho toWho . ."
". . what what . .";
It works fines, however i want to add some icons to the first div (one in the left side and other in the right side). So i did created two more columns for that purpose but when adding them into the grid-template-areas they place all items in the top right corner. Any idea what i am doing wrong here ?
Thanks in advance
* {
margin: 0;
padding: 0;
}
.paper {
display: grid;
grid-template-columns: 1fr 40px 200px 200px 40px 1fr;
grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
grid-template-areas:
". logo title title server ."
". server server server server ."
". who who who who ."
". toWho toWho toWho toWho ."
". what what what what .";
}
.paper div {
border-width: 5px;
border-color: black;
border: double;
}
/* https://www.youtube.com/watch?v=HgwCeNVPlo0 */
.server {
grid-area: server;
}
.title {
grid-area: title;
}
.logo {
grid-area: logo;
}
.who {
grid-area: who;
}
.what {
grid-area: what;
}
.toWho {
grid-area: toWho;
}
<body>
<div class="paper">
<div class="server">server</div>
<div class="title">titleText</div>
<div class="logo">logo</div>
<div class="who">who</div>
<div class="what">what</div>
<div class="toWho">toWho</div>
</div>
</body>