Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 12-04-2003, 01:40 PM   #1
Member (10 bit)
 
GSXdan's Avatar
 
Join Date: Jun 2002
Location: P-burg, Ohio, USA
Posts: 555
Send a message via AIM to GSXdan
using a pattern as backround...

say i make a pattern(like 15x15 size), how do i use that as a backround, so keeps repeating?

thanks ^dan
GSXdan is offline   Reply With Quote
Old 12-04-2003, 01:48 PM   #2
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
A background for what? Web page? Wallpaper?
doctorgonzo is offline   Reply With Quote
Old 12-04-2003, 01:53 PM   #3
Member (10 bit)
 
GSXdan's Avatar
 
Join Date: Jun 2002
Location: P-burg, Ohio, USA
Posts: 555
Send a message via AIM to GSXdan
sorry, for a webpage.
GSXdan is offline   Reply With Quote
Old 12-04-2003, 02:06 PM   #4
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
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.
doctorgonzo is offline   Reply With Quote
Old 12-04-2003, 03:09 PM   #5
Member (10 bit)
 
GSXdan's Avatar
 
Join Date: Jun 2002
Location: P-burg, Ohio, USA
Posts: 555
Send a message via AIM to GSXdan
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
GSXdan is offline   Reply With Quote
Old 12-04-2003, 03:10 PM   #6
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
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.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Old 12-04-2003, 06:50 PM   #7
Member (10 bit)
 
GSXdan's Avatar
 
Join Date: Jun 2002
Location: P-burg, Ohio, USA
Posts: 555
Send a message via AIM to GSXdan
thanks for the info, thats what i was trying to find

thanks ^dan
GSXdan is offline   Reply With Quote
Old 12-04-2003, 09:17 PM   #8
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
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 that will help you a bit with css.
mairving is offline   Reply With Quote
Old 12-04-2003, 09:38 PM   #9
Member (10 bit)
 
GSXdan's Avatar
 
Join Date: Jun 2002
Location: P-burg, Ohio, USA
Posts: 555
Send a message via AIM to GSXdan
yea i know basic css, enough for most text options, but ill have to try that program.

Thanks ^dan
GSXdan is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:42 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2