Jump to content

tables


dannybrazil

Recommended Posts

Hello

may be some one can help me , im trying to place 4 tables (instead of table with 4 culomns) side by side

but it seems wierd cus when im typing the code the tables go under each other

 

<table></table> (space) <table></table> (space) and so on....

 

i want to get

TABLE  TABLE  TABLE...

 

not:

TABLE

TABLE

TABLE

.

.

.

 

Link to comment
https://forums.phpfreaks.com/topic/99542-tables/
Share on other sites

He is right, learn CSS but sometimes tables are unavoidable in this case you want to use

 

<table>
<tr>
	<td>Table 1</td>
	<td>Table 2</td>
	<td>Table 3</td>
	<td>Table 4</td>
</tr>
<tr>
	<td>Table 5</td>
	<td>Table 6</td>
	<td>Table 7</td>
	<td>Table 8</td>
</tr>
</table>

 

Out Put is:

Table 1 Table 2 Table 3 Table 4

Table 5 Table 6 Table 7 Table 8

 

Link to comment
https://forums.phpfreaks.com/topic/99542-tables/#findComment-509338
Share on other sites

The only situation in which tables are unavoidable is for tabular information (cross referencing cateogories). Other than that they are not only never necessary, but should in fact never be used.

 

Although theoretically, someone could have four sets of tabular information to be displayed on one page. But in such a case, the above would still be bad code - its using a table to position tables. Tables themselves aren't tabular information, they hold tabular information. In such a case, it would be better to create the four tables above each other, and then position them using CSS.

Link to comment
https://forums.phpfreaks.com/topic/99542-tables/#findComment-509752
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.