SPAN in DIV Problem

Status
Nicht offen für weitere Antworten.

speicher

Erfahrenes Mitglied
Hallo ich wollte mal um ein wenig Hilfe fragen.

Ich habe eine html/php(kommt noch hinein)-Datei

PHP:
<!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" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link rel="stylesheet" type="text/css" href="ma_alt.css">
<style type="text/css">
<!--
@import url(ma_neu.css);
-->
</style>
</head>
<body>

<div class="box1">
<span style="position: absolute; left: 3; top: 6">
<img src="ger.gif">
<img src="gb.gif">
<img src="swe.gif">
</span>
</div>


<div class="box2">
    box 2

    <div class="box3">
    box3 in box 2
    </div>
    
</div>

</body>
</html>

und eine separate CSS Datei

Code:
body {
background-image: url(hintergrund2.jpg);
background-repeat: no-repeat;

}

.box1 {
background-color:red;
position:absolute;
z-index:2;
left:350px;
top:22px;
height: 100px;
width:450px;

}

.box2 {
position:absolute;
left:250px;
top:130px;
height: 100px;
width: 50px;
}

.box3 {
height: 100px;
width: 50px;
}

.box4 {
background-image: url(menu.jpg);
background-repeat: no-repeat;
position:absolute;
z-index:1;
left:15px;
top:285px;
height: 288px;
width: 250px;
filter:alpha(opacity=85); -moz-opacity:0.85; opacity:0.85;
}


Nun habe ich versucht im SPAN -Tag mittels <span style="position:relative; left: 13; top: 6"> die Grafiken zu verschieben, doch leider passiert nichts. Woran liegt das
 
Hallo,

du hast keine Einheit (px) für die Werte gewählt.

Code:
<span style="position: absolute; left: 3px; top: 6px;">
greez, maik.l
 
Danke vielmals...nun geht es, aber ich dachte, dass diese Angaben keine Pflicht sind....aber anscheinend ja doch.
 
Status
Nicht offen für weitere Antworten.
Zurück