See https://www.w3schools.com/code/tryit.asp?filename=GIV8DWOCV2HP
-
<!DOCTYPE html>
-
<html>
-
<style>
-
.rjmgridlayout {
-
display: grid;
-
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
-
grid-gap: 2rem;
-
padding: 2rem;
-
}
-
-
.rjmgriditem {
-
border-style: solid;
-
border-width: thick;
-
padding: 1rem;
-
background-color: lightblue;
-
}
-
</style>
-
<body>
-
<main class="wrapper">
-
<div class="rjmgridlayout">
-
<div class="rjmgriditem">
-
SOME TEXT 001
-
</div>
-
<div class="rjmgriditem">
-
SOME TEXT 002SOME TEXT 002SOME TEXT 002SOME TEXT 002SOME TEXT 002SOME TEXT 002SOME TEXT 002
-
</div>
-
<div class="rjmgriditem">
-
SOME TEXT 003
-
</div>
-
<div class="rjmgriditem">
-
SOME TEXT ...
-
</div>
-
<div class="rjmgriditem">
-
SOME TEXT ................. .......... dsfdsf dsf dsf df dsf ffe fe..............LONG
-
</div>
-
<div class="rjmgriditem">
-
SOME TEXT ...
-
</div>
-
<div class="rjmgriditem">
-
SOME TEXT ...
-
</div>
-
</div>
-
</main>
-
-
-
</body>
-
</html>
RJM Article Type
Work Notes