Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > CSS
CSS Forum d'entraide sur l'utilisation des feuilles de style CSS. Avant de poster : Cours CSS, FAQ CSS, Galerie CSS
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 26/12/2010, 10h54   #1
Membre du Club
 
Inscription : juin 2005
Messages : 255
Détails du profil
Informations forums :
Inscription : juin 2005
Messages : 255
Points : 43
Points : 43
Par défaut Bug du background sur div imbriquées

Bonjour,


je rencontre un bug css quelque soit le navigateur: j'ai mis une image de fond à une div en repeat-x, mais le background ne recouvre pas entièrement toute la div car un élément enfant possède un margin bottom. Voilà mon code et l'image associée jointe:


Code :
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"> 
 
  <head> 
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> 
  <title></title> 
  </head> 
  <style type="text/css"> 
   <!-- 
    * { 
      padding: 0;  
      margin: 0;            
     } 
 
    p { 
      margin-bottom: 0.8em; 
    } 
 
    .big_block{ 
      background: url(./css-img/big_block_bottom.jpg) no-repeat bottom left; 
      padding-bottom: 5px; 
      width: 780px; 
      margin-left: 20px; 
    } 
 
    .big_block_content{ 
      background: url(./css-img/big_block_content.jpg) repeat-y top left; 
      padding: 0 15px 0px 15px; 
    } 
   //--> 
   </style> 
 
  <body> 
  <div class="big_block"> 
    <div class="big_block_content"> 
      <p> bla bla </p> 
      <p> bla bla </p> 
      <p> bla bla </p> 
      <p> bla bla </p> 
    </div> 
  </div> 
  </body> 
</html>
Images attachées
Type de fichier : jpg 34886-bug.jpg (25,6 Ko, 5 affichages)
__________________
Je créer des sites web et je ne suis fan de voiture teintée et tout ce qui à trait au tuning: customisation, kit xenon, vitres teinté voiture et course automobile.
123quatre est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/12/2010, 15h24   #2
Rédacteur/Modérateur
 
Homme Jérome Debray
Responsable de projet
Inscription : mai 2009
Messages : 627
Détails du profil
Informations personnelles :
Nom : Homme Jérome Debray
Âge : 32
Localisation : France

Informations professionnelles :
Activité : Responsable de projet
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : mai 2009
Messages : 627
Points : 3 064
Points : 3 064
Bonjour,

pourrais tu ajouter ton image "big_block_content.jpg"?

merci
ornitho13 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/12/2010, 02h47   #3
Membre du Club
 
Jean Frederic Nault
Inscription : juillet 2010
Messages : 61
Détails du profil
Informations personnelles :
Nom : Jean Frederic Nault

Informations forums :
Inscription : juillet 2010
Messages : 61
Points : 59
Points : 59
pour ton tag p,

remplace margin-bottom par padding-bottom
nault est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 11h38.


 
 
 
 
Partenaires

Hébergement Web