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
5 Answers
+ 2
in css
body{
background-size:cover;
}
in html
<body style="background-size:cover;">
+ 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.
+ 1
show your code..
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>
0
Thank you