0

How can you manipulate the size of a background in html?

I can not get the background to shrink by pixels like a normal image

27th Aug 2017, 7:05 PM
Gabriel
Gabriel - avatar
5 Antworten
+ 2
in css body{ background-size:cover; } in html <body style="background-size:cover;">
27th Aug 2017, 7:24 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
Perhaps CSS background-size might be what your looking for? Note: It doesn't work with older browsers but i think you might be able to use -filter to support them. Without any code to see, this is just my best guess.
27th Aug 2017, 7:33 PM
Cyb3rMann
Cyb3rMann - avatar
+ 1
show your code..
27th Aug 2017, 7:15 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
<!DOCTYPE html> <html> <head> <title>****** </title> <h1><Span style="color:Red"> *******</Span> </h1> </head> <body background = " http://wallpapercave.net/images/gaming-wallpapers-for-phones/gaming-wallpapers-for-phones-2.jpg"> </div> <form> <b>Username </b><input type="text" name="username"><br/></input> <b>Password </b><input type="password" name="password "></input><br/> <a href="Fogrgot password" ><small>Forgot password?</small></a> <p align="center"/><input type="submit" value="Login" style="background-color:grey; color:white;"></style></p>********* <a href="Sign up Free"><small>Sign Up Free</small></a> </form> </div> </body> </html>
27th Aug 2017, 7:19 PM
Gabriel
Gabriel - avatar
0
Thank you
27th Aug 2017, 7:47 PM
Gabriel
Gabriel - avatar