@SaikiranVulla
Submitted
Looking to hire developers?
@sarvothamgowda
@SaikiranVulla
Submitted
@sarvothamgowda
Posted
Hi Sai Kiran,
Good start.
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
<html lang="en">
<head>
<meta chartset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
</html>
You can learn more about the attributes and tags here https://www.w3schools.com/
Hope this helps!
Marked as helpful
@StephenAlcantara
Submitted
@sarvothamgowda
Posted
Hi Stephen,
Good job. You can add a few lines of code to improve it even better. For example:
body { min-height: 100vh; }
This will give enough room to center your container.
span { letter-spacing: 15px; }
Hope this helps!
@nuwanchandrasekara
Submitted
@sarvothamgowda
Posted
Hi @Nuwan,
Good start. Even though I'm still learning and new to HTML and CSS I would like to share some feedback based on my learnings.
body { min-height: 100vh; display: flex; justify-content: center; background-color: hsl(212, 45%, 89%); }
Consider using semantics elements (for eg: <picture> ) which clearly defines its content.
I think the path for the image is wrong hence the QR code image is not showing. While I add images I always declare its width and height in the img markup. And use width of 100% and height auto in the CSS to make it responsive. You can also consider using Object-fit: contain; to retain its original aspect ratio and it will fit within the given dimension.
Since, you have declared img as a class="qr-code" use that in your CSS rule.
<img src="<path> alt="QR-code-image" width= " " height " ">
.qr-code { width: 100%; height: auto; padding: 1rem; border-radius: 15px; }
Marked as helpful
@MOHITBILALA
Submitted
@sarvothamgowda
Posted
Hey Mohit,
Good Job! Your solution is almost close to the design. One thing I noticed is that you have forgotten to add border-radius to the container.
.container { border-radius: 5px; }
Happy coding!
Marked as helpful
@Abdelrahman0Khaled
Submitted
how can i sit background imgs better? **how can i make this project with best practice ? ** I am still learning ..all feedback is welcome
@sarvothamgowda
Posted
Hey, good job!
Especially on aligning the testimonial cards as per the design. The only thing where you can work on is the background image position. Here is my solution.
body { background: url(./images/bg-pattern-bottom-mobile.svg) no-repeat fixed bottom right, url(./images/bg-pattern-top-mobile.svg) fixed no-repeat top left; }
body { background: url(./images/bg-pattern-bottom-desktop.svg) no-repeat fixed bottom right, url(./images/bg-pattern-top-desktop.svg) no-repeat fixed top left; }
Marked as helpful