good plan: <svg width=“20px” height=“20px” … > you can easily override with CSS and it prevents… (see image)http://d.pr/i/cHS2/2XMaVh29
-
-
Replying to @chriscoyier
`width=` and `height=` attributes in HTML/SVG don’t need the `px` unit. They’re always in pixels.
1 reply 1 retweet 8 likes -
Replying to @mathias
@snhasani@chriscoyier also some browsers don't understand an AUTO value for It... bad for responsive!1 reply 0 retweets 0 likes
Replying to @lannisterogilvy
That makes sense, as it’s HTML, not CSS. `width` and `height` HTML attributes predate CSS. +@snhasani @chriscoyier
9:45 AM - 17 Nov 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.