Problem mit CSS
Hi,
Ich habe folgendes Problem:
Ich habe 2 absolute Layer eins mit z-index 1 und 1 mit 2. 1 ist im hintergrund und 2 im vordergrund. Der Text auch. Aber das Select Tag will immer ganz nach vorne. Egal was für ein Z-index:
<html>
<head>
<title>Test Seite
</title>
<style type="text/css">
<!--
.div1 { position:absolute;background-color:#FF0000;border:5px solid #000000;height:200px;width:300px;left:100px;top:50px;z-index:1; }
.div2 { position:absolute;background-color:#FFFF00;border:5px solid #000000;height:200px;width:300px;left:200px;top:150px;z-index:2; }
//-->
</style>
</head>
<body>
<div class="div1">
<select size="8" multiple>
<option>TEEEEEEEEEEEEEEEEEEEEEST
</option>
<option>TEEEEEEEEEEEEEEEEEEEEEST
</option>
<option>TEEEEEEEEEEEEEEEEEEEEEST
</option>
<option>TEEEEEEEEEEEEEEEEEEEEEST
</option>
<option>TEEEEEEEEEEEEEEEEEEEEEST
</option>
<option>TEEEEEEEEEEEEEEEEEEEEEST
</option>
<option>TEEEEEEEEEEEEEEEEEEEEEST
</option>
<option>TEEEEEEEEEEEEEEEEEEEEEST
</option>
</select><br />TEEEEEEEEEEEEEEEEEEEEEST
</div>
<div class="div2">
</div>
</body>
</html>
Antwort schreiben
Antwort 1 von tomslawik vom 05.08.2020, 22:11 Options
Das ganze ist aber nur beim IE 6 nicht beim Mozilla.
Antwort 2 von katy vom 17.08.2020, 14:11 Options
Hallo tomslawik,
die Elemente wie Eingabefelder, Auswahlfelder, Button werden nicht vom Browser sondern vom Betriebssystem erstellt und entziehen sich dadurch teilweise der Beeinflussbarkeit durch CSS.
Kurz gesagt: das ist eben so!
katy
Antwort 3 von Supermax vom 17.08.2020, 14:46 Options
Die CSS-Unterstützung des IE 6 ist, einfach ausgedrückt, äußerst bescheiden, da kann man leider auch nichts machen.