eric69 Posted February 3, 2009 Posted February 3, 2009 Bonjour,Je voudrais que mon image de fond soit fixe, lors du déplacement avec la barre de défilement!!quelqu'un aurais il la soluce? Share this post Link to post Share on other sites More sharing options...
Patric Posted February 3, 2009 Posted February 3, 2009 Il faut utiliser la propriété CSS :background-attachment: fixedUn exemple ici :http://www.w3schools.com/css/tryit.asp?filename=trycss_background-attachment Share this post Link to post Share on other sites More sharing options...
eric69 Posted February 3, 2009 Posted February 3, 2009 Rapide!Super c'est ce que je cherchais, cool!!Merci Share this post Link to post Share on other sites More sharing options...
lephot Posted February 3, 2009 Posted February 3, 2009 Ha ça m'intéresse aussi ça .. dans quel fichier faut-il modifier cela ?Et autre question jointe .. peux on aussi bloquer le header pour que le reste du site passe dessous ? Share this post Link to post Share on other sites More sharing options...
eric69 Posted February 3, 2009 Posted February 3, 2009 C'est dans le global.css de ton thème!Pourquoi faire passer le site sur le header?ça vas faire passer ton texte sur l'image et ça risque de faire griboulli non?Ou alors met simplement une image de fond qui correspond à ce que tu veux mettre en valeur, avec l'astuce cité plus haut c'est parfait!!! Share this post Link to post Share on other sites More sharing options...
lephot Posted February 3, 2009 Posted February 3, 2009 Eric, Non c'est l'inverse, je voudrais que le site passe SOUS le header ! Share this post Link to post Share on other sites More sharing options...
eric69 Posted February 4, 2009 Posted February 4, 2009 Plus difficile, mais peut être possible en partant sur le même principe, #header { position:fixed; background: #ffffff; } Share this post Link to post 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