Skip to content

Commit

Permalink
Merge pull request #24 from santiaguf/dev
Browse files Browse the repository at this point in the history
fix:responsive design mobile
  • Loading branch information
monocuka authored Mar 22, 2023
2 parents d2dc3ec + 4b8e456 commit 38f330e
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
header {
background-color: #595959;
color: white;
width:100%;
}
header img{
max-width: 100%;
height: auto;
}
#headerone{
display: flex;
Expand All @@ -21,6 +26,7 @@
}
#headertwo{
display: flex;
width: 100%;
justify-content: space-around;
align-items: center;
}
Expand Down Expand Up @@ -88,25 +94,21 @@
display: none;
}

@media (max-width: 480px) {
@media (max-width: 751px) {

#headerone{
display: flex;
flex-direction: column;
text-align: center;
}
#headertwo{
display: flex;
flex-direction: column-reverse;
padding-left: 5%;
}
.row{
display: flex;
flex-direction: column;
align-items: center;
}
.card{
width: 90%;
}
}

}

Expand All @@ -123,8 +125,10 @@ <h2>Like <a class="links" href="https://spacex.com" target="_blank">SpaceX</a> a
</div>
</div>
<div id="headertwo">
<img class="header" src="img/platzi-logo.png" width="258px" height="100px" alt="Platzi logo">
<img class="header" src="img/SpaceX_logo_black.svg.png" width="332px" height="41px" alt="SpaceX logo">
<div id="logo1" class="pruebas"> <img class="header" src="img/platzi-logo.png" width="258px" height="100px" alt="Platzi logo">
</div>
<div id="logo2" class="pruebas"> <img class="header" src="img/SpaceX_logo_black.svg.png" width="332px" height="41px" alt="SpaceX logo">
</div>
</div>

</header>
Expand Down

1 comment on commit 38f330e

@vercel
Copy link

@vercel vercel bot commented on 38f330e Mar 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.