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 02-21-2004, 04:50 PM   #1
Member (9 bit)
 
Undead_Rider's Avatar
 
Join Date: Nov 2003
Location: Canada ontario
Posts: 342
Backround

Edit-aw yes these forums rececnise web design. heres a link to what i need than thanks
http://www.webdevforums.com/showthread.php?t=3570
Undead_Rider is offline   Reply With Quote
Old 02-22-2004, 06:35 AM   #2
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
First off using:
<td background="image.gif">
is deprecated and will not work in future browsers.

CSS is the way to go in this case. You can do an inline style or an external one. I prefer external because I can make a change on one page and it is made on all of the pages.

Here is how to do it.
Inline (in your head tags)
<style>
.back {
background-color: #FFFFFF;
background-image: url(/images/your_image.gif);
background-position : top;
background-repeat : no-repeat;
}
</style>
In your td tag:
<td class="back">

If you wanted to make an external stylesheet, you would make a file with a .css extension and link to it also in your head section like so:
<Link rel="stylesheet" type="text/css" href="/stylesheet.css">
mairving 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:47 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2