This is my first challenge at frontendmentor. any comment is appreciated
Oyeyinka Ojora
@oyeyinkaojoraAll comments
- @sasanqcSubmitted almost 2 years ago@oyeyinkaojoraPosted almost 2 years ago
Hi Sasan, You should make your card container responsive,I just checked the link and found out it’s not mobile responsive .You can use flex and media query to handle the mobile responsive , Learn Flex box via this Youtube tutorial
0 - @PastoreMartinaSubmitted almost 2 years ago
I'm resubmitting after some changes.
How can I keep the card in the center of the page but push the attribution at the bottom using Flexbox? I'd like to prevent overflow on smaller screens (e.g.: landscape mode).
@oyeyinkaojoraPosted almost 2 years agoHi Martina,
Remove the attribution from the card container
Use this code below to center your card horizontally and vertically
.container { display: flex; align-items: center; justify-content: center; height: 100vh; }
If you find this helpful kindly mark as helpful
Marked as helpful1 - @mansir93Submitted almost 2 years ago@oyeyinkaojoraPosted almost 2 years ago
Hi Mansir, Add this code below to make your container centered both vertically and horizontally:
.container { display: flex; align-items: center; justify-content: center; height: 100vh; }
Also remove this code below from your card component:
<div class="attribution"> Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank" >Frontend Mentor</a >. Coded by <a href="#">Mansir Abdul Aziz</a>. </div>
If you find this helpful kindly mark as helpful,Thanks
0 - @livinglifemeaningSubmitted over 2 years ago
completed in an 1hr 15m. How long does it take you?
- @shomurodovabbosSubmitted over 2 years ago
!
@oyeyinkaojoraPosted over 2 years agoYou haven't set the active state for the button and also use
cursor:pointer;
to change the pointer for the button0 - @sam-amistosoSubmitted over 2 years ago@oyeyinkaojoraPosted over 2 years ago
For your stats, you can use justify-content: space-between; so it can align with the card content.
0