Having trouble scaling down my HTML and CSS code properly using only %'s and vw's. The entree div and drink div are dynamically populated, making formatting even more challenging.
<!DOCTYPE HTML>
<html>
<link rel="stylesheet" href="assets/styles/normalize.css">
<link rel="stylesheet" href="assets/styles/main.css">
<style>
#percentageSize {
width: 16%;
height: auto;
margin-top: -5%;
margin-right: 1%;
margin-left: -45%;
}
#percentageSize1 {
width: 16%;
height: auto;
margin-top: -1%;
margin-left: -400%;
}
.drinks {
height: 100%;
width: 100%;
margin-left: 220%;
margin-top: 2.5%;
position: absolute;
margin-top: -53.5%;
}
#thumbs {
width: 100%;
height: 100%;
}
.entree {
height: 100%;
width: 100%;
margin-left: -5%;
margin-top: 7%;
position: absolute;
top: 34%;
}
h1 {
text-align: center;
}
.Joey {
font-size: 3vw;
margin-top: -18%;
}
h2 {
text-align: right;
}
...
(code continues)
</html>
Struggling to find a solution despite using %'s and vw's in my code. Could it be related to the use of div's? Any tips or suggestions would be greatly appreciated.