User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 391,941 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,902 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 1873 | Replies: 13 | Solved
Reply
Join Date: Feb 2008
Posts: 7
Reputation: Beeej21 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Beeej21 Beeej21 is offline Offline
Newbie Poster

Re: css loaded image doesn't show up in browser

  #11  
Feb 8th, 2008
Originally Posted by richie513 View Post
Hi Beeej21,

I have noticed that you have placed the DIV tag for your image inside of a TD tag. This can cause problems as I have learned that you can not place DIV tags inside of a table. Maybe instead you can try something like this.

Mixing TABLE tags and DIV tags has been well known to cause a lot of unnecessary problems. Give this a try and let me know how you go. I will work with this code as well to see if i can help get this problem solved.


Richie, thanks again Buddy for helping me out. I really need to have the id tag within a table cell because, #1, I am not that good at CSS yet, and 2#, I am gonna be replacing a ton of images in one table at the click of a button, changing up the entire look of a page.

Your solution didn't work as I had hoped it would.. however, something DID happen and suddenly I am seeing the images in my browser! It seems to work in both IE and Firefox! I've updated the files on my server.

I THINK it was a
backgrond-attachment: fixed;
property that I had deleted. It seems to be working okay now! Thanks a MILLION for all your help.
Reply With Quote  
Join Date: Jul 2005
Location: Northern Michigan
Posts: 13
Reputation: opsryushi is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
opsryushi opsryushi is offline Offline
Newbie Poster

Re: css loaded image doesn't show up in browser

  #12  
Feb 9th, 2008
Hi Beeej21 -
These guys seem to be doing a pretty good job of taking care of you - let me just throw in a quick suggestion.

Whenever you're using a table cell background to display an image, it's ALWAYS a good idea to fill the space with something. As I'm sure you'll recall from basic HTML, an empty td is a nonexistent td when it comes to displaying in your browser. Go with Nichito's suggestion and place " " between your opening and closing td tags.

Also - I don't mean to insult your intelligence in anyway - but double-check the route to the image file. I find that this practice actually solves 85-90% of the problems that my Web Design 1 students have with their pages as they learn HTML and CSS.

Best of luck!
Reply With Quote  
Join Date: Mar 2007
Location: Honduras
Posts: 1,401
Reputation: Nichito is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 25
Featured Poster
Nichito's Avatar
Nichito Nichito is offline Offline
Nearly a Posting Virtuoso

Re: css loaded image doesn't show up in browser

  #13  
Feb 9th, 2008
i'm checking on your page, and it seems to be aok... unless those are not the results you want... did you manage to solve your problem?
Last edited by Nichito : Feb 9th, 2008 at 2:23 am.
-->sometimes i wanna take my toaster in a bath<--
Reply With Quote  
Join Date: Feb 2008
Location: Noosa, Qld, Australia
Posts: 150
Reputation: richie513 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 10
richie513's Avatar
richie513 richie513 is offline Offline
Junior Poster

Re: css loaded image doesn't show up in browser

  #14  
Feb 9th, 2008
Beeej21. That is great news that you have fixed the issue. It was my pleasure to help you out as much as i could. I will be willing to help you again in the future if you ever need it. Also opsryushi has made a great point, it is great practice to double-check the route to your image. Have fun and best of luck!

richie513
Technology is just a tool. In terms of getting the kids working together and motivating them, the teacher is the most important.
richie513
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

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

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 8:44 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC