|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
I'm having a big problem with my tables. I need to span a background image across multiple cells, so they all have one uniform background. It works fine in firefox, but W3C disagrees, and I get an error when trying to view the site in IE. It doesn't seem to like the
Code:
<background> Code:
<style> |
|
#2
|
||||
|
||||
|
The style tag doesn't seem to work, either.
Last edited by MABDesign : September 10th, 2005 at 08:45 AM. |
|
#3
|
||||
|
||||
|
Well the style attribute, like so for instance...
<table style="background:url(somepic.png) scroll no-repeat center center"> ...should work, provided the inner elements of your table (tr and td tags etc.) have a transparent or non-existent background. http://www.aboutjm.com/links/CSS_Guide/properties/background.html There are many things that could go wrong - however. The outcome depends on a lot of unpredictable things. Hard to say without the example...
__________________
...please help me w/ the real Redscowl Bluesingsky...how2 check backlinks...now postin' @ SEO Refugee ...
·<°`)~ LOL now that I finally have a paypal account, I'm charging 19,- for SEO advice via PM. Seriously... |
|
#4
|
||||
|
||||
|
When I use the style tag, the image doesn't show up at all in IE. Ahhhhhh...
|
|
#5
|
||||
|
||||
|
Is there something I'm missing? Here's my code:
Code:
<table style="background: url(/images/bg2.jpg)" width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><div align="center"><img src="images/banner3.jpg" width="900" height="135"></div></td>
</tr>
<tr background="images/bg2.jpg">
<td width="450"><div align="center"><a href="mental/mental.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('mental','','images/mental_reverse.jpg',1)"><img src="images/mental.jpg" alt="For Mental Health Professionals" name="mental" width="303" height="205" border="0"></a></div> </td>
<td width="450"><div align="center">
<p><a href="other/other.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('other','','images/other_reverse.jpg',1)"><img src="images/other.jpg" alt="For All Other Clients" name="other" width="303" height="205" border="0"></a></p>
</div></td>
</tr>
</table>
|
|
#6
|
||||
|
||||
|
Without seeing your example all we can do are useless guessing. A url to the project is needed (don't make the url an active link).
__________________
Strictly CSS - free directory for CSS designed sites. |
|
#7
|
||||
|
||||
|
webpsychdesigns dot com...it works fine in firefox but not IE. I haven't updated the server code yet, but the previews from dreamweaver are showing IE problems.
|
|
#8
|
||||
|
||||
|
I think you need to get rid of the leading slash on
...url(/images/bg2.jpg)... to make it work locally, (even on dreamweaver). Try that first. |
|
#9
|
|||
|
|||
|
Also, use something like <table style="background-image:url('images/blah.gif'); background-repeat:no-repeat; background-position:top left;">...</table> accordingly.
This should work in Mozilla and IE |
![]() |
| Viewing: SEO Chat Forums > Other > HTML Coding > Help! Table Background? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|