li Listen Problem IE reagiert nicht FF reagiert

Status
Nicht offen für weitere Antworten.

AdamRiese$

Grünschnabel
Hallo nachdem ich sämtliche Foren durch sucht hatte und es immer noch nicht klappt :confused: wende ich mich an euch .

Will einen Listenabstand der Zeilen erreichen. Mit firefox(FF) klappt es:

HTML:
<div id="boxOB2">
  <ul>
    <li>1.Zeile <input id="input1"  name="1.Zeile" type="text" >*</li>
    <li>2.Zeile<input id="input2"  name="2.Zeile" type="text" >* </li>
  </ul>
</div>

Ohne Input funktioniert in beiden.
hier css Code
HTML:
ul {
  margin: 0.7em 0em 0em 1em;
  list-style-type:     none;
  padding:          0px 0px 0px 0px;
}

li {line-height: 30px;}

#input1 {
  width:                300px;
  margin: 0px 0px 0.0px 100px; /*AussenAbstand*/
  padding: 0px 0px 0px    0px;   /*InnenAbstand*/
  font-family: Times New Roman,arial,sans-serif;
  border:   1px solid #001788;
  font-size:              1em;
  color:              #001788;
}
#input2 {
  width:                300px;
  margin: 0px 0px 0.0px 268px; /*AussenAbstand*/
  padding:  0px 0px 0px   0px;   /*InnenAbstand*/
  font-family: Times New Roman,arial,sans-serif;
  border:   1px solid #001788;
  font-size:              1em;
  color:              #001788;
}

Also das Problem ist wenn ich den input nicht in die <li> setze dann erhalte ich nie die selbe höhe der Zeilen.

Hoffe ihr könnt mir helfen ...
 
Hi,

das input-Element muß in diesem Markup "Block-Level-Charakteristika" erhalten.

mfg Maik
 
Hallo,

füge das hier in deinen css ein und nehme die <ul> und <li> tags weg und ersetze sie mit <p>.

Code:
* {
margin:0;
padding:0;
}


Gruss
 
Mein Vorschlag sieht so aus:

Code:
<div id="boxOB2">
  <ul>
    <li>1.Zeile</li><li><input id="input1"  name="1.Zeile" type="text"></li><li>*</li>
  </ul>
  <ul>
    <li>2.Zeile</li><li><input id="input2"  name="2.Zeile" type="text"></li><li>*</li>
  </ul>
</div>
Code:
ul {
  margin: 0.7em 0em 0em 1em;
  list-style-type:     none;
  padding:          0px 0px 0px 0px;
  clear:left;
}

li {line-height: 30px; float:left;}

li input {display:block;}

#input1 {
  width:                300px;
  margin: 0px 0px 0.0px 100px; /*AussenAbstand*/
  padding: 0px 0px 0px    0px;   /*InnenAbstand*/
  font-family: Times New Roman,arial,sans-serif;
  border:   1px solid #001788;
  font-size:              1em;
  color:              #001788;
}
#input2 {
  width:                300px;
  margin: 0px 0px 0.0px 268px; /*AussenAbstand*/
  padding:  0px 0px 0px   0px;   /*InnenAbstand*/
  font-family: Times New Roman,arial,sans-serif;
  border:   1px solid #001788;
  font-size:              1em;
  color:              #001788;
}
mfg Maik
 
Nachtrag:

Code:
ul {
  margin: 0 0em 0em 1em;
  list-style-type:     none;
  padding:          0px 0px 0px 0px;
  clear:left;
}
mfg Maik
 
Status
Nicht offen für weitere Antworten.
Zurück