You use CSS to create styles that can adjust to different resolutions.
Tutorial[
^]
If you need to be more dynamic than CSS can provide for you, you can also bring javascript into it. If you need to do that, I would suggest using jquery libraries as a lot of the cross-browser issues will already be dealt with.