@CamronWithrow
Posted
Hi!
I have a couple of comments that may help you out with your code.
- The title for the card should be in an
<h1>
tag instead of an<h2>
. Generally, you want to have a sequence of headings starting with<h1>
and without skipping any headings below (so, you don't want something like<h1>
followed by<h3>
, or an<h2>
without an<h1>
above it). You can use CSS to style your<h1>
so it looks like the design. - You also want to avoid using
<br>
to match the line breaks in the design. You can get the lines to break in the same place using the font size and the width of the card (your<div class="image">
). - You can get the card centered in the browser viewport by making your
<body>
a flex container. In your main.css, you could add
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
Then you wouldn't need to manually position the card.
I hope this helps!
Marked as helpful
@Sam-52
Posted
I changed h2 with h1, removed <br> and centered it in proper way. Thank you for your advice. @CamronWithrow