https://i.sstatic.net/LVsgQ.jpgCurrently working on constructing a biography page filled with text content, and I aim to utilize CSS GRID instead of floats. I encountered an issue in getting the text to occupy all the available white space within the layout. I have attached an image to illustrate the desired outcome and highlight the problem for better understanding. If anyone has a solution or suggestion, please feel free to share.
In showcasing my preference for filling the white space with text, I intentionally placed two elements at the same position using span tags as a visual aid.
I welcome alternative examples and methods that demonstrate effective ways to achieve full text coverage within the given white space.
.bio-content {
display: grid;
margin-top: 10rem;
grid-template-columns: 3fr;
grid-template-rows: 3fr;
}
.bio-content .info-img {
margin-left: 1.5rem;
grid-column: 1/2;
grid-row: 1/2;
}
.bio-content .biography,
.bio-content biography2 {
margin-left: 2rem;
margin-bottom: 0rem;
line-height: 30px;
color: white;
border-left: none;
padding: 0 1rem;
}
.bio-content .biography {
grid-column: 2/4;
grid-row: 1/4;
}
.bio-content .biography2 {
grid-column: 1/4;
grid-row: 3/4;
}
.bio-content table {
grid-row: 2/3;
grid-column: 1/2;
}
/* G-CYR : I added bg to see white text */
body {background:gray;}
<main id="bio">
<div class="container">
<div class="bio-content">
<div class="info-img">
<img src="/Core/img/bio.jpg" alt="">
<table>
<tr>
<td>NAME:</td>
<td>LAZAR ANGELOV</td>
</tr>
<tr>
<td>HEIGHT:</td>
<td>6"0(180 CM)</td>
</tr>
<tr>
<td>WEIGHT:</td>
<td>195 LBS(88 KG)</td>
</tr>
<tr>
<td>DATE OF BIRTH:</td>
<td>SEPTEMBER 22ND, 1984</td>
</tr>
<tr>
<td>BIRTHPLACE:</td>
<td>SOFIA,BULGARIA</td>
</tr>
</table>
</div>
<div class="biography">
<h1>Biography</h1>
<p>Before becoming a bodybuilder and a personal point guards of his class. At the age of 16 he bodies.</p>
<p> He dedicated his life to bodybuilding and since Lazar dominates other bodybuilders with balanced physique and incredible definition.</p>
</div>
<div class="biography2">
<p>
<p>He owns some of the best abs in the world. As a personal trainer he has been able to transform the chance to receive everything needed for reaching the maximum physical potential without using steroids.</p>
</div>
</div>
</div>
</main>
UPDATE Attempted to tweak the grid row by adjusting the .biography2 to grid-row:4/4; but it did not produce the desired result. Kindly refer to the latest image provided where there is still some remaining white space below the imagehttps://i.sstatic.net/MiJXE.png