Switch style IE7

Discussion in 'CSS' started by coldclimber, May 27, 2007.

  1. #1
    I have created two style sheets for my site one for firefox and one for IE7 as the site breaks in IE7 but how do i get the page to recognizes that it is being viewed in IE and then chooses that style sheet
     
    coldclimber, May 27, 2007 IP
  2. coldclimber

    coldclimber Peon

    Messages:
    266
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ok i got that one sortedwith this
    <!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="styleIE.css" />
    <![endif]-->
    Code (markup):
    now i can not get the site to sit in the center of the page in firefox it works with

    body {
    background-image:url(back.jpg);
    background-position:top;
    background-repeat:repeat-x;
    background-attachment:fixed;
    background-color:#354d6c;
    
    }
    div.Table_01 {
    	position:absolute;
    	top: 0;
      right:0;
      bottom: 0;
      left:0;
      margin: auto;
    	width:858px;
    	height:710px;
    }
    Code (markup):
    but with IE i can not get it to sit in the center of the borwser
     
    coldclimber, May 27, 2007 IP
  3. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Standard question #1. What does the HTML for the entire page look like?

    Standard question #2. What does the CSS for the entire page look like?

    Bear in mind, I am an architecht-level HTML/CSS coder, so I may recommend a complete redesign (and show you how to do it). Chances are that if you need a separate stylesheet for IE 7, you've done something wrong (quite possibly without realizing it, for which I would not fault you but show you how to fix it instead).
     
    Dan Schulz, May 27, 2007 IP