Background position test
How do I make an background position test?
What is a background position test? How do you make a background position test? This script and codes were developed by Kevin on 12 August 2022, Friday.
Background position test - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Background position test</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="cover top-l">left top</div>
<div class="cover top-c">center top</div>
<div class="cover top-r">right top</div>
<div class="cover cen-l">left center</div>
<div class="cover cen-c">center center</div>
<div class="cover cen-r">right center</div>
<div class="cover bot-l">left bottom</div>
<div class="cover bot-c">center bottom</div>
<div class="cover bot-r">right bottom</div>
</body>
</html>
Background position test - Script Codes CSS Codes
body { background: #111; }
.cover { width: 30%; height: 30%; margin: 1.5%; background-size:cover; background-image: url(//unsplash.it/500/); font-family: sans-serif; color: #fff; font-size: 12px;; font-weight: bold; line-height: 300px; text-transform:uppercase; text-align:center; float: left;
}
.top-l { background-position: left top;
}
.top-c { background-position: center top;
}
.top-r { background-position: right top;
}
.cen-l { background-position: left center;
}
.cen-c { background-position: center center;
}
.cen-r { background-position: right center;
}
.bot-l { background-position: left bottom;
}
.bot-c { background-position: center bottom;
}
.bot-r { background-position: right bottom;
}
![Background position test - Script Codes](http://shots.codepen.io/kevinpowell/pen/xVedOg-512.jpg)
Developer | Kevin |
Username | kevinpowell |
Uploaded | August 12, 2022 |
Rating | 3 |
Size | 1,674 Kb |
Views | 34,408 |
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 |
Flexbox navigation bar | 2,050 Kb |
CSS Grid - Using line names | 2,676 Kb |
Awesome Portfolio demo | 3,635 Kb |
Simple Clearfix | 1,508 Kb |
Flexbox - Flexbox Container Properties | 1,976 Kb |
Flexbox grid with Sass | 2,446 Kb |
CSS Grid Area demo - the start | 2,847 Kb |
Nav bar with fun hover effect | 1,867 Kb |
Anchors | 2,264 Kb |
Collapsing divs with floats | 1,532 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 |
Simple personal profile | Miroot | 2,856 Kb |
HTML5 Breakout | Jaysalvat | 4,873 Kb |
Twinkling Stars | Ripley6811 | 2,750 Kb |
Hovers with popups | Zacharyolson | 2,380 Kb |
Pure CSS Spinners | Jlong | 2,043 Kb |
CSS Link Zoom On Click | Bryce | 1,960 Kb |
Transitioning application screens with semantically named classes | Djgrant | 3,697 Kb |
Import shader in three.js | Khangeldy | 2,636 Kb |
Cut and Paste Roll Link | BottomlineInteractive | 2,546 Kb |
Word Wrap Algorithm for Multiline Canvas Text | Peterhry | 2,349 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!