Film detail div table

  • Unknown's avatar

    Hi , i have a film blog on WP and I want to add a DIV table in the begining of every movie review in a post. Can anybody help me please?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Are you asking how to make a table?
    Here is code for a basic table with a white background and 2 rows of 2 cells each:

    <table style="background-color:#ffffff;" border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
    <tbody>
    <tr>
    <td>CELL_CONTENT_HERE</td>
    <td>CELL_CONTENT_HERE</td>
    </tr>
    <tr>
    <td>CELL_CONTENT_HERE</td>
    <td>CELL_CONTENT_HERE</td>
    </tr>
    </tbody>
    </table>

    What specifically do you want to do?

  • Unknown's avatar

    Thank you for instant reply 1tess.
    I am using a RTL style of Persian writing and I need a sort of borderless table with 2 columns and 6 rows to indicate the details of the movie like Name of the film , name of the director the year of production, etc.

    like what Roger Ebert uses in the beginning of his reviews.
    see here: http://rogerebert.suntimes.com/apps/pbcs.dll/article?AID=/20100628/REVIEWS/100629977

    part : Cast & Credits I mean.

  • Unknown's avatar

    HTML Table (2 columns and 6 rows)

    `<table border=”1″ width=”200″>
    <tr>
    <td> row 1, column 1 </td>
    <td> row 1, column 2 </td>
    </tr>
    <tr>
    <td> row 2, column 1 </td>
    <td> row 2, column 2 </td>
    </tr>
    <tr>
    <td> row 3, column 1 </td>
    <td> row 3, column 2 </td>
    </tr>
    <tr>
    <td> row 4, column 1 </td>
    <td> row 4, column 2 </td>
    </tr>
    <tr>
    <td> row 5, column 1 </td>
    <td> row 5, column 2 </td>
    </tr>
    <tr>
    <td> row 6, column 1 </td>
    <td> row 6, column 2 </td>
    </tr>
    </table>

  • Unknown's avatar

    I don’t think that RTL would change the coding for tables.
    The table above is 2 columns and 2 rows, no borders, you can change the background color if you like. To add more rows, copy this as many times as you need:

    <tr>
    <td>CELL_CONTENT_HERE</td>
    <td>CELL_CONTENT_HERE</td>
    </tr>

    If the contents of the two cells in a row are different heights, you may want to set the vertical alignment of the contents. aligntop is assumed, but if you want them in the middle add this to the <td >:

    <td valign="middle">CELL_CONTENT_HERE</td>
    <td valign="middle">CELL_CONTENT_HERE</td>
  • Unknown's avatar

    The table works ,timethief , but how can I WRITE the review , as a matter of fact I cant go out of the table? Am I doing something wrong? How can I write the body review?

  • Unknown's avatar

    After you have filled in your table (in html), you can write your text as usual, under the table. Best to put a dot or something after the table, then you can switch to visual editor and write your review.

    (if you don’t put a letter or dot in the html, sometimes the cursor gets tangled up in the code for the table…)

  • Unknown's avatar

    That’s right , but I want to write the body content, left side of the table , as I do it with a picture that is right aligned , but now i just can write beneath the table. how can i solve the problem?

  • Unknown's avatar

    You need to add align=”left” to the table tag. And if you want a borderless table, you’ll also need to add extra code to get rid of the borders that iNove automatically introduces. It would help if you linked to the post in question.

  • Unknown's avatar

    (Sorry, I meant align=”right”).

  • Unknown's avatar

    Ah. Then you use alignleft for the table, and you must adjust the width to less than 100%

    <table style="background-color:#ffffff;margin-right:1.4em;" border="0" cellspacing="0" cellpadding="0" width="40%" align="left">
    <tbody>
    <tr>
    <td>CELL_CONTENT_HERE</td>
    <td>CELL_CONTENT_HERE</td>
    </tr>
    <tr>
    <td>CELL_CONTENT_HERE</td>
    <td>CELL_CONTENT_HERE</td>
    </tr>
    <tr>
    <td>CELL_CONTENT_HERE</td>
    <td>CELL_CONTENT_HERE</td>
    </tr>
    <tr>
    <td>CELL_CONTENT_HERE</td>
    <td>CELL_CONTENT_HERE</td>
    </tr>
    <tr>
    <td>CELL_CONTENT_HERE</td>
    <td>CELL_CONTENT_HERE</td>
    </tr>
    <tr>
    <td>CELL_CONTENT_HERE</td>
    <td>CELL_CONTENT_HERE</td>
    </tr>
    </tbody>
    </table>
  • Unknown's avatar

    ~~ panos
    got my right and left mixed up too.

    alignright instead of alignleft

  • Unknown's avatar

    border =”0″ doesn’t work in iNove – see here:

    Overriding default table borders

  • Unknown's avatar

    My dear friends , Thanks to all of you , my problem is resolved.
    thanks all. :)

  • Unknown's avatar

    Yay! That’s good news. :)

  • Unknown's avatar
  • Unknown's avatar

    Just one last short Question,
    how can I color the table in the way that first row is colored gray and the second one is white , again the third one is gray and the fourth white? can you help me plz?

  • Unknown's avatar

    You need to add color to the style of each row.
    black row:
    <tr style="background-color:#000000;">
    grey rows:
    <tr style="background-color:#d5d5d5;">
    <tr style="background-color:#dcccccc;">
    white row:
    <tr style="background-color:#ffffff;">

    You can find color codes via photoshop or other image editor.
    Or look at http://wpbtips.wordpress.com/
    in the left column:
    “Links 2: Utilities
    Colors (a)
    Colors (b)
    Colors (c)
    Colors (d)”

  • Unknown's avatar

    Thanks a bunch , 1tess , I have done it and it works. I see if anything else is remained for the table/ I want it to be really perfect. At last I’ll put the completed table in my blog post here for you all to see. Thanks a zillion.

  • Unknown's avatar

    My dear friends , I don’t know whether you can see this update or not. I link here the last result of my blog post with the table in. Thanks is all yours.

    http://underomeda.wordpress.com/2010/07/13/%D8%A8%DB%8C%D8%AF%D8%A7%D8%B1%DB%8C-%D8%B1%D9%88%DB%8C%D8%A7%D9%87%D8%A7/

  • The topic ‘Film detail div table’ is closed to new replies.