3 ms·
> In terms of what you can't do with plain old inline CSS? AFAIK you cannot do responsive stuff (media queries) in the style attribute.
by tompazourek 5y ago
> In terms of what you can't do with plain old inline CSS?
AFAIK you cannot do responsive stuff (media queries) in the style attribute.
- Semiapies 5y agoI don't see than you can really work with arbitrary media queries in this, either. There are just some combinations of widths and orientations baked in, which is nothing new.
- tompazourek 5y agoYou're right that you still cannot do arbitrary media queries there. But from my experience (I'm not a designer though), staying within a set of predefined breakpoints (xs, sm, md, lg, xl) is often enough for most web pages. The style attribute doesn't allow you to do anything responsive at all on the other hand.
- Semiapies 5y agoThat's what classes are for. (Which this also reinvents.)