Codrops Tutorial: MAKING SVGS RESPONSIVE WITH CSS

Cross-browser fixes and hacks included. Note Internet Explorer width: 100%; addition to CSS.

An SVG can be embedded on a web page in many ways; one of which is embedding it inline in an HTML5 page using the <svg&rt; tag. The other commonly used techniques include embedding it as an image using the <img&rt; tag, embedding it using the <object&rt; tag, using an iframe, and as a CSS background image.

css-responsive-svg


source

Leave a Reply

Your email address will not be published. Required fields are marked *