does anyone know how to position a piece of text right underneath the h1 so it would be on the centre | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

does anyone know how to position a piece of text right underneath the h1 so it would be on the centre

does anyone know how to position a piece of text right underneath the h1 so it would be on the centre

9th Sep 2017, 12:30 PM
Ramteen
11 Answers
+ 9
is this what you want use text-align: Center; for that https://code.sololearn.com/W8a1tt3T8Tna/?ref=app
9th Sep 2017, 12:54 PM
Lord Krishna
Lord Krishna - avatar
+ 9
check the update use display: inline; property for that
9th Sep 2017, 1:07 PM
Lord Krishna
Lord Krishna - avatar
+ 9
i'm not using inline or internal it's external css...
9th Sep 2017, 1:11 PM
Lord Krishna
Lord Krishna - avatar
+ 9
@Ramteen check the code now it should be just what you need play with change the values to your liking. change the units to px, em. if you want.
9th Sep 2017, 2:06 PM
Lord Krishna
Lord Krishna - avatar
+ 9
no social media. if you get stuck need any help post your question in the Q/A. I or someone else will help you there :)
9th Sep 2017, 2:30 PM
Lord Krishna
Lord Krishna - avatar
+ 1
thank you, by the way do you have any way I could contact you in future, WhatsApp or anything :) thank you again :)
9th Sep 2017, 2:26 PM
Ramteen
+ 1
thank you
9th Sep 2017, 2:31 PM
Ramteen
0
yes but I want to know how to take the p paragraph even higher using CSS
9th Sep 2017, 12:56 PM
Ramteen
0
I'm using external CSS
9th Sep 2017, 1:09 PM
Ramteen
0
how would you bring it up or down to the amount that you want though
9th Sep 2017, 1:15 PM
Ramteen
0
it wouldn't work on my laptop but it works on this app, i don't understand
10th Sep 2017, 1:21 AM
Ramteen