Genie: Nachtrag

Beitrag lesen

Hab aus Versehen die Farben vertauscht. Außerdem hier neue Version:

  
<style type="text/css">  
[code lang=css]#status  
{  
 width:100px; /* Gesamtbreite */  
 padding:0px;  
}  
#green  
{  
 width:50%; /* hier Breite des grünen Bereichs in Prozent */  
 margin:0px;  
 height:1em;  
 float:left;  
 padding: 0px;  
 background-color:green;  
}  
#red  
{  
 width:50%; /* hier Breite des roten Bereichs in Prozent */  
 margin:0px;  
 height:1em;  
 float:right;  
 padding: 0px;  
 background-color:red;  
}

</style>

<div id="status">
<div id="green" title="...">&nbsp;</div>
<div id="red" title="...">&nbsp;</div>
</div>
[/code]