www.webdeveloper.com
Results 1 to 4 of 4

Thread: Help with HTML table

  1. #1
    Join Date
    Sep 2006
    Posts
    2

    Help with HTML table

    I have made a webpage which shows up fine Chrome but when you view it in IE or Firefox there is no HSPACE around the right hand table.
    http://www.cgwebdesigns.co.uk/Karen/test.htm

    Can anyone help please?

  2. #2
    Join Date
    Dec 2011
    Location
    Centurion, South Africa
    Posts
    795
    Even though you're using a table, you're not separating the text from the green inner table by using it.

    I added this to the <p> tag holding your text and it looked ok in FF at least:

    Code:
    float: left;
    width: 620px;
    Last edited by bionoid; 12-06-2013 at 11:15 AM.
    JavaScript: Learn | Validate | Compact | bionoid

  3. #3
    Join Date
    Dec 2013
    Posts
    3

  4. #4
    Join Date
    Dec 2013
    Posts
    10

    Cool

    http://html-css.happycodings.com/basic-xhtml-table.html
    happy codings 8)

    Basic XHTML table

    <?xml version = "1.0"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns = "http://www.w3.org/1999/xhtml">
    <head>
    <title>A simple XHTML table</title>
    </head>
    <body>
    <table border = "1" width = "50%" summary = "summary">
    <caption><strong>Price of Phones</strong></caption>
    <thead>
    <tr>
    <th>Phone</th>
    <th>Price</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td>Nokia</td>
    <td>$120</td>
    </tr>

    <tr>
    <td>Apple</td>
    <td>$160</td>
    </tr>

    <tr>
    <td>Lg</td>
    <td>$80</td>
    </tr>

    <tr>
    <td>Sony Ericsson</td>
    <td>$140</td>
    </tr>
    </tbody>
    <tfoot>
    <tr>
    <th>Asus</th>
    <th>$200</th>
    </tr>
    </tfoot>

    </table>

    </body>
    </html>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles