SCHNittER: Layer

Hallo,

hiermit bitte ich dringend um Hilfe!

Ich habe ein Layer-Untermenu, in dem die Links Grafiken sind. Diese sollen eigentlich im Abstand von 1 Pixel untereinanderstehen.

Problem: im IE sind Abstände von ca. 5 Pixels (ohne pix.gif, und ca. 10 pixels mit pix.gif) die ich auch durch Änderung der Layergröße nich wegbekomme.
Netscape machts (ausnahmsweise) korrekt.

Quelltext:

<div id="m1" style="position:absolute; left:0; top:19; width:159px; height:113px; z-index:3; visibility: hidden" >
  <a href="bsp.htm" onMouseOver="on(2)" onMouseOut="off(2)" onClicked="goframe(1)"><img src="img/1_1_off.jpg" width="159" height="18" border="0"></a>
  <img src="img/pix.gif" width="1" height="1" border="0">
  <a href="ms.htm" onMouseOver="on(3)" onMouseOut="off(3)" onClicked="goframe(1)"><img src="img/1_2_off.jpg" width="159" height="18" border="0"></a>
  <img src="img/pix.gif" width="1" height="1" border="0">
  <a href="dbs.htm" onMouseOver="on(4)" onMouseOut="off(4)" onClicked="goframe(1)"><img src="img/1_3_off.jpg" width="159" height="18" border="0"></a>
  <img src="img/pix.gif" width="1" height="1" border="0">
  <a href="gi.htm" onMouseOver="on(5)" onMouseOut="off(5)" onClicked="goframe(1)"><img src="img/1_4_off.jpg" width="159" height="18" border="0"></a>
  <img src="img/pix.gif" width="1" height="1" border="0">
  <a href="md.htm" onMouseOver="on(6)" onMouseOut="off(6)" onClicked="goframe(1)"><img src="img/1_5_off.jpg" width="159" height="18" border="0"></a>
  <img src="img/pix.gif" width="1" height="1" border="0">
  <a href="gk.htm" onMouseOver="on(7)" onMouseOut="off(7)" onClicked="goframe(1)"><img src="img/1_6_off.jpg" width="159" height="18" border="0"></a>
</div>

Wer kann helfen!!!

  1. Hallo,

    hiermit bitte ich dringend um Hilfe!

    Ich habe ein Layer-Untermenu, in dem die Links Grafiken sind. Diese sollen eigentlich im Abstand von 1 Pixel untereinanderstehen.

    Wo defnierst du das?

    Problem: im IE sind Abstände von ca. 5 Pixels (ohne pix.gif, und ca. 10 pixels mit pix.gif) die ich auch durch Änderung der Layergröße nich wegbekomme.
    Netscape machts (ausnahmsweise) korrekt.

    Welcher Netscape?
    Bei neueren Versionen, ist es die Regel das es korrekt ist, nur der IE macht halt aus falschen Code, irgendwas, was manche Leute als das Richtige definieren.

    Quelltext:

    <div id="m1" style="position:absolute; left:0; top:19; width:159px; height:113px; z-index:3; visibility: hidden" >

    top:19 <- was?
    hier muss eine Einheit hin!

    <a href="bsp.htm" onMouseOver="on(2)" onMouseOut="off(2)" onClicked="goframe(1)"><img src="img/1_1_off.jpg" width="159" height="18" border="0"></a>
      <img src="img/pix.gif" width="1" height="1" border="0">
      <a href="ms.htm" onMouseOver="on(3)" onMouseOut="off(3)" onClicked="goframe(1)"><img src="img/1_2_off.jpg" width="159" height="18" border="0"></a>
      <img src="img/pix.gif" width="1" height="1" border="0">
      <a href="dbs.htm" onMouseOver="on(4)" onMouseOut="off(4)" onClicked="goframe(1)"><img src="img/1_3_off.jpg" width="159" height="18" border="0"></a>
      <img src="img/pix.gif" width="1" height="1" border="0">
      <a href="gi.htm" onMouseOver="on(5)" onMouseOut="off(5)" onClicked="goframe(1)"><img src="img/1_4_off.jpg" width="159" height="18" border="0"></a>
      <img src="img/pix.gif" width="1" height="1" border="0">
      <a href="md.htm" onMouseOver="on(6)" onMouseOut="off(6)" onClicked="goframe(1)"><img src="img/1_5_off.jpg" width="159" height="18" border="0"></a>
      <img src="img/pix.gif" width="1" height="1" border="0">
      <a href="gk.htm" onMouseOver="on(7)" onMouseOut="off(7)" onClicked="goframe(1)"><img src="img/1_6_off.jpg" width="159" height="18" border="0"></a>
    </div>

    Wer kann helfen!!!

    Das hat damit zu tun, das die Zeilen automatisch umgebrochen werden. Wenn du ein <br> einsetzt ist der Abstand weg. Aber wie man denn Abstand so wegkriegt, weiss ich nicht, da muss ich mal ein wenig recherechieren.
    (Im NC 4.x ist der abstand übrigens auch da)

    Struppi.

    1. Welcher Netscape?

      6.2

      top:19 <- was?
      hier muss eine Einheit hin!

      danke, war mir im Quelltextgewusel ganz entgangen

      Das hat damit zu tun, das die Zeilen automatisch umgebrochen werden. Wenn du ein <br> einsetzt ist der Abstand weg. Aber wie man denn Abstand so wegkriegt, weiss ich nicht, da muss ich mal ein wenig recherechieren.
      (Im NC 4.x ist der abstand übrigens auch da)

      Struppi.

      Danke fürs erste, mit <br> klappts