Centered Text in a Perfect Circle
How do I make an centered text in a perfect circle?
What is a centered text in a perfect circle? How do you make a centered text in a perfect circle? This script and codes were developed by Nick Colley on 12 November 2022, Saturday.
Centered Text in a Perfect Circle - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Centered Text in a Perfect Circle</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="bubble"> <div class="bubble-outer"> <div class="bubble-inner"> <div class="bubble-text"> <h2>Hello, World.</h2> <h2>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h2> </div> </div> </div>
</div>
<div class="bubble bubble-secondary"> <div class="bubble-outer"> <div class="bubble-inner"> <div class="bubble-text"> <h2>Hello, World.</h2> <h2>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h2> </div> </div> </div>
</div>
<div class="bubble bubble-tertiary"> <div class="bubble-outer"> <div class="bubble-inner"> <div class="bubble-text"> <h2>Hello, World.</h2> <h2>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h2> </div> </div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Centered Text in a Perfect Circle - Script Codes CSS Codes
.bubble { overflow: hidden; position: relative; display: inline-block; border-radius: 50%; background-color: #556; padding: 50%;
}
.bubble-outer { position: absolute; left: 0; top: 0; right: 0; bottom: 0;
}
.bubble-inner { display: table; height: 100%; width: 100%;
}
.bubble-text { display: table-cell; vertical-align: middle; text-align: center; padding: 0 10%;
}
.bubble-text > * { color: white; padding: 0; margin: 0;
}
.bubble-semi { margin-top: -50%; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}
.bubble-semi .bubble-text { padding-top: 25%;
}
.bubble-secondary { background-color: #656;
}
.bubble-tertiary { background-color: #655;
}
@media (max-width: 100px) { .bubble-text { font-size: 2em; }
}
Developer | Nick Colley |
Username | nickcolley |
Uploaded | November 12, 2022 |
Rating | 3 |
Size | 2,410 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 |
One element icon | 1,976 Kb |
Wip elementary os navbar | 2,993 Kb |
A Pen by Nick Colley | 18,585 Kb |
Subtle Animation Example | 2,101 Kb |
Close animation | 2,207 Kb |
Banner hover test | 2,825 Kb |
Curl Dropshadow | 1,623 Kb |
Brightness regulation UI design | 2,713 Kb |
Diagonal Nav bar | 2,392 Kb |
Subtle Quote | 3,379 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 |
DFF Website | Hawcubite | 10,123 Kb |
Out of the blue | Giaco | 2,537 Kb |
Pomodoro Clock | Yas46 | 3,328 Kb |
Mega Menu by Joni | Asakasinsky | 3,171 Kb |
Bloomberg Style Link Hover | Gil-- | 1,609 Kb |
Price Comparison Table | Orrinward | 3,459 Kb |
Animated css matrix type | NielsOeltjen | 3,484 Kb |
Basic template | Tomcat | 1,675 Kb |
A bit of elegance | Hackthevoid | 9,095 Kb |
HTML5 Breakout | Jaysalvat | 4,873 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!