How can i use div tag in center using html and css | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 4

How can i use div tag in center using html and css

23rd Jan 2018, 9:38 AM
Akash
Akash - avatar
4 Réponses
+ 5
For horizontally centering only, you can alternatively use align attribute of the div tag e.g. <div align="center">Hello, World!</div>.
23rd Jan 2018, 9:58 AM
Ipang
+ 3
.
23rd Jan 2018, 9:39 AM
Akash
Akash - avatar
+ 3
thanks everyone for help
23rd Jan 2018, 1:49 PM
Akash
Akash - avatar