Reply
Dreamweaver Table Background Code
Old 12-11-2004, 09:54 AM Dreamweaver Table Background Code
cricketsoda's Avatar
Novice Talker

Posts: 11
Location: Denton, TX
Dreamweaver keeps writing table code that dosn't work, and I was wondering if anyone knew how to change the setting so it doesn't do this:

It writes the code like

<table>
<tr background ="imagefolder/images.jpg">
<td> BLA

and it dosn't work when I upload it. I keep having to go back and change it to this to get it to work:

<table>
<tr>
<td background= "imagefolder/image.jpg"

AHHHH! It is always the simple things. Someone please help!

Waiting
cricketsoda is offline
Reply With Quote
View Public Profile Visit cricketsoda's homepage!
 
When You Register, These Ads Go Away!
Old 12-11-2004, 11:41 AM
cricketsoda's Avatar
Novice Talker

Posts: 11
Location: Denton, TX
Also, it looks like the FireFox browser displays that background images inside the tables fine with the code dreamweaver makes.

All my users use IE though...hmmm, and suggestions on what I should do?
__________________
CricketSoda.com
cricketsoda is offline
Reply With Quote
View Public Profile Visit cricketsoda's homepage!
 
Old 12-11-2004, 01:27 PM
chrisf's Avatar
Skilled Talker

Posts: 61
Dreamweaver does have a tendancy to do this sometimes, esp if you're formatting multipled cells at the same time but whoever said that design-view was perfect? If you don't want to keep checking the source try this . . .

Whenever you want to set the bg image of a td cell instead of an entire table row just make sure you have the td cell you want formatting selected before you apply the change. The easiest way to do this is to us the breadcrumb-style nav at the bottom of your document (see pic attachement).

In design view place your mouse cursor into the td cell you want to set bg propertied for. Select the td cell by clicking on <td> as shown in the attachment then use the properties box to apply your bg image. Simple!

Of course, it's best to use CSS to set the background of a td cell. Add this to the <head></head> of your document or to a seperate stylesheet for example:

Code:
<style type="text/css">
<!--
.bgimage {
	background-image: url(images/image.jpg);
	background-repeat: repeat;
}
-->
</style>
Now just add this to your td cell and you won't need to use "background".

Code:
<td class="bgimage">Table Data Here</td>
Hope that helps some!
Attached Images
File Type: gif dweaver.gif (3.5 KB, 20 views)
__________________
FD19.NET: Smarter Hosting Solutions
RHEL - DirectAdmin - Support 24/7
http://www.fd19.net
chrisf is offline
Reply With Quote
View Public Profile Visit chrisf's homepage!
 
Old 12-11-2004, 09:46 PM
cricketsoda's Avatar
Novice Talker

Posts: 11
Location: Denton, TX
Thanks for the help.

I will use the CSS method. I already use CSS on my site so why not.
__________________
CricketSoda.com
cricketsoda is offline
Reply With Quote
View Public Profile Visit cricketsoda's homepage!
 
Reply     « Reply to Dreamweaver Table Background Code
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.08305 seconds with 13 queries