Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tables

Status
Not open for further replies.

ice78991

Programmer
Nov 20, 2006
216
Ii am setting up a webpage that inserts tables one after the other within a div tag. The general structure is shown below

<html>

<div align="center">

<table border="0" cellspacing="0" cellpadding="0">
<tr><td> Some Text.....</td></tr>
</table>

<table border="0" cellspacing="0" cellpadding="0">
<tr><td> More Text.....</td></tr>
</table>


</div>

</html>

Is it ok to insert a series of tables like this directly onto the page
Will this yield consistent results across 99% of browsers
 
It should work, but you might want to re-adjust the way in which you display the data on the web page.

Why do you need a number of seperate tables - why not one table with a number of rows? Or even divs?

W3c and other organisations are trying to limit the use of tables in layout, and only to use them whilst showing tabular data.

Also, you should use css to adjust the layout of the divs/tables. Easier to change them and it is better practise.

Hope this helps!!!

A computer always does what you tell it to, but rarely does what you want it to.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top