Briefly introduce the method of implementing single-column layout and horizontal center layout using HTML+CSS

巴扎黑
Release: 2017-09-07 09:32:42
Original
1690 people have browsed it

This article mainly introduces the relevant information about HTML+CSS to implement single-column layout and horizontal center layout. Friends in need can refer to the following

Horizontal center layout

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

  2. Advantages: good compatibility;

  3. Disadvantage: You need to set both the child element and the parent element


      水平居中布局  

1

2

3

4

5

6

Copy after login

The above is the detailed content of Briefly introduce the method of implementing single-column layout and horizontal center layout using HTML+CSS. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!