Week 1 Day 4: CSS fundamentals and basic styling
This commit is contained in:
64
Week-1/Day-4/style.css
Normal file
64
Week-1/Day-4/style.css
Normal file
@@ -0,0 +1,64 @@
|
||||
/* General Page Styling */
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f2f2f2;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Header Styling */
|
||||
#main-header {
|
||||
background-color: #0047ab;
|
||||
color: white;
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* Section Styling */
|
||||
.content {
|
||||
background-color: white;
|
||||
margin: 20px;
|
||||
padding: 15px;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
/* Paragraph Styling */
|
||||
.description {
|
||||
font-size: 16px;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* List Styling */
|
||||
ul {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
/* Box Model Practice */
|
||||
.box-container {
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
.box {
|
||||
display: inline-block;
|
||||
width: 120px;
|
||||
height: 80px;
|
||||
background-color: #ffa500;
|
||||
color: white;
|
||||
text-align: center;
|
||||
line-height: 80px;
|
||||
margin: 10px;
|
||||
border: 2px solid #cc8400;
|
||||
}
|
||||
|
||||
/* Footer Styling */
|
||||
footer {
|
||||
background-color: #333;
|
||||
color: white;
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
}
|
||||
Reference in New Issue
Block a user