how to separate consequential tables

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • claudio
    New Member
    • Sep 2006
    • 5

    how to separate consequential tables

    Hi everybody,

    I'm new to programming in html and been setting up my site for the last few weeks. One problem I keep having: the site is made up of daily tables, loosely centered in my page and with links buttons on the left and right.

    Each day I add an updated page (journalism), or table, above the previous one and each day I have to calculate how many <br> tags I need to separate latest table from previous one. Unfortunately each day the updated table is different in lenght and so all this is very time consuming. I tried using <p>, <clear>, <div> tags but the only ones that work are the <br> ones, so each day I must find how many I need and then check and check again.

    Any suggestion?

    My tables are as follows:

    <table style="Z-INDEX: 100; LEFT: 155px; POSITION: absolute; cellpadding:" height="" cellspacing="2"
    width="683" bgcolor="#fff2c b" border="0"><tbo dy><tr height=""><td>


    </td></td></tr></tbody></table></div>

    My site: http://fxtalks.com/

    Thanks
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    You are using an old style method of coding. You should never use tables for laying out web pages. Instead, you should contain your text inside <div> elements and use CSS to style them.

    One problem you have is you absolutely position your tables. I am assuming this is why you need the break tags to space the tables. Absolute positioning removes the element from the normal flow causing all other elements to 'rise up' into the hole left behind. You might try and just remove that position declaration and see if that removes that problem.

    The doctype is also incomplete. New pages should always use a strict doctype. Change yours to this one:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">

    Unfortunately, this may make a mess of your page so be prepared to change it back. The mess is caused by your use of old tags and the other problems I've mentioned.

    Personally, I'd scrap this whole thing and start over. You might want to go to w3schools.com and do some reading.

    Comment

    • claudio
      New Member
      • Sep 2006
      • 5

      #3
      Hi,

      thank you for your quick answer.

      Been working on the site for 5weeks now and bit reticent to start from scratch. Using an html guide for dummies bought 8years ago........

      Anyway, I think I solved the problem today by creating iframes.

      One of this, the one in the centre of the page, sends to an html document containing the upadated daily articles.

      This way it's quick to updated and light to upload.

      Was quite happy about it.

      Anyway, i'll certainly consider following your advise if I detect further problems!

      Bye,
      Claudio

      Comment

      Working...