Center align the <div> element using margins.
Hint: Use the margin-left and margin-right properties.
In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since.
'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.'
This will reset the score of ALL 138 exercises.
Are you sure you want to continue?
Share your score:
Take our CSS Developer Certificate to prove that you have fundamental knowledge of web development using CSS.