File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < title > Transparent Header Website</ title >
7+ < style >
8+ body {
9+ margin : 0 ;
10+ font-family : Arial, sans-serif;
11+ }
12+ header {
13+ background-color : rgba (0 , 0 , 0 , 0.5 ); /* Transparent black background */
14+ color : white;
15+ padding : 20px ;
16+ text-align : center;
17+ }
18+ nav {
19+ display : inline-block;
20+ }
21+ nav a {
22+ color : white;
23+ text-decoration : none;
24+ margin : 0 10px ;
25+ }
26+ nav a : hover {
27+ text-decoration : underline;
28+ }
29+ .container {
30+ padding : 20px ;
31+ text-align : center;
32+ }
33+ .container img {
34+ width : 100% ;
35+ max-width : 800px ;
36+ height : auto;
37+ }
38+ </ style >
39+ </ head >
40+ < body >
41+
42+ < header >
43+ < nav >
44+ < a href ="# "> Home</ a >
45+ < a href ="# "> About</ a >
46+ < a href ="# "> Services</ a >
47+ < a href ="# "> Contact</ a >
48+ </ nav >
49+ </ header >
50+
51+ < div class ="container ">
52+ < h1 > Welcome to Our Website</ h1 >
53+ < p > This is a sample homepage with a transparent header.</ p >
54+ < img src ="https://via.placeholder.com/800x400 " alt ="Sample Image ">
55+ </ div >
56+
57+ </ body >
58+ </ html >
You can’t perform that action at this time.
0 commit comments