Forums

[resolved] css tables, margins (4 posts)

  1. kmkoop
    Member
    Posted 6 months ago #

    After much searching and a lot of trial and error I have decided to ask the WP experts. I am creating a table 2 columns/1 row. That's the easy part. Next i am trying to create a description underneath with no margins so that there is no space underneath the 1 row of 2 columns table. Here's a link to the web page in question: http://www.sound-offpromotions.com/table-experiment/. Also I will have to repeat this for several different 1 row of 2 columns tables.

    Also do you know of any easy to understand resources pertaining to CSS?
    PS. I just figured out what the problem really is and now I just need a solution.

    Any help would be greatly appreciated!

    Thanks!

  2. peredur
    Member
    Posted 6 months ago #

    Well, there are probably a couple of things you should know.

    Firstly, you are using (as far as I can tell), the twentyten theme, which is one of the defaults. You should not make changes to any of the default themes without doing so via a Child Theme. Even for non-default themes, making customisations via a child theme is the only recommended way.

    Secondly, if you are considering using tables for layout, you should probably be made aware that there are very few serious web developers who use tables in this way any more. Even IE6 supports enough of CSS2.1 to make this mis-use of the table element as unnecessary as it is undesirable.

    Having said that, if you can provide a few more details of what you want to achieve, we'd be happy to help: but you would need to give us rather more details about the layout you need, for us to be able to do that.

    HTH

    PAE

  3. kmkoop
    Member
    Posted 6 months ago #

    peredur

    Thanks for your insight. I am intending to create an online menu for a restaurant. I thought it made sense to use a table for this. I have made the menu using what I call a backdoor way by using white periods to create the space, but I thought this was a no no because it wouldn't space correctly on different monitors. Is this correct? Could you me a clue on what to use and where to find the information?

    Thanks,

    Kevin

  4. peredur
    Member
    Posted 6 months ago #

    If you are trying to present matricular data, then a table is appropriate. For me, though, a menu is a list and so I would, as a first attempt, try to style it as such. Semantically it seems to me to make more sense.

    Using non-breaking spaces is far worse than using tables. It might occasionally be possible to rationalise the use of a table for layout. I can't imagine how this could ever be so in the case of the use of non-breaking spaces.

    The information you need would most likely be found in any reasonably up-to-date HTML/CSS tutorial. Here are some resources that I happen to know about, with no particular claims as to their worth:

    http://www.positioniseverything.net/
    http://www.alistapart.com/

    Cheers

    PAE

Reply

You must log in to post.

About this Topic