WordPress.org

Ready to get started?Download WordPress

Forums

Table Formatting (8 posts)

  1. jamiwr
    Member
    Posted 1 year ago #

    I am not able to change the font size in my table or column widths that I have pasted in from MS Word.

    Please review my code below and let me know what i can do:

    <table width="481" border="0" cellspacing="0" cellpadding="0">
    <tbody style="font-size:20%">
    <tr>
    <td valign="bottom" nowrap="nowrap" width="91">
    <p align="center"><strong>Courthouse</strong></p>
    </td>
    <td valign="bottom" width="90">
    <p align="center"><strong>Code section(s)</strong></p>
    </td>
    <td valign="bottom" nowrap="nowrap" width="72">
    <p align="center"><strong>Charges</strong></p>
    </td>
    <td valign="bottom" nowrap="nowrap" width="72">
    <p align="center"><strong>Max Penalty</strong></p>
    </td>
    <td valign="bottom" nowrap="nowrap" width="96">
    <p align="center"><strong>Case Result</strong></p>
    </td>
    <td valign="bottom" nowrap="nowrap" width="60">
    <p align="center"><strong>DMV Results</strong></p>
    </td>
    </tr>
    <tr>
    <td valign="bottom" width="91">San Luis Obispo Superior Court</td>
    <td valign="bottom" width="90">V C 23152, HSC 11550</td>
    <td valign="bottom" width="72">DUI: 1st Offense & Under the Influence of controlled substance (Methodone/Methamphetamine) w/ prior convictions</td>
    <td valign="bottom" width="72">18 Months County Jail</td>
    <td valign="bottom" width="96"><strong>Dismissed </strong>under the influence of a controlled substance and no jail.</td>
    <td valign="bottom" width="60"><strong>Set Aside - </strong>No DMV Suspension</td>
    </tr>
    <tr>
    <td valign="bottom" width="91">LA Superior Court - Antelope Valley Courthouse (Lancaster)</td>
    <td valign="bottom" width="90">V C 23153</td>
    <td valign="bottom" width="72">DUI with serious injury (Vicodin)</td>
    <td valign="bottom" width="72">3 Years State Prison</td>
    <td valign="bottom" width="96"><strong>Reduced from felony to</strong> a misdemeanor.</td>
    <td valign="bottom" width="60"><strong>Set Aside - </strong>No DMV Suspension</td>
    </tr>
    <tr>
    <td valign="bottom" width="91">Ventura County Superior Court</td>
    <td valign="bottom" width="90">V C 23152, Penal Code 273a</td>
    <td valign="bottom" width="72">DUI: 1st Offense with special allegations for child endangerment - BAC .16</td>
    <td valign="bottom" width="72">180 Days in County Jail</td>
    <td valign="bottom" width="96"><strong>Reduced</strong> to no jail with both special allegations <strong>dismissed.</strong></td>
    <td valign="bottom" width="60"><strong>Set Aside - </strong>No DMV Suspension</td>
    </tr>
    </tbody>
    </table>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still - use the pastebin. As it stands, your posted code may now have been permanently damaged/corrupted by the forum's parser.]

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Copying code from Microsoft Word is likely to cause you formatting issues. Use notepad in future.

    For CSS-specific issues, consider CSS-specific forums.

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    Don't paste content from Microsoft Word into WordPress as the pasted text will also contain Word's own formatting. Sooner or later, this formatting will stop your pages from being displayed correctly (if at all) in Internet Explorer. If you cannot possibly manage without Word, paste your text into NotePad (or another text editor) first, then copy from NotePad into WordPress.

    Or use Windows LiveWriter.

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    First off, don't use word for anything related to web coding. Use a plain text editor. You also have deprecated code in there -- review table CSS here:
    http://www.w3schools.com/css/css_table.asp

    CSS should go in an external file as much as possible...

    EDIT -- well, that's certainly unanimous! LOL!

  5. jamiwr
    Member
    Posted 1 year ago #

    Thanks for the info. I am pasting the table I created from excel into word and then into WordPress. The code I posted is based on what was created by wordpress from the paste.

    I do not know how to write the code I need and I am trying to figure out how to get this table up on the page.

    Are there any plugins that would make this easier?

  6. esmi
    Forum Moderator
    Posted 1 year ago #

  7. jamiwr
    Member
    Posted 1 year ago #

    Thanks guys. I downloaded the wp table reloaded. How do I change the font size, format each cell, and change the column widths?

  8. esmi
    Forum Moderator
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic