I would suggest rather than reinventing the wheel, that you use one of the responsive frameworks that are free of charge. This will both simplify your work, ensure that it works on a variety of browsers, and make it easier for both you and others to maintain.
One example is Skeleton. There are versions of this for WordPress, Ruby, Drupal, etc. and it works down to IE7!