-1
I’m developing a website in BootStrap
! He’s doing very well in a matter of being Responsivo
.
Only, Background is working as planned only on PC’s, we already smartphones
He’s even cool, but by dragging the page background
kind of goes down, but right down, about 10 or 20 pixels turns white!
Question: How do I resolve this?
I tried to use:
@media (min-width: 400px) {
body {
background-color: #ff0080;
}
}
BODY code:
body {
background-image: url ( "http://fullhdpictures.com/wp-content/uploads/2016/04/Amazing-Clash-Royale-Wallpaper.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
-webkit-background-size: cobertura;
-moz-background-size: cobertura;
-o-background-size: cobertura;
background-size: cobertura;
}
But every time I turn down the screen, CSS
it all comes out and it’s just background
!
Question: How to avoid this, just change what is inside the @media
and the rest be original?
If you want I’ll make a Jsfiddle!
Post the link or a code that shows the problem happening. So we can analyze and help you.
– Wendell
Before closing the body tag, try to place a clearfix div to fill in the entire document. If possible, enter the code in Jsfiddle like you said.
– Maurício Krüger
poe margin:0 0 0; on your body q resolves and padding:0 0 0; tbm
– Jasar Orion
OK but later do it
– Sampaio Leal
@Jasarorion could explain to me what the margin and the padding in the body is for?
– Sampaio Leal
margin is to move the body away from the sides and the padding serves to move the inner contents of the body away from it.
– Jasar Orion
access this here http://www.devmedia.com.br/understandingos-attributes css-margin-e-padding/27969
– Jasar Orion
jsfiddle does not have this problem
– Sampaio Leal
@Jasarorion ready, came to nothing, I want the background to be very fixed, and I want to change some classes by size! as inputs etc
– Sampaio Leal
a demo of the website: http://plantao-clashers.esy.es
– Sampaio Leal
just you make a media query for each size Chrome has an extension that fades the sizes of the Vices installs it
– Jasar Orion
Every time I do this the whole css disappears and it’s just that it’s in the media
– Sampaio Leal