I want to merge "Text" to the other column under the "Picture"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>grid</title>
<style>
body{
margin: 0;
}
.container {
width: 100vw;
height: 100vh;
font-family: 'Quicksand', sans-serif;
font-weight: bold;
display: grid;
grid-template-columns: 0.5fr 1fr;
grid-template-rows: 50px 1fr 1fr 100px;
gap: 10px;
padding: 10px;
box-sizing: border-box;
}
.container div {
border: 1px solid black;
}
.header {
grid-column-start: 1;
grid-column-end: 3;
}
.text {
grid-row-start: 2;
grid-row-end: 4;
grid-column-start: 2;
grid-column-end: 3;
}
</style>
</head>
<body>
<div class="container">
<div class="header">Header</div>
<div class="pic">Picture</div>
<div class="text">Text </div>
</div>
</body>
</html>
This should be the output:
Should be the output after the problem fixed
↑↑↑
Use the link above for reference if it is confusing
↑↑↑The output that i want is in the link above i cant paste it here in description because there is an error sorry for the inconvenience
2
Answers
You can try this for the page view you are showing with flex.
Edited answer:
It might be easier to not use display grid for this, since you want the reverse L shape. I removed some of your CSS code and got this result, is this slightly close to your desired result?