Php displays data in two rows

Source: Internet
Author: User
Php displays data in two rows. CSS is recommended for display. it is not the logic range of PHP programs. if your current program logic shows 7 rows of data, assume that your HTML code is as follows: 111... & nbsp; 777 you can modify $ pagesize = 7 to display 14 entries and then use CSS to display data in two rows for each LI element float: l php



We recommend that you use CSS for sharding display. it is not the logic range of the PHP program. for example, if you use the program logic to display seven data entries in a row, suppose

Your HTML code is as follows: 111... 777 you can modify $ pagesize = 7 to display 14 entries and then use CSS to make each


A li element float: left; then specify the maximum width of each LI element so that each row can only contain two columns.

14 pieces of data can be displayed in two columns. you only need to modify CSS to modify the panel later. Remember, things at the page presentation layer are always

Do not try to replace the program logic with HTML and CSS.

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.