Grid

Size
2,764 Kb
Views
18,216

How do I make an grid?

What is a grid? How do you make a grid? This script and codes were developed by Spyros Lefkaditis on 12 October 2022, Wednesday.

Grid Previews

Grid - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Grid</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="page"> <div class="container"> <div class="grid"> <div class="col-1"> <h2>col-1</h2> </div> <div class="col-11"> <h2>col-11</h2> </div> </div> <div class="grid"> <div class="col-2"> <h2>col-2</h2> </div> <div class="col-10"> <h2>col-10</h2> </div> </div> <div class="grid"> <div class="col-3"> <h2>col-3</h2> </div> <div class="col-9"> <h2>col-9</h2> </div> </div> <div class="grid"> <div class="col-4"> <h2>col-4</h2> </div> <div class="col-8"> <h2>col-8</h2> </div> </div> <div class="grid"> <div class="col-5"> <h2>col-5</h2> </div> <div class="col-7"> <h2>col-7</h2> </div> </div> <div class="grid"> <div class="col-6"> <h2>col-6</h2> </div> <div class="col-6"> <h2>col-6</h2> </div> </div> </div>
</div>
</body>
</html>

Grid - Script Codes CSS Codes

html, body { min-height: 100% !important;
}
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
.grid,
.clearfix { *zoom: 1;
}
.grid:before, .grid:after,
.clearfix:before,
.clearfix:after { content: ""; display: table;
}
.grid:after,
.clearfix:after { clear: both;
}
.container { position: relative; width: 90%; max-width: 1200px; margin-left: auto; margin-right: auto;
}
.grid { margin-left: -4px; margin-right: -4px;
}
@media screen and (min-width: 769px) { .grid { margin-left: -20px; margin-right: -20px; }
}
@media screen and (min-width: 376px) and (max-width: 768px) { .grid { margin-left: -8px; margin-right: -8px; }
}
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-full { position: relative; float: left; display: block; min-height: 2px; padding-left: 4px; padding-right: 4px;
}
@media screen and (min-width: 769px) { .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-full { padding-left: 20px; padding-right: 20px; }
}
@media screen and (min-width: 376px) and (max-width: 768px) { .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-full { padding-left: 8px; padding-right: 8px; }
}
.col-1 { width: 8.333333%;
}
.col-2 { width: 16.666666%;
}
.col-3 { width: 24.999999%;
}
.col-4 { width: 33.333333%;
}
.col-5 { width: 41.666666%;
}
.col-6 { width: 49.999999%;
}
.col-7 { width: 58.333333%;
}
.col-8 { width: 66.666666%;
}
.col-9 { width: 74.999999%;
}
.col-10 { width: 83.333333%;
}
.col-11 { width: 91.666666%;
}
.col-full { width: 100%;
}
.tbl { display: table; table-layout: fixed; width: 100%;
}
.tbl-cell { display: table-cell; vertical-align: middle;
}
.page { background-color: grey;
}
.container { background-color: yellow;
}
h2 { margin: 0; height: 50px; border: 1px solid black; background-color: #fff;
}
Grid - Script Codes
Grid - Script Codes
Home Page Home
Developer Spyros Lefkaditis
Username spylefkaditis
Uploaded October 12, 2022
Rating 3
Size 2,764 Kb
Views 18,216
Do you need developer help for Grid?

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!

Spyros Lefkaditis (spylefkaditis) Script Codes
Create amazing video scripts with AI!

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!