Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.