By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,996 Members | 896 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,996 IT Pros & Developers. It's quick & easy.

how to separate consequential tables

P: 5
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="#fff2cb" border="0"><tbody><tr height=""><td>


My site:

Sep 15 '06 #1
Share this Question
Share on Google+
2 Replies

Expert 5K+
P: 7,435
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"

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 and do some reading.
Sep 15 '06 #2

P: 5

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!

Sep 15 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.