View Full Version : using a pattern as backround...
GSXdan
12-04-2003, 02:40 PM
say i make a pattern(like 15x15 size), how do i use that as a backround, so keeps repeating?
thanks ^dan
doctorgonzo
12-04-2003, 02:48 PM
A background for what? Web page? Wallpaper?
GSXdan
12-04-2003, 02:53 PM
sorry, for a webpage.
doctorgonzo
12-04-2003, 03:06 PM
My ancient HTML knowledge says to use a body tag like this:
<body background="images/back.gif">
But there might be another way with these newfangled CSS and whatnot the punks are talking about today. ;)
GSXdan
12-04-2003, 04:09 PM
what? no CSS for you doctorgonzo? ;) j/k for some reason i though there was a different command when using a pattern, but i guess not.
Thanks
mairving
12-04-2003, 04:10 PM
The default is for a background to repeat (tile) both horizontally and vertically using Dr.G's method. If you want it to do something else then you will have to use CSS. Here is how to do that.
In the head section of the page.
<style>
body.back {
background-color: #FFFFFF;
background-image: url(/images/image_name.jpg);
background-position : bottom; (center, top, etc.)
background-repeat : no-repeat; (repeat-x, repeat-y)
}
</style>
<body class="back">
or you can use it within table cells(TD) like so:
<style>
.back {
background-color: #FFFFFF;
background-image: url(/images/image_name.jpg);
background-position : bottom; (center, top, etc.)
background-repeat : no-repeat; (repeat-x, repeat-y)
}
</style>
<td class="back">
repeat-x and y or for vertical and horizontal repeats only. No repeat only presents the image once.
GSXdan
12-04-2003, 07:50 PM
thanks for the info, thats what i was trying to find :)
thanks ^dan
mairving
12-04-2003, 10:17 PM
You can also make an external stylesheet which is generally preferable since you don't have to change every page if you use the style tags. You can also download the free TopStyle Light (http://www.bradsoft.com/download/index.asp) that will help you a bit with css.
GSXdan
12-04-2003, 10:38 PM
yea i know basic css, enough for most text options, but ill have to try that program.
Thanks ^dan
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.