favancini Posted February 3, 2015 Share Posted February 3, 2015 (edited) Bonjour, J'aimerai savoir comment supprimer l'image du header de mon theme pour mobiles et tablettes car il n'est pas adpaté. Dans mon global.css, j'appelle l'image du header comme suit : #header { background-image: url(../img/bckgrnd-header.jpg); background-repeat: no-repeat; background-position: top center; margin-top: 50px z-index: 5003; } Par avance merci. Edited February 3, 2015 by favancini (see edit history) Link to comment Share on other sites More sharing options...
Fre-do Posted March 16, 2015 Share Posted March 16, 2015 (edited) Salut Je pense que les Media-queries devraient t'etre utiles : @media only screen and (max-width:600px) { #header { display:none; } } (par exemple) Edited March 16, 2015 by Fre-do (see edit history) Link to comment Share on other sites More sharing options...
Ariane Web et Plus Posted March 17, 2015 Share Posted March 17, 2015 Si tu veux juste que l'image ne s'affiche pas. @media only screen and (max-width:640px) {#header {background:none;} } Aprés il faut jouer avec le max-width en fonction du type d'écran que vous souhaitez cibler. Link to comment Share on other sites More sharing options...
Baba deCode Posted March 17, 2015 Share Posted March 17, 2015 Bonsoir sinon une class bootstrap utile: class="hidden-xs" 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