Pls help guys how to position a div tag at center I tried doing using center tag with div but it also puts text in center?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Pls help guys how to position a div tag at center I tried doing using center tag with div but it also puts text in center??

<center> <div style="background-color:white; width=100% height=100 px > 1.This should be normal left to right </div> <\center>

6th Jan 2019, 8:59 AM
Aditya
26 Answers
+ 4
Try in style text-align: left; And center should end like this </center> not <\center>
6th Jan 2019, 9:03 AM
Paul Grasser
Paul Grasser - avatar
+ 3
Thanks dude it worked thanks alot😇🙌🙏
6th Jan 2019, 9:31 AM
Aditya
+ 3
Hey Paul I think that is available for paid versions only i am not having a pro hey I got problem again on my page I have created a div tag in middle that's running outa space i need to add more content there but it just seems like ending it doesn't scrolls down anymore pls help me .. https://code.sololearn.com/WIKf6qWg6X1d/?ref=app
6th Jan 2019, 1:23 PM
Aditya
+ 3
لو كان نص استخدم text-align:center; وان كنت تقصد ان تضع الديف في الوسط استخدم position:absolute; top:100px; left:100px; وغير قيمة top وleft حسب ما تريد
8th Jan 2019, 4:45 PM
‎Emad Esmail ‎
‎Emad Esmail ‎ - avatar
+ 2
You're welcome!
6th Jan 2019, 9:36 AM
Paul Grasser
Paul Grasser - avatar
+ 2
now I want to insert an image but that is supposed to be at center but it's not coming at center what can be done pls solve this
6th Jan 2019, 10:06 AM
Aditya
+ 2
sorry dude i sorted it out it was a silly mistake i had missing tags if i get any error I'll let you know you are being a great source for help i appreciate that thanks buddy
6th Jan 2019, 10:31 AM
Aditya
+ 2
is there any chat feature in sololearn
6th Jan 2019, 10:37 AM
Aditya
+ 2
I didn't know if there is
6th Jan 2019, 10:37 AM
Aditya
+ 2
Hey Paul I think that is available for paid versions only i am not having a pro hey I got problem again on my page I have created a div tag in middle that's running outa space i need to add more content there but it just seems like ending it doesn't scrolls down anymore pls help me .. https://code.sololearn.com/WIKf6qWg6X1d/?ref=app
6th Jan 2019, 1:23 PM
Aditya
+ 2
Hey Paul I am stuck again in my page there's a div tag in which is running outa space i need to add more content in it but its just wont scroll s down and if i tried to increase div tag size everything gets messed up pls help me
6th Jan 2019, 1:25 PM
Aditya
+ 2
Messaging is not pro. It is in notifications and then messages. So, is your problem the title eith the black background?
6th Jan 2019, 2:20 PM
Paul Grasser
Paul Grasser - avatar
+ 2
no i want to write more content in the middle div tab but there is no space left ??? https://code.sololearn.com/WIKf6qWg6X1d/?ref=app
6th Jan 2019, 2:29 PM
Aditya
+ 2
hi
7th Jan 2019, 8:04 AM
azzouzi mustapha
+ 1
Can you show me your code?
6th Jan 2019, 10:13 AM
Paul Grasser
Paul Grasser - avatar
+ 1
You can also always ask my via message.
6th Jan 2019, 10:36 AM
Paul Grasser
Paul Grasser - avatar
+ 1
Yes therw is
6th Jan 2019, 10:38 AM
Paul Grasser
Paul Grasser - avatar
+ 1
Just click message
6th Jan 2019, 10:38 AM
Paul Grasser
Paul Grasser - avatar
+ 1
pls run it on pc it's not properly on the phone
6th Jan 2019, 2:30 PM
Aditya
+ 1
Oh
6th Jan 2019, 2:32 PM
Paul Grasser
Paul Grasser - avatar