31 users online (0 members and 31 guests)  


  Results 1 to 3 of 3

Related

  1. How to check File is Valid or Not in PERL?    Forum: CGI Perl Forum
    Replies: 2
  2. Is this a valid Php script?    Forum: PHP Forum
    Replies: 3
  3. background mp3    Forum: HTML Forum
    Replies: 1
  4. valid referrer for image directories?    Forum: Website Scripts Forum
    Replies: 3
  1. #1
    topher's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2004
    Posts
    4

    td background not valid?

    Hi all,
    I can't get my 4.0 trans. page to validate over at W3C - it doesn't like my use of
    HTML Code:
    background="pics/site/bg_patt.gif"
    in a <td>.

    Is CSS the correct way to do this?

    -topher
    Last edited by HTML; 03-09-2012 at 08:31 AM.

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Yes, CSS should be used for all styling.

    Code:
    <td class="whatever">
    
    or
    
    <td style="background-color: #ccc;">
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    topher's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2004
    Posts
    4
    Tastes great, less filling!
    Thanks Dean.



Tags for this Thread