Vertical-align examples
How do I make an vertical-align examples?
For the CSS-Tricks almanac. What is a vertical-align examples? How do you make a vertical-align examples? This script and codes were developed by Chris Coyier on 18 November 2022, Friday.
Vertical-align examples - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>vertical-align examples</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="middle"> <h2>Middle</h2> <img src="http://placekitten.com/100/100"> <img src="http://placekitten.com/200/150"> <img src="http://placekitten.com/220/80">
</div>
<div class="top"> <h2>Top</h2> <img src="http://placekitten.com/100/100"> <img src="http://placekitten.com/200/150"> <img src="http://placekitten.com/220/80">
</div>
<div class="bottom"> <h2>Bottom</h2> <img src="http://placekitten.com/100/100"> <img src="http://placekitten.com/200/150"> <img src="http://placekitten.com/220/80">
</div>
<div class="sub"> <h2>Sub</h2> <img src="http://placekitten.com/100/100"> <img src="http://placekitten.com/200/150"> <img src="http://placekitten.com/220/80">
</div>
<div class="super"> <h2>Super</h2> <img src="http://placekitten.com/100/100"> <img src="http://placekitten.com/200/150"> <img src="http://placekitten.com/220/80">
</div>
<div class="text-top"> <h2>Text Top</h2> <img src="http://placekitten.com/100/100"> <img src="http://placekitten.com/200/150"> <img src="http://placekitten.com/220/80">
</div>
<div class="text-bottom"> <h2>Text Bottom</h2> <img src="http://placekitten.com/100/100"> <img src="http://placekitten.com/200/150"> <img src="http://placekitten.com/220/80">
</div>
<div class="baseline"> <h2>Baseline</h2> <img src="http://placekitten.com/100/100"> <img src="http://placekitten.com/200/150"> <img src="http://placekitten.com/220/80">
</div>
<div class="pixel"> <h2>30px</h2> <img src="http://placekitten.com/100/100"> <img src="http://placekitten.com/200/150"> <img src="http://placekitten.com/220/80">
</div>
<div class="percentage"> <h2>-500%</h2> <img src="http://placekitten.com/100/100"> <img src="http://placekitten.com/200/150"> <img src="http://placekitten.com/220/80">
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Vertical-align examples - Script Codes CSS Codes
.middle > * { vertical-align: middle;
}
.top > * { vertical-align: top;
}
.bottom > * { vertical-align: bottom;
}
.sub > * { vertical-align: sub;
}
.super > * { vertical-align: super;
}
.text-top > * { vertical-align: text-top;
}
.text-bottom > * { vertical-align: text-bottom;
}
.baseline > * { vertical-align: baseline;
}
.pixel > * { vertical-align: 30px;
}
.percentage > * { vertical-align: -500%;
}
body { padding: 20px; background: #eee;
}
h2 { display: inline-block; margin: 0; width: 150px; text-align: right; font: bold 20px Sans-Serif;
}
div { margin: 0 0 30px 0; padding: 10px; background: white; white-space: nowrap;
}
Developer | Chris Coyier |
Username | chriscoyier |
Uploaded | November 18, 2022 |
Rating | 3.5 |
Size | 1,819 Kb |
Views | 18,216 |
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 |
JQuery and CoffeeScript | 3,185 Kb |
A Pen by Chris Coyier | 2,033 Kb |
Bar Navigation with Flexbox and SVG icons | 5,995 Kb |
Glowing Blue Inputs | 2,475 Kb |
Transformer Tabs | 5,160 Kb |
Row and Column Highlighting with CSS Only | 2,180 Kb |
CssPanelMenu | 4,062 Kb |
Complex Text Shadow Examples | 2,988 Kb |
Centering in the Unknown | 1,821 Kb |
Smooth Page Scrolling in jQuery | 2,813 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 |
Infractions - Attitude | Kylie_Joseph | 7,672 Kb |
A Pen by Matt Popovich | Mpopv | 3,349 Kb |
Monochrome Form | AlienPiglet | 3,096 Kb |
Random Gradients - JS | Aldlevine | 2,026 Kb |
SVG Circle Progress | JMChristensen | 3,368 Kb |
Email Marketing Mock | Kristenzirkler | 8,224 Kb |
Image Stack Test SCSS | CalvinMorett | 2,799 Kb |
Calculator - codevember 08 - 2016 | Caiocares | 3,260 Kb |
Animated skewed panes | NyX | 4,462 Kb |
Responsive scrolling text | Ashdurham | 2,259 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!