Home  >  Article  >  Java  >  Single column layout horizontally centered layout method

Single column layout horizontally centered layout method

一个新手
一个新手Original
2017-09-06 10:36:041536browse

Horizontal center layout

  1. Parent element text-align:center; child element: inline-block;

  • # #Advantages: good compatibility;

  • Disadvantages: need to set child elements and parent elements at the same time


    
    
    
    
    
    
    水平居中布局
    
    
    

    1

    2

    3

    4

    5

    6


The above is the detailed content of Single column layout horizontally centered layout method. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn