Ali Mahmoud• 390
@AliMahmoud21
Posted
Hi Shrouq,
-
I recommend you use the following code in your document file to center the card:
-
body { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; padding: 2rem; }
-
Also, you must use "max-width" with the image to make it fit the card content, as well you gotta do some edits on the heading and paragraph.
Lastly, make sure you use the semantics of Html in your document file. I hope this helps you...
Marked as helpful
0