0

HOW to make centre of a page in HTML

23rd Jul 2020, 10:22 AM
Light Yagami
Light Yagami - avatar
2 ответов
+ 1
You can use align="center" attribute in the paragraph or headings you want to be aligned to the center, this however doesn't work in all elements, some elements like <svg>, <img> and <ul>, <ol>, <dl> I believe can be centered by putting them inside a paragraph aligned to the center. You can also use CSS to do that, but since you did not include CSS tag I guess you are only learning HTML for the moment.
23rd Jul 2020, 11:37 AM
Karak10
Karak10 - avatar
0
to center a text or image, use text-align:center; property on the element or on the parent.. to center a container or block u can use margin:auto; property.. or u can use display:flex; justify-content:center; align-items:center; to center any element and it should be used on the parent
23rd Jul 2020, 10:31 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar