Easy Lines Around a Subtitle
How do I make an easy lines around a subtitle?
Super-easy way to use flexbox to create lines on either side of the subtitle, without needing to know anything about what's actually in the subtitle itself. . What is a easy lines around a subtitle? How do you make a easy lines around a subtitle? This script and codes were developed by Matt Gross on 07 September 2022, Wednesday.
Easy Lines Around a Subtitle - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Easy Lines Around a Subtitle</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- Title -->
<h1>Lines Around a Subitle</h1>
<!-- Subtitle wrapped in a div -->
<div class="container"> <p class="subtitle">This Sub</p>
</div>
</body>
</html>
Easy Lines Around a Subtitle - Script Codes CSS Codes
/* Basic Formatting */
* { margin: 0; padding: 0; box-sizing: border-box;
}
body { padding: 100px; text-align: center;
}
/* Flexbox on the subtitle's container */
.container { display: flex; justify-content: center; align-items: center;
}
/* Before & After elements create a line on each side of the subtitle */
.container:before,
.container:after { content: ''; background: #999;
/* Height of the line */ height: 1px;
/* Tells the elements to grow to fill the available space, */ flex-grow: 1;
}
/* padding controls the space between the text and the lines */
.subtitle { padding: 0 15px;
}
Developer | Matt Gross |
Username | mattgrosswork |
Uploaded | September 07, 2022 |
Rating | 3 |
Size | 1,807 Kb |
Views | 42,504 |
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 |
Basic Fullscreen Video Background | 2,208 Kb |
EvenVision Branded Ajax Loader | 3,023 Kb |
Super Basic Menu with Best Practices | 1,639 Kb |
A Pen by Matt Gross | 12,421 Kb |
Scared Eyes | 1,673 Kb |
Playing with transition timing | 1,993 Kb |
Basic Flexbox Layout | 1,729 Kb |
Basic Flexbox Reference | 1,662 Kb |
Circle Hovers | 1,586 Kb |
Working on a Volusion version of a Drupal Theme | 6,095 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 |
Scarlett Johansson Tribute Page | Diomed | 3,233 Kb |
Personal Logo Animation | Lloydwheeler | 3,795 Kb |
Sticky notes with CSS3 | HaiNguyen007 | 2,146 Kb |
Twitch | SarahDunlap | 2,937 Kb |
Mesmerizing octopus | Jllodra | 3,549 Kb |
CSS3 Animated buttons | Cguillou | 3,737 Kb |
SVG Animation | Thepheer | 4,793 Kb |
Sticky menu on scroll | Senff | 2,869 Kb |
Responsive Pricing Table | Jeremycaris | 2,690 Kb |
Flying Bee | Pwsm50 | 3,711 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!