Move the content to the left by adding the Width property
P粉738046172
P粉738046172 2024-04-06 22:01:35
0
3
632

I have provided margins to the body. Main {Left margin: 200px; Right margin: 200px; Text alignment: Center}

Since I want to display the text in two lines instead of one, I added the width attribute to the style.

.p{Font size: 12px; Width: 200px}

This line can be used to display the paragraph in two lines, but it moves the text to the left.

Even if I try

.p{Font size: 12px; Width: 200px; Text alignment: Center; Align items: Center};

This paragraph will not be moved. It remains on the left side, unaligned.

How can I solve this problem.

P粉738046172
P粉738046172

reply all(2)
P粉299174094

I don't quite understand what you want to archive. You can use a framework such as bootstrap which is easy to learn and understand and is very responsive.

  • reply test
    author 2024-04-30 23:48:50
悟

ok No problem

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!