HTML Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherHTML Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old September 10th, 2005, 08:29 AM
MABDesign's Avatar
MABDesign MABDesign is offline
SEO Ninja
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Richmond/Raleigh
Posts: 297 MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 3 h 44 m 13 sec
Reputation Power: 6
Exclamation Help! Table Background?

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>
tag. I've read that the
Code:
<style>
tag can work with fewer errors. Any suggestions?

Reply With Quote
  #2  
Old September 10th, 2005, 08:38 AM
MABDesign's Avatar
MABDesign MABDesign is offline
SEO Ninja
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Richmond/Raleigh
Posts: 297 MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 3 h 44 m 13 sec
Reputation Power: 6
The style tag doesn't seem to work, either.

Last edited by MABDesign : September 10th, 2005 at 08:45 AM.

Reply With Quote
  #3  
Old September 10th, 2005, 08:47 AM
Wit's Avatar
Wit Wit is offline
http://tinyurl.com/cz56g
SEO Chat God 2nd Plane (6000 - 6499 posts)
 
Join Date: Sep 2004
Location: D0RDRECHT NL
Posts: 6,065 Wit User rank is Sergeant (500 - 2000 Reputation Level)Wit User rank is Sergeant (500 - 2000 Reputation Level)Wit User rank is Sergeant (500 - 2000 Reputation Level)Wit User rank is Sergeant (500 - 2000 Reputation Level)Wit User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Months 6 Days 10 h 52 m 26 sec
Reputation Power: 18
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...

Reply With Quote
  #4  
Old September 10th, 2005, 08:50 AM
MABDesign's Avatar
MABDesign MABDesign is offline
SEO Ninja
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Richmond/Raleigh
Posts: 297 MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 3 h 44 m 13 sec
Reputation Power: 6
When I use the style tag, the image doesn't show up at all in IE. Ahhhhhh...

Reply With Quote
  #5  
Old September 10th, 2005, 08:54 AM
MABDesign's Avatar
MABDesign MABDesign is offline
SEO Ninja
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Richmond/Raleigh
Posts: 297 MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 3 h 44 m 13 sec
Reputation Power: 6
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>

Reply With Quote
  #6  
Old September 10th, 2005, 08:55 AM
Mano70's Avatar
Mano70 Mano70 is offline
<- Solan Gundersen
SEO Chat Novice (500 - 999 posts)
 
Join Date: Jun 2004
Location: C:\Norway
Posts: 756 Mano70 User rank is Corporal (100 - 500 Reputation Level)Mano70 User rank is Corporal (100 - 500 Reputation Level)Mano70 User rank is Corporal (100 - 500 Reputation Level)Mano70 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Week 3 Days 1 h 42 m 42 sec
Reputation Power: 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).

Reply With Quote
  #7  
Old September 10th, 2005, 08:57 AM
MABDesign's Avatar
MABDesign MABDesign is offline
SEO Ninja
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Richmond/Raleigh
Posts: 297 MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level)MABDesign User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 3 h 44 m 13 sec
Reputation Power: 6
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.

Reply With Quote
  #8  
Old September 10th, 2005, 09:30 AM
Wit's Avatar
Wit Wit is offline
http://tinyurl.com/cz56g
SEO Chat God 2nd Plane (6000 - 6499 posts)
 
Join Date: Sep 2004
Location: D0RDRECHT NL
Posts: 6,065 Wit User rank is Sergeant (500 - 2000 Reputation Level)Wit User rank is Sergeant (500 - 2000 Reputation Level)Wit User rank is Sergeant (500 - 2000 Reputation Level)Wit User rank is Sergeant (500 - 2000 Reputation Level)Wit User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Months 6 Days 10 h 52 m 26 sec
Reputation Power: 18
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.

Reply With Quote
  #9  
Old September 23rd, 2005, 11:31 AM
jrozzi jrozzi is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Location: Indianapolis, Indiana
Posts: 40 jrozzi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 8 m 58 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherHTML Coding > Help! Table Background?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT