PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Problem mit dem Internet Explorer



todddt
30.04.2006, 13:41
Hallo Zusammen,
vielleicht kann mir ja jemand helfen.
ich hab ein Problem mit Tabellen im Internet Explorer. Ich bin darauf angewiesen, das cellpadding und cellspacing tatsächlich "0" sind, da ansonsten Bilder eine Unterbrechnung haben, die sie nicht haben dürfen. Mein html-tag für Tabellen lautet daher:

<table border="0" cellspacing="0" cellpadding="0" id="schrift">

in den gängigen Browsern läuft es auch sehr gut. nur im internet explorer entsteht eine Lücke.
Bildausschnitte:

http://www.nadix.de/img/richtig.gif
1 richtig

http://www.nadix.de/img/falsch.gif
2 falsch (im ie)

Ich kenne nur eine Möglichkeit das zu umgehen: alles in eine Reihe zu programmieren. Doch das wird bei einem relativ großem Inhalt zu einer sehr unübersichtlichen Sache.

Hat da jemand einen anderen Lösungvorschlag?
Danke schon mal im voraus

GameR
30.04.2006, 14:20
Hallo Zusammen,
vielleicht kann mir ja jemand helfen.
ich hab ein Problem mit Tabellen im Internet Explorer. Ich bin darauf angewiesen, das cellpadding und cellspacing tatsächlich "0" sind, da ansonsten Bilder eine Unterbrechnung haben, die sie nicht haben dürfen. Mein html-tag für Tabellen lautet daher:

<table border="0" cellspacing="0" cellpadding="0" id="schrift">

in den gängigen Browsern läuft es auch sehr gut. nur im internet explorer entsteht eine Lücke.
Bildausschnitte:

http://www.nadix.de/img/richtig.gif
1 richtig

http://www.nadix.de/img/falsch.gif
2 falsch (im ie)

Ich kenne nur eine Möglichkeit das zu umgehen: alles in eine Reihe zu programmieren. Doch das wird bei einem relativ großem Inhalt zu einer sehr unübersichtlichen Sache.

Hat da jemand einen anderen Lösungvorschlag?
Danke schon mal im voraus

Wenn du noch den CSS-Code geben würdest?

Es gibt oft solche Probleme im IE...

todddt
30.04.2006, 15:21
ich habe eigentlich nur schriften vorgegeben.
margin, padding (die css-rahmen) sind erst im info-teil der seite gegeben.
das eizige, das mit id eingebunden ist, ist hier "schrift". ansonsten habe ich die links in der angesprochenen tabelle z.B. per <div class="logo">...</div> eingebunden.

css-code:

.logo a:link,.logo a:visited {color:#000000; font-size: 11px; font-family: sans-serif; text-decoration:none;}
.logo a:hover,.logo a:active {color:#000000; font-size: 11px; font-family: sans-serif; text-decoration:none; border-left: left; border-right: none; border-top: none; border-bottom: 1px solid #aa0000;}

.nav a:link,.nav a:visited {color:#ffffff; font-size: 11px; font-family: sans-serif; text-decoration:none;}
.nav a:hover,.nav a:active {color:#ffffff; font-size: 11px; font-family: sans-serif; text-decoration:none;}

a:link,a:visited {color:#000000; font-size: 11px; font-family: sans-serif; text-decoration:none;}
a:hover,a:active {color:#000000; font-size: 11px; font-family: sans-serif; text-decoration:none;}

#schrift { font-family: sans-serif; font-size: 11px;}

#rahmen { background-color: #f5f5f5; font-family: sans-serif; font-size: 11px; padding-left: 10px; padding-right: 10px; padding-bottom: 15px; padding-top: 15px; border-right: 1px dotted #680000; border-left: none; border-top: none; border-bottom: none;}

#rahmen1 { background-color: #f5f5f5; background-image: url(../img/back_rechts.gif); background-repeat: no-repeat; font-family: sans-serif; font-size: 11px; padding-left: 10px; padding-right: 10px; padding-bottom: 15px; padding-top: 15px; border-right: none; border-left: 1px dotted #680000; border-top: none; border-bottom: none;}

#rahmen2 { background-color: #f5f5f5; font-family: sans-serif; font-size: 11px; padding:10px; margin:10px; border: 1px dotted #680000;}

#rahmen3 { background-color: #f5f5f5; font-family: sans-serif; font-size: 11px; padding:15px; margin:25px; border: 1px dotted #680000;}