07-09-2010, 21:24
Zrób sobie diva na wysokość i szerokość całej strony i jemu nadaj gradient. Sprawdzałem, działa.
Kod:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<style>
body {
margin: 0;
padding:0;
}
#whole {
width: 100%;
height:100%;
background:#11314d;
background: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0.54, rgb(50,82,58)),
color-stop(0.69, rgb(51,202,89)),
color-stop(0.91, rgb(77,243,116))
);
background: -moz-linear-gradient(
center bottom,
rgb(50,82,58) 54%,
rgb(51,202,89) 69%,
rgb(77,243,116) 91%
);
}
</style>
</head>
<body>
<div id="whole"></div>
</body>
</html>