Tech Support Forum banner
Status
Not open for further replies.
1 - 7 of 7 Posts

· Registered
Joined
·
233 Posts
Discussion Starter · #1 ·
Anyone know how (using FrontPage) to make my background image shrink or expand to fit any screen or browser and without tiling?

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Home</title>

</head>

<body background="oranges.jpg">

</body>

</html>
 

· Registered
Joined
·
915 Posts
Yes it's fixed, adding 100% usually causes problems later on, depending on the screen size of the people visiting your page, I would recommend either adding a fixed size or using the background size property.
 

· Moderator - Alternative Computing Team
Joined
·
901 Posts
Fixed Width does not answer his question of the background being responsive to window size.


You can use the background size "cover" to accomplish this I believe.

Code:
background-image: url(yourimage.jpg);
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
 
1 - 7 of 7 Posts
Status
Not open for further replies.
Top