Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<head>
<style>
.box {
margin: 20px;
width: 400px;
box-sizing: border-box;
border: 20px solid rgb(0, 128, 255);
padding: 20px;
font-size: 20pt;
font-weight: 900;
font-family: sans-serif;
text-align: center;
}
.single-background {
background-color: white;
border-color: cyan;
}
.middle-background {
background-color: cyan;
border-color: blue;
}
.last-background {
background-color: lime;
border-color: magenta;
}
</style>
</head>
<body>
<div class="box single-background">Cyan border, white background</div>
<div class="box middle-background">Blue border, cyan background</div>
<div class="box last-background">Magenta border, lime background</div>
</body>
</html>