Tram Hong Anh
Tram Hong Anh

Reputation: 3

Table Padding Top

Does anyone know how to put the content of the first td to the top of td, in this case? I had tried padding, margin, and anything else, but it doesn't work.

  <table>
    <tr>
    <td>AuthRequest</td>
    <td>when specifying an account, one of <password> or <preauth> must be specified. See preauth.txt for a discussion of preauth.
    An authToken can be passed instead of account/password/preauth to validate an existing auth token. If {verifyAccount}="1", <account> is required and the account in the auth token is compared to the named account.
    Mismatch results in auth failure. An external app that relies on ZCS for user identification can use this to test if the auth token provided by the user belongs to that user. If {verifyAccount}="0" (default), only the auth token is verified and any <account> element specified is ignored. </td>
    </tr>
    </table>

enter image description here

Upvotes: 0

Views: 92

Answers (2)

Syfer
Syfer

Reputation: 4479

If you are looking keep it in two columns then use Felix's code and if you are looking to put it above the first td then you can put it in a row.

 <table>
    <tr>
    <td>AuthRequest</td>
    </tr>
    <tr>
    <td>when specifying an account, one of <password> or <preauth> must be specified. See preauth.txt for a discussion of preauth.
    An authToken can be passed instead of account/password/preauth to validate an existing auth token. If {verifyAccount}="1", <account> is required and the account in the auth token is compared to the named account.
    Mismatch results in auth failure. An external app that relies on ZCS for user identification can use this to test if the auth token provided by the user belongs to that user. If {verifyAccount}="0" (default), only the auth token is verified and any <account> element specified is ignored. </td>
    </tr>
    </table>

Upvotes: 0

Felix Guo
Felix Guo

Reputation: 2708

Here you go! Use the vertical-align property.

  <table>
    <tr>
    <td style="vertical-align:top">AuthRequest</td>
    <td>when specifying an account, one of <password> or <preauth> must be specified. See preauth.txt for a discussion of preauth.
    An authToken can be passed instead of account/password/preauth to validate an existing auth token. If {verifyAccount}="1", <account> is required and the account in the auth token is compared to the named account.
    Mismatch results in auth failure. An external app that relies on ZCS for user identification can use this to test if the auth token provided by the user belongs to that user. If {verifyAccount}="0" (default), only the auth token is verified and any <account> element specified is ignored. </td>
    </tr>
    </table>

Upvotes: 2

Related Questions