Toon posts:

[HTML/CSS] Héééél vaag IE6 probleem

Pagina: 1
Acties:

Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Hoi,

ik heb in HTML 2 div's gefloat naast elkaar, met een left margin van 8 px. In alle browsers gaat dit goed... behalve natuurlijk in IE6, daar krijg ik naast de eerste div een extra padding van 8px. Ik heb al vanalles in css geprobeerd maar krijg dit niet opgelost. Kan iemand me zeggen waaraan dit ligt.

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<title>Test</title>
<style>
body {margin:0;padding:0; background-color:#FFFF00;}
.floatdiv {
    float: left;
    margin: 0 0 0 8px;
    width:150px;
    background-color:#00CCFF;
    
}

</style>
</head>
<body>
    <div class="floatdiv">test</div>
    <div class="floatdiv">test2</div>
    <div style="clear:left;"><!-- clear --></div>
</body>
</html>


De bovenste browser is ie6, de onderste ie7
Afbeeldingslocatie: http://users.telenet.be/cliffsmoke/strange.gif

Acties:
  • 0 Henk 'm!

  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

En je bug is hier niet listed: http://www.positioniseverything.net/explorer.html? ;)

Heel simpel, al je vage IE6 problemen zouden op PositionIsEverything moeten staan :)

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


Acties:
  • 0 Henk 'm!

  • Norckon
  • Registratie: September 2000
  • Laatst online: 01-09 21:26
Dat is de bekende double margin bug:
http://www.positionisever...lorer/doubled-margin.html

Acties:
  • 0 Henk 'm!

  • ClickTwice
  • Registratie: Augustus 2008
  • Laatst online: 26-09 11:03
[EDIT]Excuses je css niet goed bekeken.

[ Voor 78% gewijzigd door ClickTwice op 04-12-2008 14:20 ]


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter

Acties:
  • 0 Henk 'm!

Verwijderd

Gebruik padding indien mogelijk in deze situatie of maak het zo dat de margin aan de rechter kant komt te staan.
Pagina: 1