Peut on centrer un background?
Résolu/Fermé
hananedesign
Messages postés
26
Date d'inscription
samedi 2 février 2008
Statut
Membre
Dernière intervention
12 août 2008
-
3 juin 2008 à 16:38
hananedesign Messages postés 26 Date d'inscription samedi 2 février 2008 Statut Membre Dernière intervention 12 août 2008 - 17 juin 2008 à 22:53
hananedesign Messages postés 26 Date d'inscription samedi 2 février 2008 Statut Membre Dernière intervention 12 août 2008 - 17 juin 2008 à 22:53
A voir également:
- Peut on centrer un background?
- Windows 7 logon background changer - Télécharger - Thèmes & Fonds d'écran
- Realtek audio background process class ✓ - Forum Pilotes (drivers)
- Peut on aller chercher son colis au centre de tri - Forum Vos droits sur internet
- Dans le document à télécharger, léa a utilisé 2 méthodes différentes pour centrer le nom des continents. lesquels sont centrés correctement ? - Forum Jeux vidéo
- Gvr background window 3 ✓ - Forum Windows 10
2 réponses
Revan26914
Messages postés
1778
Date d'inscription
dimanche 14 octobre 2007
Statut
Contributeur
Dernière intervention
15 octobre 2019
320
3 juin 2008 à 17:12
3 juin 2008 à 17:12
Bonjour,
Au background-position il faut lui attribuer deux valeurs. La première c'est la position vertical et la deuxième l'horizontale.
Cordialement
Revan
Au background-position il faut lui attribuer deux valeurs. La première c'est la position vertical et la deuxième l'horizontale.
Cordialement
Revan
Revan26914
Messages postés
1778
Date d'inscription
dimanche 14 octobre 2007
Statut
Contributeur
Dernière intervention
15 octobre 2019
320
3 juin 2008 à 23:44
3 juin 2008 à 23:44
Peut-être que quand ton image est en position au centre elle se cache derrière un élément.
essai de mettre en commentaire le reste de ton CSS, afin de voir ce qu'il en est.
essai de mettre en commentaire le reste de ton CSS, afin de voir ce qu'il en est.
hananedesign
Messages postés
26
Date d'inscription
samedi 2 février 2008
Statut
Membre
Dernière intervention
12 août 2008
17 juin 2008 à 22:53
17 juin 2008 à 22:53
finalement j'ai opté pour les calques.
3 juin 2008 à 21:18
j'ai fais ce que tu m'as dis et ça ne marche pas apparemment.
Mon background a ces dimensions là 1280X1024. Dedans y"a un grand encadré ds lequel j'intégrerais le contenu texte.
3 juin 2008 à 21:24
Peux-tu également me donner la partie de ton CSS concerné stp?
3 juin 2008 à 22:45
Voici le code CSS :
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans nom</title>
<style type="text/css">
<!--
body {
background-image: url(background.png);
background-position:
}
#Design {
position:relative;
margin-left :auto;
margin-right:auto;
z-index:1;
width: 799px;
}
#Contents {
position:absolute;
left:128px;
top:172px;
width:798px;
height:426px;
z-index:3;
background-color: #EDEDED;
}
#Body {
position:absolute;
left:20px;
top:179px;
width:781px;
height:641px;
z-index:5;
}
#Left {
position:absolute;
left:2px;
top:188px;
width:13px;
height:405px;
z-index:6;
}
.Style2 {color: #1c7997}
.Style4 {font-size: 11px}
.Style5 {font-family: Arial, Helvetica, sans-serif; color: #1c7997;}
#Layer7 { position:absolute;
left:552px;
top:17px;
width:195px;
height:191px;
z-index:3;
}
#Menu {
position:absolute;
left:125px;
top:116px;
width:797px;
height:41px;
z-index:9;
}
#header {
position:absolute;
left:125px;
top:170px;
width:799px;
height:14px;
z-index:10;
}
#left {
position:absolute;
left:128px;
top:195px;
width:12px;
height:628px;
z-index:11;
}
-->
</style></head>