Questions about text position in CSS_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:07:08
Original
1165 people have browsed it



In the div, how can I set each paragraph of text above to be evenly dispersed in it? Is it really only possible to " " one by one?


Reply to discussion (solution)

The number of text inside is variable and not proportional to the entire width, so there is no way to achieve absolute uniformity

The general approach is to set the overall center display. As for the gap between each bar, you can adjust it yourself. For example, add a span to distinguish the style, give some padding or something

If the whole is centered, you can Set text-align:center;

The number of text inside is variable and not proportional to the entire width, so there is no way to achieve absolute uniformity

The general approach is to set the overall centered display. As for The gap between each line can be adjusted by yourself, such as adding a span to distinguish the style, and giving some padding or something like

If you want to center the whole, you can set text-align:center;
Well, this is better OK~

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!