There is a div
element and its size (both width and height) depends on its content. The content is loaded dynamically, so sometimes div
width is greater than height and sometimes otherwise.
Is it possible to set different backgrounds in CSS for the case when width > height
and for the case when width < height
without JS?
I mean something like orientation
media query, but for a given element, not the whole screen.