You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use an API from TMDb and download the season posters of a series. On the documentation stand that every poster image has an aspect ratio of 1:1.5. But some images are bigger. Here is an example I've found while testing.
You see on image below that the specials poster is heigher then the image of season 1. The left picture has a size of 1000 x 1500 pixels. The right picture has a deviating size namely 400 x 578 pixels, but it must be 400 x 600 pixels.
My question is now is there a property in SaSS where I could change the height of an image dependent of the aspect ration of 1:1.5?
I've tried to add code below to my Sass code, but didn't solve the problem.
Weten jullie het antwoord op deze vraag? Set aspect ratio of image with SaSS. Heb er problemen mee
I use an API from TMDb and download the season posters of a series. On the documentation stand that every poster image has an aspect ratio of 1:1.5. But some images are bigger. Here is an example I've found while testing.
You see on image below that the specials poster is heigher then the image of season 1. The left picture has a size of 1000 x 1500 pixels. The right picture has a deviating size namely 400 x 578 pixels, but it must be 400 x 600 pixels.
My question is now is there a property in SaSS where I could change the height of an image dependent of the aspect ration of 1:1.5?
I've tried to add code below to my Sass code, but didn't solve the problem.
In my website, I use Angular 2, Typescript, SaSS and HTML. My code you can find on this Fiddle and below.
Antwoorden kan op Stack
The text was updated successfully, but these errors were encountered: