Ulysses: IE Stylesheet richtig einbinden

Beitrag lesen

Hi!
Und ES funzt doch!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml">  
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
<title>CC-Test</title>  
<link type="text/css" href="style.css" rel="stylesheet" />  
<!--[if IE 7]>  
    <style type="text/css">@import url(layout_ie.css);</style>  
  <![endif]-->  
</head>  
<body>  
<h1>CC-Test</h1>  
<p>Und ES funzt doch!</p>  
</body>  
</html>

style.css:
h1 {color: red;}

layout_ie.css:
h1 {color: blue;}

„CC-Test“ blau im IE7 ansonsten rot

LG Ulysses