xdream1328: Firefox setzt margin-top obwohl explizit auf null

Beitrag lesen

Hallo ingo

Hi,

Aber sinnvoller wäre in diesem Fall statt eines p wohl ein span, da es sich bei "+" kaum um einen Textabsatz handeln dürfte und ich auch kein hierfür passendes Element wüßte.

freundliche Grüße
Ingo

danke für den tip, ich hab das jetzt mit span gelöst und über margin an den rechten rand gebracht, jetzt siehts in beiden browsern fasst identisch aus. die Dokumenttyp-Deklarationen hab ich auch noch geändert. vielen dank dafür

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>cross-test</title>
<style type="text/css">
<!--
html, body {
 background-color: #000000;
         font-family: arial;
         font-size: 11pt;
}

div#cont {
 width: 300px;
         height: 400px;
         position: absolute;
         top: 100px;
         left: 85px;
         background-color: #FF0000;
         overflow: hidden;
}

.cross {
 font-family: Arial, sans-serif;
         color: #000000;
         font-size: 30px;
}
-->
</style>

</head>
<body>
 <div id="cont">
          <div style="margin: 0; width: 100%; line-height: 30px;">
   <span class="cross" style="text-align: left;">+</span><span class="cross" style="margin-left: 265px; text-align: right">+</span>
                 </div>
                 <div style="margin: 340px 0 0 0; width: 100%; line-height: 30px;">
   <span class="cross" style="text-align: left;">+</span><span class="cross" style="margin-left: 265px; text-align: right">+</span>
                 </div>
         </div>
</body>
</html>

danke und greetz

xdream1328

--
~~~~~~~~~~~~~~~~~~~~~~~~~
amplid ::: next level riding
http://www.amplid.com
~~~~~~~~~~~~~~~~~~~~~~~~~