<!DOCTYPE html> <html> <head> <style> div{ width:300px; height:300px; border:1px solid red; margin:auto; } </style> </head> <body> <div> The margin of the box is auto. It means that it is centered horizontally. </div> </body> </html>
Run
×
Share