Skip to content

Commit

Permalink
調整 header container
Browse files Browse the repository at this point in the history
  • Loading branch information
osncode committed Aug 19, 2024
1 parent 4f7c9db commit 60277a2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<body>
<!-- header -->
<header class="header bg-header">
<div class="container-full">
<div class="container">
<div class="header-content d-flex">
<div class="header-img">
<a href="#"><img src="img/logo-white.png" alt="logo"></a>
Expand Down
46 changes: 21 additions & 25 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@
}

/* header */
.container-full{
max-width: 1320px;
padding: 0px 12px;
margin: 0 auto;
}

.header-content{
justify-content: space-between;
align-items: center;
Expand Down Expand Up @@ -72,25 +66,27 @@
}

@media (max-width:576px){
.container-full{
padding: 0px;
}
.header-content{
flex-direction: column;
align-items: start;
}
.header-img img{
padding: 12px;
}
.header-list{
flex-wrap:wrap;
width: 100%;
}
.header-list .item{
font-size: 16px;
border: 1px solid #FFF;
padding: 12px 0px 12px 0px;
width: 50%;
.header{
.container{
padding: 0px;
}
.header-content{
flex-direction: column;
align-items: start;
}
.header-img img{
padding: 12px;
}
.header-list{
flex-wrap:wrap;
width: 100%;
}
.header-list .item{
font-size: 16px;
border: 1px solid #FFF;
padding: 12px 0px 12px 0px;
width: 50%;
}
}
}

Expand Down

0 comments on commit 60277a2

Please sign in to comment.