+ 1
How can this...
Help me... How can the paragraph matter will set in center of web page...
5 Respuestas
+ 7
Do you mean centering a paragraph to center?
There are many ways to achieve that. Here are 2 most basic steps:
1. Align attribute: use the 'align' attribute and set it to 'center' at the opening tag of the paragraph, and it it should be centered.
2. `text-align` in CSS: Use this property and set the value to 'center' to make the paragraph centered.
Here is an example:
https://sololearn.com/compiler-playground/WGeqqjhVeKYy/?ref=app
+ 1
Very very thanks!
+ 1
Can i ask one more? 😊
+ 1
This is ok
But if we want to paragraph matter set in above or down of the web page...
So how can it... 🤔
0
Setting the position of elements has different ways to do.
One way is using display: flex; to parent element, you can find on internet for more info, SoloLearn CSS course has good informations as well. (https://www.geeksforgeeks.org/css-flexbox-and-its-properties/)
Another way is using position: absolute; This takes away the static position of the element, and gives an independent position to the element. You can also find more about it from the internet, also SoloLearn courses. (https://developer.mozilla.org/en-US/docs/Web/CSS/position)
Here's an example code for using display:flex; and position: absolute;
https://sololearn.com/compiler-playground/WOO29shzn6nQ/?ref=app