Vertical align
How do I make an vertical align?
What is a vertical align? How do you make a vertical align? This script and codes were developed by Shankar Cabus on 24 June 2022, Friday.
Vertical align - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Vertical align</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <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! */ .foo { width: 200px; height: 300px; background: #000;
}
.bar { width: 100px; height: 100px; background: red; top: 50%; transform: translate(0, -50%); position: relative;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="foo"> <div class="bar"> </div>
</div>
</body>
</html>
Vertical align - Script Codes CSS Codes
.foo { width: 200px; height: 300px; background: #000;
}
.bar { width: 100px; height: 100px; background: red; top: 50%; transform: translate(0, -50%); position: relative;
}
Developer | Shankar Cabus |
Username | shankarcabus |
Uploaded | June 24, 2022 |
Rating | 3 |
Size | 1,952 Kb |
Views | 56,672 |
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 |
Compass pure CSS | 4,350 Kb |
CSS pie chart | 2,335 Kb |
Single element heart | 2,602 Kb |
Guest Post on CSS-Tricks | 6,425 Kb |
Transformers Cube with device orientation | 2,616 Kb |
A Pen by Shankar Cabus | 2,336 Kb |
MacOS Beach Ball in Pure CSS | 4,268 Kb |
Flat Progress Bar CSS e HTML | 3,296 Kb |
Front in Aracaju Logo Pure CSS | 2,581 Kb |
JusBrasil logo single element | 2,542 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 |
SVG Playground | Roygwells | 1,834 Kb |
A Pen by Miro Olma | Programiro | 2,342 Kb |
Portfolio Layout Flex | Lahvjal | 3,489 Kb |
Basic HTML5 Structure | YuvarajTana | 1,289 Kb |
Off Canvas | Mariamarica | 1,870 Kb |
Image grid with captions | Mchernin34 | 2,222 Kb |
Coburg Banks SVG Logo | Mjtweaver | 3,875 Kb |
TinFoil Boats | Chandralil | 4,577 Kb |
Voting App - register | MatheusLima92 | 1,948 Kb |
Hard-Stop Gradients | Mackdoyle | 2,288 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!