Skip to content

added responsive 800-500 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: jason-thornton
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet"href="style/index.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<header id="top">
Expand Down Expand Up @@ -32,27 +33,27 @@ <h2>Jason Thornton</h2>
<div class="bottom">

<div class=images>
<img src="https://cdn.pixabay.com/photo/2016/12/30/14/48/guitar-1940703_960_720.jpg" alt="logo"/>
<img src="https://cdn.pixabay.com/photo/2016/12/30/14/48/guitar-1940703_960_720.jpg" alt="Black Electric Guitar"/>
<h2>Guitars</h2>
</div>
<div class=images>
<img src="https://cdn.pixabay.com/photo/2017/09/25/13/12/dog-2785074_960_720.jpg" alt="logo"/>
<img src="https://cdn.pixabay.com/photo/2017/09/25/13/12/dog-2785074_960_720.jpg" alt="Cute Beagle Puppy"/>
<h2>Dogs</h2>
</div>
<div class=images>
<img src="https://cdn.pixabay.com/photo/2014/11/30/14/11/kitty-551554_960_720.jpg" alt="logo"/>
<img src="https://cdn.pixabay.com/photo/2014/11/30/14/11/kitty-551554_960_720.jpg" alt="White Kitten pose"/>
<h2>Cats</h2>
</div>
<div class=images>
<img src="https://cdn.pixabay.com/photo/2017/09/04/18/39/coffee-2714970_960_720.jpg" alt="logo"/>
<img src="https://cdn.pixabay.com/photo/2017/09/04/18/39/coffee-2714970_960_720.jpg" alt="Fresh Cup Of Coffee"/>
<h2>Coffee</h2>
</div>
<div class=images>
<img src="https://cdn.pixabay.com/photo/2016/11/21/12/10/tv-1844964_960_720.jpg" alt="logo"/>
<img src="https://cdn.pixabay.com/photo/2016/11/21/12/10/tv-1844964_960_720.jpg" alt="Vintage Television"/>
<h2>Television</h2>
</div>
<div class=images>
<img src="https://cdn.pixabay.com/photo/2017/08/21/03/38/super-mario-2663951_960_720.jpg" alt="logo"/>
<img src="https://cdn.pixabay.com/photo/2017/08/21/03/38/super-mario-2663951_960_720.jpg" alt="Mario Video Game"/>
<h2>Video Games</h2>
</div>

Expand Down
17 changes: 12 additions & 5 deletions style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@


}
header nav{
header nav{
width:100%;
background-color: CadetBlue;
color: azure;
display:flex;
justify-content: space-between;
align-items:center;
}
h1{
text-size: 30%;
}


.links{
width: 60%;
Expand Down Expand Up @@ -77,7 +75,16 @@ footer{
justify-content: center;
}


@media(max-width:500px){
header nav{
display:flex;
flex-direction:column;
align-items:center;
}
.links{
width:100%;
}
}



Expand Down