Text in a border
How do I make an text in a border?
What is a text in a border? How do you make a text in a border? This script and codes were developed by Rico Sta. Cruz on 19 January 2023, Thursday.
Text in a border - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Text in a border</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> <link href="https://fonts.googleapis.com/css?family=Fjalla+One" rel="stylesheet">
<div class='box'> <img src='https://source.unsplash.com/-XvFzO6lmb0/600x600'> <div class='text'> <div> <span class='innertext'>Text goes here</span> </div> </div>
</div>
</body>
</html>
Text in a border - Script Codes CSS Codes
html { background: #ddd;
}
.box { width: 400px; background: #123; margin: 48px auto; padding: 16px; position: relative;
}
.box > img { width: 400px; height: 300px; opacity: .5; -o-object-fit: cover; object-fit: cover;
}
.box::after { content: ''; display: block; position: absolute; top: 40px; right: 40px; left: 40px; bottom: 47px; border: solid 4px white; border-bottom: 0;
}
.text { color: white; position: absolute; text-align: center; bottom: 40px; left: 40px; right: 40px; white-space: nowrap; overflow: hidden; font-family: 'fjalla one', sans-serif; text-transform: uppercase; letter-spacing: 0.1em;
}
.text > div { width: 2000px; margin-left: -820px;
}
.innertext::before,
.innertext::after { content: ''; display: inline-block; width: 600px; height: 4px; background: white; vertical-align: middle;
}
.innertext::before { margin-right: 16px;
}
.innertext::after { margin-left: 16px;
}
Developer | Rico Sta. Cruz |
Username | rstacruz |
Uploaded | January 19, 2023 |
Rating | 4.5 |
Size | 2,482 Kb |
Views | 14,168 |
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 |
Daily UI 6 | 3,115 Kb |
CSS variables iOS bug demo | 1,516 Kb |
Waves | 2,865 Kb |
Styled file input | 2,218 Kb |
Swipeshow demo | 2,133 Kb |
React template | 1,886 Kb |
Offgrid images | 2,610 Kb |
Coffee image card | 4,570 Kb |
A Pen by Rico Sta. Cruz | 2,346 Kb |
Cookie notice snippet | 2,651 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 sky | Omodev | 7,070 Kb |
Cloudy Spiral CSS animation | Hakimel | 6,587 Kb |
About Mazano | Kiti | 2,585 Kb |
Border-radius animation | Yukulele | 2,480 Kb |
Shop Talk logo made in CSS | Hugo | 19,368 Kb |
Vertically rotating text with CSS | Nopr | 2,141 Kb |
DNA Double Helix | Hugo | 5,112 Kb |
Practice using Wixel | Emnk | 3,057 Kb |
Rainbow Drops | Csbarnes | 2,365 Kb |
A Pen by Andrea Berardi | Aberry | 1,330 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!