Using the same image 4 times or more in CSS

Asked

Viewed 91 times

0

inserir a descrição da imagem aqui

I’d like to use that photo three more times next to each other, only I can’t multiply it

  • 1

    I’m sorry, but it didn’t make sense to me what you need. What exactly do you want to do? If it’s replicating the image on the page, why not just replicate the HTML element that has the image? What is the CSS relation in the problem?

  • so I didn’t want to put the same image in html 4 times tendeu

  • I think I would weigh in the page loading if I did that, which is why I wanted to replicate it by css, uprating it once

  • Even with HTML, the browser will only require the image once. If the image is part of the page content, it should be an element <img>, otherwise you will be hurting the semantics of your code.

  • Aaah, thank you so much so Anderson, I knew I could do so, only I was afraid of the weight of the site with more images

  • It will load the image once, it will stay in the browser cash, and whenever you call the image in html will be the same image even if 1000x

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.