Inside the table, how to make these inline tables wrap.

Source: Internet
Author: User
Inside the table, how to make these inline tables wrap.
I defined the width of the large table as 700 pixels, embedded each small table 150 width, each row shows four small tables followed by a newline
The code is as follows:
(The result: the table does not wrap, the big table burst)
HTML Code
  
   PHP statement from the database select content
  
   
   
The PHP statement here shows what's being fished out of the database.
PHP statement, loop over this table


------Solution--------------------
1, in the absence of CSS control, table will not be placed parallel. So your sample code doesn't match the problem description.
2, assuming that you have been control, then 4 table only accounted for 600, there is no more than 700 possible. You should have a change of control.
HTML Code
  
  
A
A
A
A
A
A

------Solution--------------------
It is obvious that the landlord did not change the form of line control.

Three methods for reference:

1, swap with div (much easier, but the downside is that you have to redesign your stylesheet)

2, with the upper left floating (the disadvantage is that the content left, can not be centered)

3, with PHP program control: Each fetch four values, fill in 4 tables, re-(Too convenient and beautiful)
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.