Bonjour à toute et tous.
Voilà mon problème, j’essaie désespérément d’insérer un bouton paypal à la suite de mon image mais sur la même ligne.
Sans succès, à chaque fois l’image de mon bouton se positionne sous ma 1ere image.
Par contre si je veux mettre deux fois la même image il ni y a pas de soucis !!
Que dois-je faire pour y parvenir ?
Merci de votre aide
Mon code xhtml
Code :
1 2 3 4 5 6 7 8
| <div class="post">
<h2>Mon Titre</h2>
<img src="images/monimage.gif" alt="" width="250" height="75" /><a class="active"></a>
<form action="https://www.paypal.com/le formulaire du bouton"> .......</form>
<br />
<p>et ici mon texte</p> |
Mon code css complet
Code css :
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 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295
| html, body {
height: 100%;
}
body {
margin : 0 ;
padding : 0 ;
background : #ff9a03 url(images/bg.jpg) repeat-x;
text-align : center;
font-size : 0.8em;
color : #000 ;
font-family : arial ;
}
a:active, a:focus{
outline:none;
}
/* SITE
********************************************************************/
#site {
position : relative;
width : 950px;
margin : 0 auto;
text-align : left ;
padding : 0px 0 0 0 ;
min-height: 100%;
background : url(images/bg-site.png) repeat-y
}
/* HEADER
********************************************************************/
#header {
position : absolute ;
left : 0;
top : 0;
height : 0px;
width : 100%;
background : url(images/header.png) repeat-x;
margin : 0;
z-index : 1;
}
#header div {
position : relative;
width : 950px;
margin : 0;
margin : 0 auto;
}
/* HEADER >> TITRE DU SITE >> H1
********************************************************************/
#header h1 {
position : absolute ;
right : 30px;
top : 150px;
color : #d00303;
margin : 0;
padding : 0 ;
font-size : 1.8em ;
text-transform : uppercase ;
font-weight : normal;
}
#header p {
position : absolute ;
right : 10px;
top : 30px;
color : #fff;
margin : 0;
padding : 0 ;
}
/* HEADER >> MENU PRINCIPAL
********************************************************************/
#header ul {
list-style : none ;
margin : 0;
padding : 0 0 0 10px ;
line-height : 60px;
float : left ;
}
#header li {
float : left ;
background : url(images/li-header.jpg) no-repeat left;
}
#headesqdsr li:first-child {
background : none ;
}
#header li a {
margin : 0 ;
padding : 0 10px 0 10px;
text-decoration : none ;
color : #fff ;
}
#header li a:hover {
color : #B32720 ;
}
#header li .active {
color : #B32720 ;
}
/* Main
********************************************************************/
#main {
overflow : auto ;
padding : 0 0 80px 10px;
}
/* CONTENU
********************************************************************/
#contenu {
width : 728px ;
float : left ;
margin : 0 ;
padding : 0 0 0px 0 ;
}
#presentation {
height : 192px ;
background : url(images/logoheader2.gif);
}
/* SIDE
********************************************************************/
#side {
width : 205px ;
float : left ;
padding : 0 ;
margin : 0;
}
#side h2 {
font-size : 1em ;
margin : 0 ;
padding : 0 0 0 20px ;
color : #fff ;
background : url(images/h2-side.jpg) repeat-x ;
height : 45px ;
line-height : 45px;
font-weight : normal
}
#side h3 {
font-size : 1em ;
margin : 10px 0 10px 0 ;
padding : 0 ;
color : #277CFA ;
}
#side ul{
list-style : none ;
margin : 5px 0 15px 0 ;
padding : 0 10px 0 20px;
color : #434343
}
#side li{
font-size : 1em ;
margin : 0 ;
padding : 8px 0 5px 15px;
background : url(images/li-side.jpg) left no-repeat ;
}
#side li a {
color : #434343 ;
text-decoration : none ;
}
#side li a:hover{
color : #93886a ;
text-decoration : none ;
}
#side p{
margin : 10px 0 25px 0 ;
padding : 0 0 10px 0;
color : #277CFA ;
border-bottom : 1px dotted #277CFA ;
}
#side span {
margin : 0 ;
padding : 0;
color : #277CFA ;
}
/* FOOTER
*******************************************************************/
#footer {
position : absolute ;
bottom : 0;
left : 10px ;
width : 100%;
height :80px;
font-size : 120%;
background : url(images/footer.jpg) no-repeat;
text-align : left ;
z-index : 1;
}
#footer p {
margin : 0 ;
padding : 20px 0 0 40px;
color : #E49999;
}
#footer a {
color : #fff;
text-decoration : none ;
}
#footer a:hover {
text-decoration : underline ;
}
#footer ul {
margin : 20px 0 0 40px;
padding : 0 ;
list-style : none;
float : left ;
}
#footer li {
margin : 0;
padding : 0 0 5px 0;
}
#footer li a {
margin : 0;
padding : 0 0 5px 0;
color : #E49999
}
/* POST
*******************************************************************/
.post {
background : url(images/post-bottom.jpg) bottom left ;
padding : 0 0 20px 0;
}
.post h2 {
height : 30px;
font-size : 1.2em ;
padding : 20px 0 0 40px;
margin: 0 ;
color : #000 ;
background : url(images/h2-cont.jpg) no-repeat;
}
.post h3 {
font-size : 1em ;
padding : 0 0 0 20px ;
margin: 10px 0 0 0 ;
color : #277CFA ;
}
.post h4 {
font-size : 1em ;
padding : 0 0 0 20px ;
margin: 10px 0 0 0 ;
color : #091348 ;
}
.post p {
padding : 0 20px 0 20px ;
margin : 10px 0
}
.post ul {
list-style : none;
margin : 0;
padding : 0 0 0 20px;
}
/* END SITE
*******************************************************************/ |