Yunnan Posted June 6, 2012 Share Posted June 6, 2012 (edited) Bonjour, Depuis plusieurs jours je cherche une solution pour centrer mon site(aligné à gauche) sur son background(centré). J'ai bien essayé margin et padding en auto ou 0 dans la section body du global.css mais rien n'y fait. Pouvez-vous aider un cas presque découragé? J'ai mis mon global.css en attaché. En vous remerciant, Yunnan global.css Edited June 8, 2012 by Yunnan (see edit history) Link to comment Share on other sites More sharing options...
iXs Posted June 6, 2012 Share Posted June 6, 2012 un lien please Link to comment Share on other sites More sharing options...
Yunnan Posted June 6, 2012 Author Share Posted June 6, 2012 Je n'ai pas mis de lien car je le construis en local pour l'instant. Mais voici l'état des lieu en image. Link to comment Share on other sites More sharing options...
iXs Posted June 6, 2012 Share Posted June 6, 2012 t'as un margin: 0 auto sur ton body. C'est sur le conteneur du site (regarde l'ID du div englobant tout le site) qu'il faut le mettre, pas sur le body. M'enfin sans lien désolé on peut voir pas grand chose... Link to comment Share on other sites More sharing options...
Yunnan Posted June 6, 2012 Author Share Posted June 6, 2012 Je te remercie! Mon margin: auto 0 était effectivement mal placé. Je l'ai mis sur le div page et tout est bien centré. Link to comment Share on other sites More sharing options...
Carl Favre Posted June 7, 2012 Share Posted June 7, 2012 Bonjour Yunnan, Pourrais-tu mettre ton problème en [résolu], pour cela il te suffit d'éditer ton 1er message. Merci ! Link to comment Share on other sites More sharing options...
Yunnan Posted June 8, 2012 Author Share Posted June 8, 2012 C'est fait désolé pour le dérangement et merci encore. Yunnan Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now