Connecting Tech Pros Worldwide Forums | Help | Site Map

Displaying Background Image in Table Cell

Newbie
 
Join Date: Aug 2005
Posts: 1
#1: Aug 18 '05
Hi,

i am hoping someone out there can help me with this, b/c i don't really know what is going on. i am working to put a background image in a cell of my table. i am using dreamweaver mx. the css code is as follows;

Expand|Select|Wrap|Line Numbers
  1.  .featured_cells 
  2. {
  3.     background-image:url(Images/Front_Page/featured_cells.gif);
  4.     background: no-repeat bottom right;
  5.     font-family: Arial, Helvetica, sans-serif;
  6.     font-size: 15px;
  7.     font-style: oblique;
  8.     text-decoration: none;
  9.     font-weight: bold;
  10.     border-left-style: none;
  11. }
  12.  
The image renders perfectly in dreamweaver, but will not render live or in my test server using IE 6. i uploaded the image and verified it is in there. also, the style sheet is uploaded and being recognized as evidenced by the text in the cell, which shows up exactly right, live and test.

A test page i am running is; (please look about half way down in the cell that reads featured movie posters)

http://www.urbanposters.com/homepagemovies1.htm

Thanks in advance for any insight anyone may provide. :cool:

KUB365's Avatar
Administrator
 
Join Date: Jul 2005
Location: Portland, OR
Posts: 975
#2: Nov 18 '05

re: Displaying Background Image in Table Cell


It seems to work prefectly on your site.

Something you might want to change in your code is remove "bottom right" from "background:" and add a "background-position:bottom right;"
Newbie
 
Join Date: Nov 2006
Posts: 1
#3: Nov 22 '06

re: Displaying Background Image in Table Cell


ok, the reason why it comes up on your site and not the dreamweaver preview is simple. your image address. dreamweaver can't locate it if you're not directly worker with your host via ftp. plus you dont have the full url. you have /images.gif
istead of http://images.gif. so being that your dreamweaver isn't configured to work directly out of your root menu (where you store all your images) it cant see it but your site will point to it for all to see on your webpage.
to preview what you're doping on dreamweaver in this case you would have to save it in your host root menu and preview the webpage thats online. other wise configure dreamweaver through ftp to your site and it will work directly out of there.

i know this is over a year later but i hope someone gets some use out of it.

Moderator: if this is all jiberish please delete my reply.

Thanks, tlthe5th
spirituallysmart.com
Reply