3 ms·
> For example, images should have their width and height set so that the page doesn't re-layout when they're loaded. I hate this idea. What if I just want the
by wfunction 10y ago
> For example, images should have their width and height set so that the page doesn't re-layout when they're loaded.
I hate this idea. What if I just want the photo to be there at its natural size? Why should I keep updating my CSS when I change the photo?
- ajdlinux 10y agoThis feels like something that could be dynamically inserted server-side.
- fluxsauce 10y ago> Why should I keep updating my CSS when I change the photo? They're talking about the HTML image attributes so layout placeholders can be rendered, not CSS. The original height and width should be specified and styling can optionally be applied in CSS.
- wfunction 10y agoReplace CSS with HTML? The question applies to either.