
Mobile-first solution using pure HTML & CSS Blog Preview Card
Design comparison
Solution retrospective
When i making website i always start with desktop version. making desktop version first usually make the mobile design harder as content need to be placed appropriately follow mobile screen size. Then i start to create mobile design first and realize that resizing from mobile to desktop is easier because content on mobile can be resized, customized into desktop version.
What challenges did you encounter, and how did you overcome them?To achieve profile image design. i use transform: scale(0.6)
to make it smaller. then the margin of the picture start to break. to solve it, i use margin-left: -1.2rem
so it align neatly as other element.
are there better way to resize the image without changing the image margin?
Community feedback
- @Ankush9800Posted 3 months ago
can you say how to import custom font
0P@OdiestaPosted 3 months ago@Ankush9800
I select fonts from the Google Fonts website, select font that i need, copy the provided code, and paste it into my HTML file. An example of code given as follows:
<link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link href="https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap" rel="stylesheet" />
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord