PDA

View Full Version : Newbie Question About IE Conditional Statements



Vance
15 Feb 2009, 11:09 PM
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

Wickham
16 Feb 2009, 05:23 AM
<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]-->