Help! Need CSS Code to Adjust Fluid theme to older 1024 resolution

Discussion in 'HTML & Website Design' started by stain666, Apr 23, 2010.

  1. #1
    Hello, I'm redesigning my wordpress theme and I'm using a fluid theme to jump into the future for larger resolution sizes. I didn't want the entire site to be too wide so I set it at 90%. The problem is my site still has a following of readers (cavemen) using old school resolutions. I was wondering if there was a code like: <!--[if lte IE 6]> "style" </div><![endif]--> that I could add to the header that would adjust to just than screen size???? Please help? love to chat with a fellow designer. Thanks in advance. Tryed somthing like this but thought thered be an easir way <script type="text/JavaScript">
    var screenwidth = screen.width;
    if (screenwidth <= 1024) {
    document.write('<link rel="stylesheet" href="http://cache.techie-buzz.com/ntc/regular.css" type="text/css" media="screen" />');
    }
    else {
    document.write('<link rel="stylesheet" href="http://cache.techie-buzz.com/ntc/widescreen.css" type="text/css" media="screen" />');
    }
    </script>
     
    Last edited: Apr 23, 2010
    stain666, Apr 23, 2010 IP