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

 

10 Responses to Displaying tables in posts and pages

  1. RalphPaink says:

    чит коды на warface как пользоваться
    не заходит в warface launcher
    скачать чит на warface прямая ссылка кредиты
    warface против зомби опасный эксперимент
    бесплатные аккаунты в warface с ежом
    warface как играть в спецоперации

  2. StSidImire says:

    Крем здоров для суставов отзывы

  3. Ram says:

    трансфер из симферополя

    трансфер крым

  4. Anonymous says:

    Wow,Fantastic article,it’s so helpful to me,and your blog is very good, I’ve learned a lot from your blog here,Keep on going,my friend,I will keep an eye on it,One more thing,thanks for your post!
    美國黑金

  5. en guzel karilar
    kadikoy escort olgun
    ulasabilirsiniz
    hatunlar icin burayi ziyaret edebilirsiniz.

  6. Mary says:

    Hello Friends !
    Popular subsistence Detox Aliment Clean Detox Programs Be prejudiced The Victuals Mitigate through Julia Ross
    Ransack Detox Programs The latest thing How to Lose Struggle Intemperate Paleo administration has been one of the most in vogue diets
    Diet fo women
    Diet fo men
    Top intake trends
    Diet guide
    Health guide
    Best diets overall
    Healthy living
    Popular victuals news
    Popular diet guide

  7. Davidhof says:

    Спецалист по удалению плохой негативной информации в сетиудалим негативную информацю из Удалим всю негативную информацию ,разместим положительные отзывы.Привлечение трафика аналог яндекс директа и гугла Агентство репутации Вастутнет VasTutNet точка ру!

  8. RolandDrago says:

    If you are arranging to take your small business on the net and discover the possibilities, Instagram is an absolute should. Utilizing Instagram for small business does not mean you have to stick up a bank and get loads of money to spend for tastefully shot images. There are a number of ways you can use Instagram for small business, make oneself visible and improve your customers’ expertise.A manual packed with tons of wonderful cost-free and paid targeted traffic resources as effectively as added success creating approaches. Many of these are not effectively known and it also involves a directory of web pages that lots of productive World-wide-web Marketers use to drive visitors. This is basically a must have for any really serious Online Marketer.The substantially much easier way is to use “Major and Second Tier Directories” and getting “Themed Directories and “Niche Hubs.”This set of circumstances usually leads to a predicament exactly where the highest profile marketing activity is often generated by larger businesses that have a limited quantity of genuine solution or service benefit but appreciate reasonably high gross margins. They can then use these greater margins to fund significant advertising in an try to “talk-up” the quite tiny variations they in fact have.Hama Holding http://www.wraithpowerlinks.com – wraith power links 30. Make contact with compact newsletters sources offline and submit articles to them.If you have a site of your own, it won’t take lengthy before you learn about backlinks. They are an extremely important advertising tool for sites – and one particular that is generally either underused or misused! Figuring out how to get backlinks, how they function, and how developing backlinks the wrong way can trash your website’s rankings are all essential topics any web site owner must know.Use anchor text. This is a key issue. Seo is about relevance, it really is what is most valued by the search engines, and a single of the techniques you display relevance is by getting your incoming links describing your web page contents. An anchor text backlink for the screen shot instance above would of course read, Start Acquiring Web page Visitors.Laptops have come down so a lot in value over the previous handful of years and additional folks have began utilizing them, every in the office and on the road. The largest transform to the demographic of the laptop, nonetheless, is that more people have started utilizing their laptop personal computer computer as a option for their property laptop or computer. When as soon as, laptops had been solely utilised for portability, they now have develop into so strong that they can do each and every element that house computer systems can – and extra. The laptops of today have a great deal bigger screens than they as soon as did, which was usually a thing that laptop laptop or computer customers complained about in relation to the larger screens on their residence computer systems. With bigger screens, faster processors and now the prediction of a lot bigger exhausting drives on the horizon, it won’t be extended prior to laptop personal computer computers push several dwelling primarily primarily based laptop strategies off the desk at house.Reciprocal Links

  9. JamesMaf says:

    Последние женские новости здесь delodom.com

  10. Jamesentep says:

    Hi! I would like to send you poop, on every side forex in lucid countries
    here.
    So, if you be to read a wonderfull articles conclude finished with forex, you can even-handed circumstance resource to this unite

Leave a Reply

Your email address will not be published.