Jump to content

Validating HTML 4.01 Transitional error... help.


SirAndy

Recommended Posts

I'm trying to give html tables a background, but it will not let me validate so , i am using css.. which works greate except firefox wont display the backgrounds.. im setting the background with this css code:

div.table1 { background-image: url('image.png'); }

and to get the background set im doing this in the HTML code:

<div class="table1"><table><tr><td>bla cell 1 row 1</td><td>bla cell 2 row 1</td></tr>
<tr><td>bla cell 1 row 2</td><td>bla cell 2 row 2</td></td></table></div>

 

which after getting all the css and html code fixed to show background images for the dif tables it validated correctly, and works in IE and Opera but not Firefox, altho if i just set the background in the the html for the table everything works, but it wont validate correctly...

 

anyone have any ideas?

Link to comment
Share on other sites

Ok I have figured out the problem. but I havent figured out what to do about it.

table.1bar {
background: url('images/title07-2.png');
height: 76px;
}
table.2bar {
background: url('images/title07-sb.png');
height: 24px;
}
table.3bar {
background: url('images/title07-bar.png');
height: 25px;
}
td.nbar {
height: 100%;
}
table.fbar {
height: 55px;
}

 

so in the html i call up this with the class atribute, but firefox doesnt want to understand it or read it, any ideas what to do?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.