PDA

View Full Version : tiled background



the_bob
Nov 17th, 2006, 05:44 PM
so im makin a site in dreamweaver. i created a gradiation for the background, but when it's put in in dreamweaver it tiles it. can i stretch it or should i just make it bigger?

_Aerospace_Eng_
Nov 17th, 2006, 05:52 PM
Usually the way gradients work is you repeat it in the x direction then give the body a background color that matches the darker gradient.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
html, body {
margin:0;
padding:0;
background:#00F url(gradient.gif) repeat-x; /*#00F should be the hex value for the darker gradient*/
}
</style>
</head>

<body>
</body>
</html>

the_bob
Nov 22nd, 2006, 05:32 PM
Oh, that makes sense. Thanks.