![]() |
|
#1
|
|||
|
|||
|
table/css background not showing.
I'm having difficulty getting a background to show up in my table. I'm using an external style sheet with the following coding:
body { background-color:#cccccc; background-image:url(/orange/BACK4.png); background-repeat: repeat-x; } table { width:704px; height:2000px; position:absolute; top:0px; background-image:url(/orange/TBK.png); background-repeat:repeat-y; background-attachment:scroll; background-color:white; } Now, the one in the body tag works just fine, but for some reason it won't load the image bckgrd in the table.. The code that I used for the table in the other page is simple: <head> <link rel="stylesheet" type="text/css" href="orange.css" /> </head> <body> <table> <tr> <td colspan="2" style="background-image:url(/orange/TBK.png)"> <img src="/orange/SPACER.png"> </td></tr> </table> Is there anything wrong that I've done? If not, any suggestions how I can still get the same look by using div layers? |
| Sponsored Links |
|
#2
|
|||
|
|||
|
The only thing "wrong" that I noticed with your source (assuming that it's somewhat incomplete) is that you've specified a column span of two without actually having two columns, but that could be due to the incompleteness and I'm not sure that it would prevent the display of a background image.
Is it possible that you could provide a link to the page so we could see it in situ? |
|
#3
|
|||
|
|||
|
Yeah, I haven't completed the coding just yet. I have a billion images to upload & just wanted to be sure things were looking okay before I continued.
Here is a link: http://u-chain.org/orange/orange.html |
|
#4
|
|||
|
|||
|
I dunno, man. I poked around with it for a bit, correcting the HTML, double checking the CSS... didn't come up with much. All I can tell you that "/orange/TBK.png" doesn't exist or is a solid white image. Remember that because of the absolute path of the URI, the image must be located at http://u-chain.org/orange/TBK.png, and is case-sensitive. I only get a 403 when I visit that, so I can't tell if it's there or not, but when I replaced the background image with another image that I knew would work, it did.
In short: double check your URI, mate. |
|
#5
|
|||
|
|||
|
It's a dotted border image.. I tried to check that too and it gave me that same error. The url is correct, but I'm wondering do I have to change permissions on the file folder and CHMOD is to 755 or something of that nature?
|
|
#6
|
|||
|
|||
|
The 403 error on images usually pops up when remote linking is blocked through the server configuration or .htaccess files. I don't think that this is the case or that it's to do with the folder permissions because the link, http://u-chain.org/orange/layout.png, works fine.
Is the capitalization the same in the image name? "TBK.png"? |
|
#7
|
|||
|
|||
|
the capitalization is fine.. but i do have the option on that prevents hotlinking. so is it best to disable that?
|
|
#8
|
|||
|
|||
|
It shouldn't make a difference to your own domain, and it doesn't seem to be working very well for PNG images as I can access both your header image and the body's background, but it's worth a shot.
|
|
#9
|
|||
|
|||
|
Quote:
I miss things like that too when I've been staring at the monitor too long.
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Background not showing | xcherryxzoex | HTML Help | 4 | 02-18-2006 10:12 AM |
| Background not showing up... | Peophin-chan | CSS | 7 | 01-08-2006 09:43 PM |
| Background not showing properly in Firefox | unique_name24601 | Neopets | 1 | 10-23-2005 09:18 PM |
| HTML background image not showing (a bit of CSS, too) | Neurologist | HTML Help | 3 | 03-18-2005 11:22 PM |
| Background not showing >.< | ohioisforlovers | Xanga | 1 | 12-24-2004 04:49 AM |