• hi all. i am very new to wordpress with no knowledge of php or blogging. i have been doing basic sites for around 6 years, firstly by hand with html and more currently with dreamweaver, so i find it easier to layout i dreamweaver and then paste the code into the wordpress pages.
    my problem is that the tables don’t look as they should. ie the borders are set to default (no colour) and the table background is not displayed. i can’t seem to find reference to this in the css either. am i looking in the wrong place?

Viewing 4 replies - 1 through 4 (of 4 total)
  • It’s not “best practice” to use tables for layout purposes. Your WP theme should be set up already with its own layout via CSS. If you want it to be laid out differently, you’ll have to go searching for another theme or try changing the one you’ve got.

    Without a link to your site, folks can’t go look and see what kinds of problems you’re having.

    Thread Starter zentaochi

    (@zentaochi)

    sorry, ’bout that.
    the site i’m setting up is at
    http://www.malawigold.com/wordpress/
    there’s not a lot there yet, but it’s going to be for a client who wants just the basics and only one page where replies can be posted.
    i’m looking to use tables within a page so that i can use a different background for the table.
    is it possible to change individual table details? and if so, where?

    I looked at the page source, and you’re using a table with one row and one cell inside a div called “post.” Much better to use CSS to assign background for the post div, instead of adding a table in there.

    I suggest you learn about CSS from any basic tutorial you can find online — CSS doesn’t have to be complicated, especially when you already have most of your layout created by your WP theme. You only have to learn enough to tweak it a little.

    Example could be, in your style sheet:

    .post
    {
    background-color: #ffffff;
    }

    This would make the post background white.

    Thread Starter zentaochi

    (@zentaochi)

    i added a table so that i could control the layout with the text and image and background.
    i’m going to want to control the look using different backgrounds for different cells

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘tables within wordpress’ is closed to new replies.