Ik heb een divje (dat een post voorstelt). Dit divje word weer opgedeeld in twee aparte stukjes, eentje met de tekst en ander met foto's, nu wil ik deze twee divjes tegen elkaar laten floaten maar dan vervallen de margin en background-color die ik heb mee gegeven.
Hier staat de html
Internet Explorer doet alles goed zoals ik het zou willen alleen firefox ziet iets wat ik fout doe.
Cascading Stylesheet:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
| #postholder{ position: absolute; top: 30px; left: 0px; width: 575px; height: auto; background-color: #28323C; margin: 0px 0px 0px 0px; } /*De post an sich*/ .post{ width: 555px; background-color: white; margin: 10px 10px 10px 10px; } .posttext { padding: 5px 5px 5px 5px; width: 400px; text-align: justify; float: left; } .posttext p{ margin: 0px 0px 0px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 11px; } .posttext h1{ margin: 0px 0px 0px 0px; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; } .postfotos { width: 140px; background-color: #DED2C8; margin-top: 20px; float: left; } |
Hier staat de html
Internet Explorer doet alles goed zoals ik het zou willen alleen firefox ziet iets wat ik fout doe.