Answers for "how to rezise images in css"

CSS
0

how to resize after image in css

<a href='foo.pdf'class='pdflink'>A File !</a>

/* .pdflink:after {
    content: url('/images/pdf.png')
} */

.pdflink:after {
    background-image: url('/images/pdf.png');
    background-size: 10px 20px;
    display: inline-block;
    width: 10px;
    height: 20px;
    content: "";
}
Posted by: Guest on December-02-2021
1

scale down image css

img.resize {
    width: 540px; /* you can use % */
    height: auto;
}
Posted by: Guest on January-29-2021

Browse Popular Code Answers by Language