View Full Version : tiled background

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?

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">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
html, body {
background:#00F url(gradient.gif) repeat-x; /*#00F should be the hex value for the darker gradient*/


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