Results 1 to 2 of 2

Thread: Newbie Question About IE Conditional Statements

  1. #1
    Join Date
    Oct 2008
    Posts
    163

    Newbie Question About IE Conditional Statements

    Ok, so far I have not really had need for Conditional Statements (hacks) to get IE to work the way I wanted it to. However, now I got one lousy page that won't display right in IE7.

    I need to increase the height of my columns (using a 3-column setup).

    Lets say that my code looks like this:

    <link rel="stylesheet" type="text/css" href="cvp.css">
    <style type="text/css">
    #col1 {height: 50px;}
    #col2 {height: 50px;}
    #col3 {height: 50px;}

    This example page needs to be a bit taller than called for in the css file - that's why the extra code.

    My newbie question is this, how and where exactly do I stick this hack?

    Thanks for any help,
    Vance

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    <link rel="stylesheet" type="text/css" href="cvp.css">
    <!--[if IE 7]>
    <style type="text/css">
    #col1 {height: 50px;}
    #col2 {height: 50px;}
    #col3 {height: 50px;}
    </style>
    <![endif]-->
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •