Skip to content

Commit

Permalink
update header
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvnguyen95 committed Feb 11, 2024
1 parent 51fa2f8 commit 206c939
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header>
<div id="header" class="heading">
<nav>
<div id="logo">
<img src="./images/logo2.png" alt="Logo" width="5%" />
Expand All @@ -21,7 +21,7 @@
</div>
</div>
</nav>
</header>
</div>

<div class="content-wrap">
<section id="about" class="content-block">
Expand Down
11 changes: 10 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ html {
font-family: "Arial", sans-serif;
line-height: 1.6;
color: #333;
background-image: url("./images/background4.jpeg");
background-color: #000000;
margin: 0px;
padding: 0px;
min-width: 100%;
Expand All @@ -29,6 +29,15 @@ header {
padding: 10px 20px;
}

.heading {
position: fixed;
width: 100%;
top: 0;
background-color: #000000;
z-index: 1000;
border-bottom: 2px solid #f4f4f4;
padding: 10px 20px;
}
#logo {
display: flex;
align-items: center;
Expand Down

0 comments on commit 206c939

Please sign in to comment.