NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Table Cells/Image Background

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 04-07-2004, 10:50 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Apr 2004
Posts: 5
aSpire2004 is an unknown quantity at this point
 



Question Table Cells/Image Background


This question is directed at Webmasters using that use Photoshop & ImageReady Or similar graphics package as the means of building there site...

Heres what im trying to do....

Make only image in a table cell the table cell background instead of an image in the cell
the cell dimensions are already setup to all the image sizes, Ive just completed a layout in Photoshop/sliced&optimized in ImageReady

I use Dreamweaver MX 2004 & know/understand html/xhtml

Thanks !
aSpire2004 is offline  
Old 04-07-2004, 02:06 PM   #2 (permalink)
NamePros Member
Join Date: Apr 2004
Location: Sweden
Posts: 47
bassplayinuk is an unknown quantity at this point
 



To do this is simple. Just goto the cell properties and select the background image you wish to use.

I use Dremaweaver MX and it doesn't seem to allow you to set wether the image repeats or not. To get round the image repeating in the background I suggest using CSS to set the cell background as the CSS property editor allows for the user to set weather the background repeats or not.

Just created some CSS code for you to show how to use a class to give a background to a cell that doesn't repeat.

This goes between the <head></head> tags: -

Quote:
<style type="text/css">
<!--
.cellbackground {
background-image: url(background.jpg);
background-repeat: no-repeat;
}
-->
</style>
Then in the <td> tag of the cell you wish the background to appear in put this: -

Quote:
class="cellbackground"
e.g. <td class="cellbackground">
????: NamePros.com http://www.namepros.com/programming/26046-table-cells-image-background.html

PM me if you need some assistance.
Last edited by bassplayinuk; 04-07-2004 at 02:14 PM.
bassplayinuk is offline  
Old 04-07-2004, 03:37 PM THREAD STARTER               #3 (permalink)
New Member
Join Date: Apr 2004
Posts: 5
aSpire2004 is an unknown quantity at this point
 




Thanks for the help! but I fixed it like 5 mins after posting
Ill prob\bly find uses for the code you posted though.

ImageReady code that was applied to all layout parts,


<td>
<img src="images/image.gif" width="100" height="100"></td>

New code that I applied to all cells to fix the layout parts to the background to form editable regions (you cant type over an image)

<td background="images/image.gif">
aSpire2004 is offline  
Old 04-07-2004, 11:17 PM   #4 (permalink)
NamePros Member
Join Date: Apr 2004
Location: Sweden
Posts: 47
bassplayinuk is an unknown quantity at this point
 



Fair enough. It would be worth looking into CSS when you have the chance. When you start using it you'll wonder how you managed without it.
bassplayinuk is offline  
Old 04-08-2004, 04:23 AM   #5 (permalink)
NamePros Member
 
OneEyedDog's Avatar
Join Date: Mar 2004
Location: Middle Earth (NZ)
Posts: 149
OneEyedDog is on a distinguished road
 



Quote:
Originally posted by bassplayinuk
Fair enough. It would be worth looking into CSS when you have the chance. When you start using it you'll wonder how you managed without it.
Amen to that! CSS really is worth learning!
__________________
Script Installation, Avatars, Banners and Buttons for $NP or Paypal, PM me your requirements :D
Deni J Vanin | Freelance Jobs and Forums | Web Design
OneEyedDog is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 03:33 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger