Bonjour à tous,
Je suis en plein test d'un élément genre ticket pour une news.
Tout fonctionne au top mais malheureusement sous IE7 j'ai un petit saut d'environ 2-3 pixels vers le bas au niveau du <h2> et de la dernière ligne du <p>... et mon <div id="news_cel_right"> saute complètement....
Est-il possible de règler ce problème ? Si oui merci d'avance pour votre aide ;-)
Le CSS
et le HTML
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108 body { background: #0d0e13; color:#FFF; font-family:Tahoma, Geneva, sans-serif; font-size:12px; line-height:1.1em; font-size-adjust:none; font-stretch:normal; font-style:normal; font-variant:normal; font-weight:normal; line-height:normal; margin:0px; } a img { border: 0 none; } a { outline: none; } /* TEST */ #news_cel { border-top:1px solid #09090a; border-left:1px solid #09090a; border-right:1px solid #09090a; width:450px; height:77px; background:#333; margin:0px; } #news_cel a { text-decoration:none; } #news_cel h1 { color:#B10000; text-transform:uppercase; font-size:13px; font-family:Tahoma, Geneva, sans-serif; font-weight:bold; margin:1px 0px 0px 10px; display: inline; position: absolute; } #news_cel .phone { color:#5c5c5d; font-size:13px; font-family:Tahoma, Geneva, sans-serif; font-weight:bold; margin-left:5px; } #news_cel p { color:#FFF; font-size:12px; font-family: Arial, Helvetica, sans-serif; font-weight:normal; display:inline; position:absolute; width:250px; line-height:1.4em; margin-left:10px; margin-top:25px; } #news_cel .thumb { margin:5px 0px 10px 5px; border:1px solid #FFF; float:left; } #news_cel .thumb:hover { border:1px solid #B10000; opacity:0.7; filter : alpha(opacity=70); } #news_cel_right { border-left:1px solid #09090a; float:right; height:77px; text-align:center; margin:0; width:110px; } #news_cel:hover #news_cel_right { background:url(../img/bck_news.png) repeat-x; cursor:pointer; } #news_cel_right .date { color:#575758; font-size:10px; font-family: Arial, Helvetica, sans-serif; font-weight:normal; display:block; margin-top:3px; } #news_cel_right h2 { color:#FFF; text-transform:uppercase; font-size:11px; font-family:Tahoma, Geneva, sans-serif; font-weight:bold; margin:10px 0px 0px 0px; } #news_cel_right img { margin-top:10px; margin-left:auto; margin-right:auto; } #news_cel_right a:link, a:hover, a:visited { text-decoration:none; }
Merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Test CSS</title> <link href="css/teststyle.css" rel="stylesheet" type="text/css" /> </head> <body> <br /> <br /> <div id="news_cel"> <a href="#"><img src="image.jpg" class="thumb"/></a> <a href="#"> <div id="news_cel_right"> <span class="date">27 Septembre 2009</span> <img src="img/arrow.gif" /> <h2>VOIR LE PROFIL</h2> </div> </a> <h1>Pseudo & Pseudo 1</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sit amet risus sem, semper iaculis ligula...</p> </div> <div id="news_cel"> <a href="#"><img src="image.jpg" class="thumb"/></a> <a href="#"> <div id="news_cel_right"> <span class="date">27 Septembre 2009</span> <img src="img/arrow.gif" /> <h2>VOIR LE PROFIL</h2> </div> </a> <h1>Pseudo & Pseudo 2</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sit amet risus sem, semper iaculis ligula...</p> </div> <div id="news_cel"> <a href="#"><img src="image.jpg" class="thumb"/></a> <a href="#"> <div id="news_cel_right"> <span class="date">27 Septembre 2009</span> <img src="img/arrow.gif" /> <h2>VOIR LE PROFIL</h2> </div> </a> <h1>Pseudo & Pseudo 3</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sit amet risus sem, semper iaculis ligula...</p> </div> </body> </html>
Partager