473,397 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

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


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

My site: http://fxtalks.com/

Thanks
Sep 15 '06 #1
2 5175
drhowarddrfine
7,435 Expert 4TB
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.
Sep 15 '06 #2
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
Sep 15 '06 #3

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

Similar topics

7
by: frizzle | last post by:
Hi, I know this might sound strange but i think(/hope) it's quite simple: I'm running 2 queries in a mysql DB, first one returns 20 results. Now how can i echo results from the second query...
31
by: Robert Brown | last post by:
Let's say I have a type hierarchy: (just an example) the general entity customer: CREATE TABLE customer(customer_id int, customer_name varchar(250), customer_type int) three specific...
1
by: Larry Rekow | last post by:
I have a report that's created each day as a flat textfile. Because I came from the Access world, I created a macro that imports it with a schema that gives meaningful names to the various...
48
by: phillip.s.powell | last post by:
MySQL 3.23.58 - 4.0.17 (yep, several database server instances, don't ask) I have database Spring with table Students I have database Summer with table Students I am tasked to produce a...
3
by: LurfysMa | last post by:
I would like to hear opinions on the tradeoffs of putting the tables, forms, and queries for several related datasets in separate databases vs one combined database. I am working on an...
4
by: Markus Ernst | last post by:
Hi Looking for a possibility to get separate tables rendered with common column widths, I was surprised to see that this code validates: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"...
0
by: Pasquale | last post by:
I have a form with 8 fields, 4 of which are required and 4 are not. Usually if a field isn't required I would create a separate table for it rather than having a blank value in the table where...
3
by: BASSPU03 | last post by:
(I'm using Access 2003 on a Windows XP O/S.) I have four tables that are related in the following order: tblFiscalYear > tblBulkObligations > tblProjects > tblResources These are their...
116
by: Neil | last post by:
Whenever I've created junction tables in the past, I always made the PK of the junction table the combined pks from the two other tables. Ex: Table1 PK=A; Table2 PK=B; Junction table consists of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.