skip to Main Content

Html – Setting up correct srcset option for image tag

Hello is this correct to show srcset in img tag? <img src="png-shat-should-be-showed-when-under-400px.png" alt="image" srcset="png-shat-should-be-showed-when-under-400px 400w, png-shat-should-be-showed-when-over-400px.png 400w" sizes="(max-width: 400px) 400px, 50vw"> I want to one img when under 400px viewport, and second port when viewport is over 400px. lets say…

VIEW QUESTION

Css – How to Mask a DIV with a SVG path

I try to create a HTML/CSS/JS funnel graph, with a simple front-end structure, in order to do so, I place funnel segments as a flex row: document.addEventListener( 'DOMContentLoaded', function() { let funnels = document.getElementsByClassName( 'funnel' ); for( let i =…

VIEW QUESTION
Back To Top
Search