Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
fridakahlous #1
Table background image
Validation Results - I keep getting the massage "The tag: "table" doesn't have an attribute: "background" in currently active versions.[XHTML.1.0. transitional]:confused;
fridakahlous Guest
-
Background Image in Table
I am trying to insert an image then have a few links on top of it, but have been unsuccessful. I figured that I would just set a table to have a... -
why the table cannot show background image?
please help! Thanks so much!!! When i Add the image as background inside a row in the table, the background image cannot be shown after IE... -
background image vs. insert image?
The height of a table is defined by its content. This does not include background images, so there's no assurance that your entire image will be... -
background in table cells
ameen: Yes. Click in the cell and use the Property Inspector to specify a background image. Be aware that in order to see the background fully,... -
Photoshop 7.0 Sliced Image Causes DreamWeaver MX Table To add 1 Pixel gif image!
Hello, I sliced my page in Photoshop 7 and did a "Save Optimized" to HTML. I opened the page in Dreamweaver MX and it looks find. I want the TABLE... -
Dan Rumney #2
Re: Table background image
A definitive answer would require a link to the file that you validated,
but going from the error, I would guess that you've got some code along
the lines of:
....
<table background="..." ...>
etc
As it says in the error, the Table tag does not have the attribute
"background" in the doctype version that your are validating against.
Put another way, "background" is not a valid attribute for tables:
[url]http://www.w3.org/TR/html401/index/attributes.html[/url]
[url]http://www.w3.org/TR/html401/struct/tables.html#edef-TABLE[/url]
Dan
Dan Rumney Guest
-
Murray *TMM* #3
Re: Table background image
The message is correct. XHTML1.0 Transitional doesn't have a background
attribute for the <table> tag. Just do it in CSS....
(shown inline)
<table style="background-image:url(whatever.gif)"
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"fridakahlous" <webforumsuser@macromedia.com> wrote in message
news:dqrn0c$896$1@forums.macromedia.com...> Validation Results - I keep getting the massage "The tag: "table" doesn't
> have an attribute: "background" in currently active versions.[XHTML.1.0.
> transitional]:confused;
Murray *TMM* Guest
-
fridakahlous #4
Re: Table background image
See below its what I got, your way is not working. Thank for the help.
<body>
<div align="center">
<table width="200" border="0" background="../image/Sub2BG.jpg">
<tr>
<td> </td>
</tr>
</table>
</div>
</body>
:confused;
fridakahlous Guest
-
Murray *TMM* #5
Re: Table background image
<table width="200" border="0"
style="background-image:url(../image/Sub2BG.jpg);">
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"fridakahlous" <webforumsuser@macromedia.com> wrote in message
news:dqukgh$pek$1@forums.macromedia.com...> See below its what I got, your way is not working. Thank for the help.
>
> <body>
> <div align="center">
> <table width="200" border="0" background="../image/Sub2BG.jpg">
> <tr>
> <td> </td>
> </tr>
> </table>
> </div>
> </body>
> :confused;
>
Murray *TMM* Guest
-
Dan Rumney #6
Re: Table background image
Again... post a URL... your code snippet cannot be validated without
extra work on our part... And "your way is not working" is too vague to
be helpful...
Your snippet, made parseable:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
</head>
<body>
<div align="center">
<table width="200" border="0" background="../image/Sub2BG.jpg">
<tr>
<td> </td>
</tr>
</table>
</div>
</body>
</html>
.... doesn't validate due to the invalid use of "background" in the table
tag.
Code as suggested by Murray:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
</head>
<body>
<div align="center">
<table width="200" border="0"
style="background-image:url(../image/Sub2BG.jpg)">
<tr>
<td> </td>
</tr>
</table>
</div>
</body>
</html>
....does validate
Does that help?
Dan
Dan Rumney Guest
-
fridakahlous #7
Re: Table background image
Sorry, I still need help, I open a new css page and pasted, <table width="200"
border="0" style="background-image:url(../image/Sub8BG.jpg);">, then i open a
template page, selected a table and look for a way to import the css, the only
selection was class, it did not work. NOT SURE WHAT I'M DOING. Please HELP
fridakahlous Guest
-
fridakahlous #8
Re: Table background image
Sorry, I still need help, I open a new css page and pasted, <table width="200"
border="0" style="background-image:url(../image/Sub8BG.jpg);">, then i open a
template page, selected a table and look for a way to import the css, the only
selection was class, it did not work. NOT SURE WHAT I'M DOING. Please
HELP:confused;
fridakahlous Guest
-
Murray *TMM* #9
Re: Table background image
Are you pasting HTML into a CSS page?
The CSS page should look like this -
table { background-image:url(../image/Sub8BG.jpg); }
That's all that should be there.
Then open your HTML page, and your table should look like this -
<table width="200" border="0">
Now use the CSS panel to link the page to the CSS file. When you do that,
you should see the background image appear (assuming the path is correct),
since the CSS rule will apply to ALL tables on the page.
However if this is not what you want, then you could do the other thing it
looks like you are trying to do in your post below. Just change your HTML
page's table tag from what I show above, to this -
<table width="200" border="0"
style="background-image:url(../image/Sub8BG.jpg);">
In other words, just use inline CSS to style that particular table. You
would not need to do anything further.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"fridakahlous" <webforumsuser@macromedia.com> wrote in message
news:drd9lo$2n2$1@forums.macromedia.com...> Sorry, I still need help, I open a new css page and pasted, <table
> width="200"
> border="0" style="background-image:url(../image/Sub8BG.jpg);">, then i
> open a
> template page, selected a table and look for a way to import the css, the
> only
> selection was class, it did not work. NOT SURE WHAT I'M DOING. Please
> HELP:confused;
>
Murray *TMM* Guest



Reply With Quote

