body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
header {
background-color: #333;
color: white;
padding: 15px 0;
text-align: center;
}
nav ul {
list-style: none;
padding: 0;
}
nav ul li {
display: inline;
margin: 0 10px;
}
nav ul li a {
color: white;
text-decoration: none;
font-weight: bold;
}
section {
padding: 20px;
background-color: white;
margin: 10px 0;
}
h2 {
color: #333;
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 10px 0;
position: fixed;
width: 100%;
bottom: 0;
}
- تنسيق الصفحة بالكامل باستخدام
body
الذي يحدد الخطوط وألوان الخلفية. - استخدمنا
header
لتنسيق الشريط العلوي الذي يحتوي على العنوان. - تنسيقات القائمة في
nav ul li
تظهر الروابط بشكل أفقي. - يتم تطبيق التنسيق على الأقسام باستخدام
section
وh2
لجعل الصفحة تبدو أفضل. footer
ثابت في الأسفل بغض النظر عن مكان التمرير في الصفحة.