3 ms·
Okay; would you like it to change to inline-block or block or grid? Width and height are meaningless for inline elements, but automatically changing the displa
by Izkata 10mo ago
Okay; would you like it to change to inline-block or block or grid?
Width and height are meaningless for inline elements, but automatically changing the display would be more confusing, not less.
- gmiller123456 10mo ago> Width and height are meaningless for inline elements Really not sure what you're trying to get at there, obviously any element that displays will have a width and height. Maybe you meant a user specified width/height, but the entire point of my post is an inline-block is an inline element with a specifiable width and height. And we've always had the IMG tag, which is also an inline element with a specifiable width and height. The obvious and intuitive choice would have been to not put artificial limits on inline elements.
- bigbuppo 10mo agoIt's not a limit. It's an expected behavior and you can still deviate from that anyway you wish. You could even do something crazy like `* {display: block;}` if you really want, and then go from there. Nobody can stop you. The freedom is yours.