1. Google "Responsive web design" and "css media queries".
2. Do some reading.
3. Take a look at this:
https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries[
^]
As mentioned above, if you use the word 'resolution', you are already in trouble.
If you start by step #3, chances are you'll have to go back to #1 and #2 in order to understand why you have to do what you have to do.
Have a nice day,
Pablo.