CSS Grid posicionamiento grid line solution
How do I make an css grid posicionamiento grid line solution?
What is a css grid posicionamiento grid line solution? How do you make a css grid posicionamiento grid line solution? This script and codes were developed by Turqueso on 09 November 2022, Wednesday.
CSS Grid posicionamiento grid line solution - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Grid posicionamiento grid line solution</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ /* Ignore this */
* { box-sizing: border-box; }
.container { border: 1px solid gray; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 200px); grid-gap: 20px;
}
.container div { padding: 0.5rem 0.8rem; border-radius: 3px; color: white; font-family: sans-serif;
}
.container div:nth-child(1) { grid-column: 1 /span 2;
}
.container div:nth-child(2) { grid-column: 3 / span 1; grid-row: 1 / span 2;
}
.container div:nth-child(3) { grid-column: 1 / 2;
}
.container div:nth-child(4) { grid-column: 2 / 3;
}
.container div:nth-child(even) { background-color: turquoise;
}
.container div:nth-child(odd) { background-color: green;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="container"> <div>1</div> <div>2</div> <div>3</div> <div>4</div>
</div>
</body>
</html>
CSS Grid posicionamiento grid line solution - Script Codes CSS Codes
/* Ignore this */
* { box-sizing: border-box; }
.container { border: 1px solid gray; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 200px); grid-gap: 20px;
}
.container div { padding: 0.5rem 0.8rem; border-radius: 3px; color: white; font-family: sans-serif;
}
.container div:nth-child(1) { grid-column: 1 /span 2;
}
.container div:nth-child(2) { grid-column: 3 / span 1; grid-row: 1 / span 2;
}
.container div:nth-child(3) { grid-column: 1 / 2;
}
.container div:nth-child(4) { grid-column: 2 / 3;
}
.container div:nth-child(even) { background-color: turquoise;
}
.container div:nth-child(odd) { background-color: green;
}
Developer | Turqueso |
Username | Turqueso |
Uploaded | November 09, 2022 |
Rating | 3 |
Size | 2,076 Kb |
Views | 24,288 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Info Box | 3,574 Kb |
CSS Grid auto rows | 2,028 Kb |
CSS Grid alineamiento | 2,103 Kb |
Accordion with bootstrap and Fontawesome | 3,940 Kb |
CSS Grid grid area | 2,014 Kb |
Hearth it | 3,973 Kb |
Bootstrap carousel | 3,512 Kb |
CSS Grid repeat 2 | 1,948 Kb |
CSS Grid order | 2,026 Kb |
Random Quote Machine | 5,257 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Image Hover | Johnheiner | 3,409 Kb |
Acorrdian 2016 | Milanodituti | 3,720 Kb |
Pruebas de d3.js | Juanmanuelcarnerero | 2,485 Kb |
HTM5 picture dropzone | Jaysalvat | 2,576 Kb |
JQuery Validate checkbox group | Lunaman | 2,466 Kb |
Loading animation - freedom purchase | Rocbear | 2,567 Kb |
Sketchy Box | Mnicpt | 3,033 Kb |
We Simplify animation | Meodai | 48,169 Kb |
RWD Conversion Practice | Jxqr97 | 2,743 Kb |
Product item | Mymahesh11 | 2,256 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!