.card {
font-family: arial;
font-size: 20px;
text-align: center;
color: black;
background-color: white;
}
.centered-block {
display: inline-block;
text-align: left;
max-width: 85vw;
}
img {
display: block;
margin: 10px auto -15px auto;
width: 600px;
max-width: 85vw;
height: auto;
}
/* iPhone 13 Pro Max: 2778x1284 pixels at 458ppi */
@media only screen
and (device-width: 428px)
and (device-height: 926px)
and (-webkit-device-pixel-ratio: 3) {
.centered-block {
max-width: 90vw;
}
img {
max-width: 90vw;
height: auto;
margin-bottom: -20px;
}
}
/* Macbook Pro - DOES NOT WORK*/
@media only screen
and (min-device-width: 1280px)
and (max-device-width: 1440px)
and (-webkit-min-device-pixel-ratio: 2) {
img {
max-width: 300px;
}
}
As shown In the image above, pictures on Anki appear distorted presumably because the width is set to 600px. The reason I’ve done this is because when I take screenshots and paste, without a width specified the images are too big and I can’t view them easily.
Any ideas please?
Happy to transfer £5 on PayPal if anyone can help me as I have exams and really need these cards to work.