By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
463,189 Members | 522 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 463,189 IT Pros & Developers. It's quick & easy.

Displaying Background Image in Table Cell

P: 1

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. }
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)

Thanks in advance for any insight anyone may provide. :cool:
Aug 17 '05 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 100+
P: 2,330
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;"
Nov 18 '05 #2

P: 1
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
Nov 22 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.