Skip to content

Commit

Permalink
fix algorithm img scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriyChestnyh committed Nov 8, 2024
1 parent 3cb5347 commit fd3ecf1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
33 changes: 27 additions & 6 deletions css/algorithms.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
display: flex;
justify-content: center;
margin-top: 1rem;
margin-left: 3rem;
margin-right: 3rem;
text-align: center;
}

.heading{
font-size: 1.3rem;
font-weight: 600;
}

.infopole{
Expand All @@ -20,7 +24,7 @@
}

.algo-text-container{
width: 70%;
width: 70vw;
padding-right: 2rem;
}

Expand All @@ -33,12 +37,29 @@
display: flex;
justify-content: center;
align-content: center;
width: 30%;
flex-wrap: wrap;
width: 30vw;
}

.algo-img{
min-width: 80%;
max-width: 80%;
max-height: auto;
min-height: auto;
width: 25rem;
height: fit-content;
}
@media (max-width: 1198px) {
.infopole{
flex-direction: column-reverse;

}
.algo-text-container{
width: 100%;
padding: 0;
}
.algo-img-container{
width: 100%;
margin-bottom: 1rem;
}
.algo-img{
width: 100%;
height: fit-content;
}
}
3 changes: 2 additions & 1 deletion html/von_neumann.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@
</p>
</div>
<div class="algo-img-container">
<img src="../img/von-Neumann.png">
<img class="algo-img" src="../img/von-Neumann.png">
</div>
</div>

</div>
</div>
<br>
<footer class="border-top border-dark">
<div class="left-footer-cont">
<div class="footer-content ml-5">
Expand Down

0 comments on commit fd3ecf1

Please sign in to comment.