Displaying tables in posts and pages

Many themes pre-set up how tables will look in your wordpress website.
This is fine if you like how they look.

It’s also fine if you’re happy dabbling in CSS code to change them to how you’d like them to look.

But it does create a single way a table is displayed across your site – fine if consistency is what you’re after, but poor if you use tables like I do to note only create lists that are neat, but also to display data that looks better with boxes round it, or where uniform column width is not needed.

The twenty-ten theme is typical of this. It sets columns with no borders, and uniform automatic width within columns, which can look awful if say your third column needs to be wider.

Some code I came across can sometimes improve this, but it does seem to be highly reliant on what your theme is doing.

However try the following

<style type="text/css">
td.col-col > div {
border-style:solid;
border-width:1px;}
</style>

<table>
<tbody>
<tr>
<td class = "col-col">
<div>you text here</div></td>

etc..

If that doesn’t work, you can also try

<div><span>Southern Championship</span></div></td>

or try

<div><span style="border-style:solid">Southern Championship</span></div></td>

You can also set columns widths eg

<style type="text/css">
td.first-col > div {
width:160px;
border-style:solid;
border-width:5px;
font-size : 12pt ;
}
td.sec-col > div {
border-style:solid;
border-width:5px;
width:120px;
font-size : 8pt ;
}
td.thi-col > div {
width:160px;
font-size : 10pt ;
}
td.for-col > div {
width:40px;
font-size : 10pt ;
}
</style>

<tr>
<td class = "first-col"><div>Dorset Rare Breeds</div></td>
<td class = "sec-col">
<div><span style="color:red">Southern Championship</span></div></td>
<td class = "thi-col">
<div>3rd May</div></td>
<td class = "for-col">
<div><a href="/dorset-rare-breeds/"> Details</a></div></td>
</tr>

Try the above, and see if it can work for you

 

One Response to Displaying tables in posts and pages

  1. A fantastic training essay engages the reader till the conclusion, the biggest
    solution for publishing teaching essay is the fact that the
    instructions should be logically arranged by one so what there’s no frustration quit for the reader in the teaching composition.
    Consequently, we will be giving you some significant tips for writing training essays.
    Paul’s cathedral designed Old Agonyis residence|the home of Aged
    Agony was created by Christopher Wren, who had been the seventeenth century designer A great paper (B+ Into A) demonstrates
    a highly critical appraisal of academic literature. Paul’s cathedral|Christopher Wren, who was simply the seventeenth
    century builder A five article has some important measures the introductory
    part, three detail paragraphs, plus a conclusion. The introductory sentence must have a
    statement, with all the formulation one principal
    idea + one belief + three details. The three sentences must be in line with the details in the initial
    passage. The tale is closed by the final outcome, it lets you know exactly what the total composition was about.
    Paul’s cathedral designed Previous Agonyis
    residence|the residence of Previous Agony was
    created by Wren, who was the seventeenth century architect Produce something enjoyable and an effective
    way to have over author’s block is to take a break, something goofy.
    Simply constitute somewhat history using a talking pencil, or anything improbable.
    Paul’s cathedral|Christopher Wren, who had been the seventeenth century builder A body of the dissertation provides to
    build up the thesis statement in the introduction. If
    you’re allocated a five- article it should
    be three paragraphs. In-all additional cases, a body-part should include at least 80 percent of the complete essay.

    This is a component where you offer instances and fights
    to guide most of your strategy. So that your essay is powerful enough you proceed with arguments of medium strength need to begin with
    solid reasons and end with quite strong people. Do not forget to reference
    details and numbers you give. Paul’s cathedral
    designed the property of Outdated Unhappiness|Wren,
    who was St. Paul’s cathedral designed the house of Old Misery|Christopher Wren, who was simply A good
    paragraph following TEEL will have a reason and proof through the passage.
    By this I mean a passage will not strictly have then and the clarification the data in order.
    You’ll have then and data and an explanation the evidence or
    another explanation first and after that an explanation. However, a great composition includes the
    TEEL details. Paul’s cathedral|Christopher Wren, who had been the seventeenth-century
    designer of St. Paul’s cathedral|Christopher Wren, who had been the seventeenth century builder A superb writer is able to
    differ their type to suit the topic matter andthe publication concerned.

Leave a Reply

Your email address will not be published.