@Shivani8693Submitted about 1 year ago
Jesus
@GalindezproAll comments
- @feroztiaSubmitted about 1 year ago
Hey guys! For me, it was a bit difficult at first to understand, how to change the image in desktop and mobile versions. Anyway, here's my solution for this challenge, it was pretty fun.
@GalindezproPosted about 1 year agoDe la manera que escribistes las imagenes:
<img id="desktop-img" src="/images/image-product-desktop.jpg" alt="chanel gabrielle perfume"> <img id="mobile-img" src="/images/image-product-mobile.jpg" alt="chanel gabrielle perfume"> </div>``` debes eliminar "/" al principio y el css puedes usar "DISPLAY: NONE" en una de las imagines para ocultarla, cuando uses el media query y debas cambiar de imagen le aplicas el "DISPLAY: NONE" para ocultar la imagen que se estaba mostrando y "DISPLAY: INLINE-BLOCK" para mostrar la imagen oculta
Marked as helpful0