Skip to content

Instantly share code, notes, and snippets.

@Signor1
Created September 11, 2025 18:45
Show Gist options
  • Select an option

  • Save Signor1/005d962fd22ce8e196aa4d48baf30d4a to your computer and use it in GitHub Desktop.

Select an option

Save Signor1/005d962fd22ce8e196aa4d48baf30d4a to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>School ID Card</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
</head>
<body>
<div class="container">
<div class="background">
<main>
<h3>FUT</h3>
<p>(An English Medium School)</p>
<p>Gidan kwano, Minna, Niger State</p>
<div class="img-container">
<div class="img-wrapper">
<img src="https://plus.unsplash.com/premium_photo-1689568126014-06fea9d5d341?fm=jpg&q=60&w=3000&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8cHJvZmlsZXxlbnwwfHwwfHx8MA%3D%3D"
alt="profile picture">
</div>
<div class="Identity-card">
<span>Identity Card</span>
<span>Identity Card</span>
</div>
</div>
<h2>Student Name</h2>
<ul>
<li>Father - Ibrahim Soliu</li>
<li>Mother - Ibrahim Amina</li>
<li>Class - 200 Level</li>
<li>D.O.B - 23/09/2000</li>
<li>Mobile - 090883274387438</li>
<li>Address - Igbogbo, Ikorodu</li>
</ul>
<span class="emergency-number">☎️09088367635726</span>
<footer>Please report on this phone number in case of emergency</footer>
</main>
</div>
</div>
</body>
</html>
* {
box-sizing: border-box;
border: 0;
padding: 0;
margin: 0;
}
body {
width: 100%;
height: 100vh;
display: grid;
place-items: center;
}
.container {
width: 480px;
height: 690px;
background-color: white;
border: 0.01rem solid #aaa;
border-radius: 7px;
padding: 40px 15px 15px 15px;
}
.background {
width: 100%;
height: inherit;
position: relative;
background-color: transparent;
overflow: hidden;
z-index: 1;
}
.background::before {
content: "";
width: 500px;
height: 500px;
border-radius: 50%;
display: block;
position: absolute;
background-color: blue;
z-index: -1;
left: 50%;
transform: translateX(-50%);
top: -40%;
}
.background>main {
z-index: 2;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: start;
}
main>h3 {
color: white;
margin-top: 20px;
text-align: center;
font-family: sans-serif;
font-size: 2rem;
letter-spacing: 4px;
}
main>p:first-of-type {
width: 100%;
padding-block: 8px;
background-image: linear-gradient(to right, transparent, goldenrod, transparent);
text-align: center;
color: white;
font-family: sans-serif;
margin-block: 5px;
}
main>p:nth-of-type(2) {
font-family: cursive;
color: white;
}
.img-container {
width: 100%;
height: 180px;
margin-top: 2rem;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.img-wrapper {
width: 170px;
height: 100%;
border: 4px solid skyblue;
background-color: #ccc;
z-index: 2;
overflow: hidden;
}
.img-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
}
.Identity-card {
width: 100%;
position: absolute;
z-index: 1;
top: 60%;
display: grid;
grid-column: 1fr 1fr;
place-items: center;
background-color: crimson;
color: black;
}
.Identity-card>span {
color: black;
z-index: 2;
display: block;
}
main h2 {
margin-block: 15px;
font-size: 1.2rem;
font-family: sans-serif;
color: crimson;
text-transform: uppercase;
}
main ul {
list-style: none;
}
main ul li {
font-family: sans-serif;
font-size: 1rem;
word-spacing: 4px;
margin-block: 4px;
}
.emergency-number {
margin-top: 10px;
text-align: center;
background-color: gold;
padding: 8px 10px;
border-radius: 15px;
}
footer {
width: 100%;
padding: 1rem;
background-color: crimson;
color: white;
text-align: center;
}
@semilorekolade
Copy link

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment