Hallo,
auch ne tolle Idee. Aber CSS-Hack? Man könnte die Anweisung doch auch in ein Condition Comment packen?
Sagen wir Folgendes:
<!--[if IE]>
.formular-ie { background-attachment:fixed; }
<![endif]-->
Sowie die Styles in der CSS-Datei:
.formular {
background-color: #83CE9E;
background-image: url(form_bg.gif);
background-repeat: no-repeat;
border-top: 1px solid #FFF;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
border-left: 1px solid #FFF;
}
Und die Textarea:
<textarea name="antwort" cols="30" rows="6" class="formular formular-ie"></textarea>
Ich habs nicht getestet, sollte aber gehen. Dazu aber eine Frage: Der Selektor formular-ie ist nur dem IE bekannt, für die anderen Browser ist er quasi nicht definiert. Würde das etwas machen (auch in Hinsicht auf den W3C-Standard)?
Harald