Home  >  Article  >  Web Front-end  >  Questions about text position in CSS_html/css_WEB-ITnose

Questions about text position in CSS_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:07:081166browse



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~

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