Table background image

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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,...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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>&nbsp;</td>
    </tr>
    </table>
    </div>
    </body>
    :confused;

    fridakahlous Guest

  6. #5

    Default 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>&nbsp;</td>
    > </tr>
    > </table>
    > </div>
    > </body>
    > :confused;
    >

    Murray *TMM* Guest

  7. #6

    Default 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>&nbsp;</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>&nbsp;</td>
    </tr>
    </table>
    </div>
    </body>
    </html>

    ....does validate

    Does that help?

    Dan
    Dan Rumney Guest

  8. #7

    Default 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

  9. #8

    Default 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

  10. #9

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139