Home > Back-end >  how to resize an image on a page to a percentage of the page width
how to resize an image on a page to a percentage of the page width

Time:05-02

Like in the subject I don't know how to set width of an image on a page ot a percentage of page width. I mean something like this. img {width: calc(width-page*16.5%);}

CodePudding user response:

if it's viewport then vw (stands for viewport width)

  • Related