is it possible to behave according to the user's resolution?
Not with CSS, no. But with JS, sure.
if (window.screen.width <= 800 && window.screen.height <= 600) { //do something(); }