Basic.css/grid.html

87 lines
1.7 KiB
HTML
Raw Normal View History

2020-05-27 01:55:05 +02:00
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> Lorem Ipsum Crash Test </title>
<meta name="author" content="Vladimir Carrer">
<link rel="stylesheet" href="css/basic.css" type="text/css">
<style>
main {
margin: 0 auto;
width: 82%;
text-align: left;
padding: 0 20px;
}
2020-06-01 14:25:56 +02:00
[style*="--c:"],section>section{
2020-05-27 01:55:05 +02:00
color: #fff;
background-color: #00bbeb;
padding: 15px;
margin: 10px 8px 10px 8px;
text-align: center;
}
</style>
</head>
<body>
<main>
2020-06-01 00:50:42 +02:00
<h1>Simple Grid</h1>
2020-05-27 01:55:05 +02:00
<section>
2020-06-01 14:25:56 +02:00
<section> 1 </section>
<section> 2 </section>
<section> 3 </section>
2020-05-27 01:55:05 +02:00
</section>
<section>
2020-06-01 14:25:56 +02:00
<section>1</section>
<section>2</section>
<section>3</section>
<section>4</section>
2020-05-27 01:55:05 +02:00
</section>
<section>
2020-06-01 14:25:56 +02:00
<section> 1 </section>
<section> 2 </section>
<section> 3 </section>
<section> 4 </section>
<section> 5 </section>
2020-05-27 01:55:05 +02:00
</section>
2020-06-01 00:50:42 +02:00
<h2>Complex grid</h2>
<section>
2020-06-01 14:25:56 +02:00
<section> 1 </section>
<section> 2 </section>
<section> 3 </section>
2020-06-01 00:50:42 +02:00
</section>
<section>
2020-06-03 16:19:38 +02:00
<section style = "--c:2">Merge the first 2 columns</section>
2020-06-01 14:25:56 +02:00
<section>2</section>
<section>3</section>
<section>4</section>
2020-06-01 00:50:42 +02:00
</section>
<section>
2020-06-01 14:25:56 +02:00
<section> 1 </section>
2020-06-03 16:19:38 +02:00
<section style = "--c:3"> Merge 3 columns </section>
2020-06-01 14:25:56 +02:00
<section> 3 </section>
2020-06-01 00:50:42 +02:00
</section>
<section>
2020-06-01 14:25:56 +02:00
<section>1</section>
2020-06-03 16:19:38 +02:00
<section style = "--c:2">Merge 2</section>
<section style = "--c:3">Merge 3</section>
2020-06-01 14:25:56 +02:00
<section>4</section>
<section>5</section>
<section>6</section>
<section>7</section>
2020-06-01 00:50:42 +02:00
</section>
<section>
<div style = "--c:1"> 1 </div>
<div style = "--c:2"> Merge 2 columns</div>
<div style = "--c:1"> 3 </div>
</section>
2020-05-27 01:55:05 +02:00
</main>
</body>
2020-06-03 16:19:38 +02:00
</html>