Home > Web Front-end > HTML Tutorial > About text centering in css_html/css_WEB-ITnose

About text centering in css_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:13:13
Original
1206 people have browsed it

The company now wants to make a page, similar to the style of newspaper news. There are two styles: the news title is in the middle of the content (the title and content are dynamically taken out from the database), and the left and right sides of the title are surrounded by content.
(Brothers, just one point, please be considerate)


Reply to discussion (solution)

Not even a ghost

Pay attention to three points
text-align
margin:0 auto;
float:left;
plus width

text-align:center;

Thank you, this function is no longer available

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template