I need to place some graphic elements in a div that is supposed to be seen on various screens with different resolutions (for example, mobile screens). Just for example, something similar to the “X” button that closes an overlay window. I might think of several options to implement it:
- Have several JPEGs (one for each resolution) and select them in JavaScript
- Render the graphics (it is simple) using HTML5 features
- Any CSS support probably?
- Anything else?
It would be great to have any kind of advice/well-known practice, so I won’t reinvent the wheel.
css rule:
no?
And use @media rule: