Skip to content

Commit

Permalink
Mobile accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjdean committed Aug 12, 2023
1 parent 710f636 commit 9ec46c2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</nav>

<main class="content">
<div >
<div>
<figure class="image-block">
<img src="images/me.png" alt="Alexander Dean" class="image-myself">
<figcaption class="caption">Me at the Garfield Park Conservatory, March 2023.</figcaption>
Expand Down
20 changes: 14 additions & 6 deletions styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,33 @@ p {
@media screen and (max-width: 1300px) {
p {
margin-bottom: 0em;
margin-top: 2em;
margin-top: 1em;
padding-top: 0;
}

.caption {
margin: 0 0;
padding-left: 3%;
}

.image-myself {
width: 300px;
height: 400px;
margin-top: 0em;
border-radius: 5%;
}

.image-block {
margin: 0 4%;
margin-bottom: 12%;
}
margin-bottom: 10%;
margin-right: 0%;
margin-right: 2.8%;
}

.description {
font-size: 1.3rem;
margin-right: 0em;
margin-left: 0em;
}

.content {
padding: 4rem 3rem
}
}
2 changes: 1 addition & 1 deletion styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ main {
/* Mobile & tablet styles */
@media screen and (max-width: 1300px) {
main {
overflow-y: visible;
overflow-y: scroll;
}

.navigation {
Expand Down

0 comments on commit 9ec46c2

Please sign in to comment.