Title: table formatting code
Last modified: August 20, 2016

---

# table formatting code

 *  [tangerine3](https://wordpress.org/support/users/tangerine3/)
 * (@tangerine3)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/table-formatting-code/)
 * I want to make a table with 3 equal columns and 2 rows with no white space around
   text and in between rows, is this the correct code? thank you.
 *     ```
       <table width="100%">
       <tbody>
       <tr>
       <td>put text here</td>
       <td>put text here</td>
       <td>put text here</td>
       </tr>
       <tr>
       <td>put text here</td>
       <td>put text here</td>
       <td>put text here</td>
       </tr>
       </tbody>
       </table>
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [peredur](https://wordpress.org/support/users/peredur/)
 * (@peredur)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/table-formatting-code/#post-2333194)
 * Depends on what’s in your style sheet.
 * And depending on what version of HTML you’re using, `width` may not be a valid
   attribute of the `<table>` element.
 * Have you tried your code out? Does it give the results you want? If not, can 
   we have a link to your site so we can see what’s going on?
 * Cheers
 * PAE
 *  Thread Starter [tangerine3](https://wordpress.org/support/users/tangerine3/)
 * (@tangerine3)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/table-formatting-code/#post-2333385)
 * somebody else created my css for me but i looked through my css in my dashboard
   and these are the references i found pertaining to tables.
 * ‘
    table.position { position: relative; width: 100%; table-layout: fixed; }
 * /* begin Layout */
    .art-content-layout { display: table; position:relative; 
   margin: 0 auto; table-layout: fixed; border-collapse: collapse; background-color:
   Transparent; border: none !important; padding:0 !important; width:100%; margin-
   top:0; margin-bottom:0; } ‘ I don’t know what version of HTML means. I have a
   private page i’m experimenting on for this certain table because it is a work
   in progress I don’t have a public page for you to see but there seems to be alot
   of white space inbetween the rows.
 * And specifically i’m just making certain i am using the right code to start and
   end the table. If you tell me how to attach a doc with a screen shot I could 
   do that. thank you.
 *  [peredur](https://wordpress.org/support/users/peredur/)
 * (@peredur)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/table-formatting-code/#post-2333386)
 * Well, this is a WordPress support forum. We’re not here to help people learn 
   to code HTML.
 * But as far as it goes and with the caveat about the width attribute (not valid
   in HTML5), your code looks OK. Whether or not it’ll do what you want with white
   space, I’m not sure offhand. Why don’t you just try it and see? There’s nothing
   you can write in HTML (except for style attributes, I guess) that will determine
   that. It’s a CSS issue.
 * If you use the code and it doesn’t do what you want, if you post a link to your
   site we should be able to tell you why and suggest what you might do about it.
 * Cheers
 * PAE

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘table formatting code’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [tables](https://wordpress.org/support/topic-tag/tables/)
 * [width](https://wordpress.org/support/topic-tag/width/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [peredur](https://wordpress.org/support/users/peredur/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/table-formatting-code/#post-2333386)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
