Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
25
Comments
23
Snehamoy Bag
@snehamoybag

All comments

  • Alejandro25A•220
    @Alejandro25AR
    Submitted almost 2 years ago

    Age calculator with React + TS, Atomic desing and mobile first

    #bem#itcss#sass/scss#typescript#react
    1
    Snehamoy Bag•600
    @snehamoybag
    Posted almost 2 years ago

    Man this looks incredible! Great job

  • Efere Precious•580
    @justEfere
    Submitted about 2 years ago

    Responsive four card feature using flexbox and grid

    #styled-components
    1
    Snehamoy Bag•600
    @snehamoybag
    Posted about 2 years ago

    Hi @justEfere, 🙋‍♂️

    Congratulations on completing this challenge! 🎉 You did a great job on the layout, it looks great! 👏

    You can use percentage units to give relative size to the children 😄

    <div class="container">
       <div class="container-item"></div>
    </div>
    
    .container {
        width: 100px;
    }
    
    .container-item {
        width: 50%;
    }
    

    This will make the .container-item to be 50% of its parent. So if you change the width of .container, the .container-item's width will also change.

    Marked as helpful
  • edivaldojrdev•90
    @edivaldojrdev
    Submitted about 2 years ago

    Stats Preview Card Component

    1
    Snehamoy Bag•600
    @snehamoybag
    Posted about 2 years ago

    Hi @edivaldojrdev,

    Great job completing this challenge! 👏

    Answering to your question, since you have only set the img {height = 100%}, it only stretched the image that is inside of your <img> tag. The mobile version of the image is actually inside the <source> tag within the picture.

    Therefore, in order to target both img and source tag you can use this selector :

    picture > * {
        height: 100%;
    }
    

    This (picture > * { }) will target all element that is a direct child of the <picture> element. 😄

    Also, I just noticed that you are using order property to shift the layout 😯 as a disclaimer I'd recommend you not use it often, as it can mess up the actual order of html document which can cause major confusion to someone using an assertive technology 😅

  • P
    Dave Quah•650
    @Milleus
    Submitted over 2 years ago

    Ping single column coming soon page

    #cube-css#accessibility
    2
    Snehamoy Bag•600
    @snehamoybag
    Posted over 2 years ago

    You're an inspiration.. always learn something useful from you

  • lieneil•560
    @NJVS
    Submitted over 2 years ago

    Huddle Landing Page

    #sass/scss#animation
    2
    Snehamoy Bag•600
    @snehamoybag
    Posted over 2 years ago

    Woah those waves are so cool 😍 love it!

  • dvbenthem•110
    @dvbenthem
    Submitted almost 3 years ago

    four-card-feature-section-master

    2
    Snehamoy Bag•600
    @snehamoybag
    Posted almost 3 years ago

    Hi @dvbenthem, Congratulations on completing the challenge! Good Job! 👏

    Answering to your query

    Setting a fixed height can be problematic.

    In small screen devices the content's height increases as the content's width shrinks, so if you have a element with set height the content inside of it overflows out of it.

    In your case as you have set a height on body, the extra content overflows out of the body and everything overflowing out of the body gets cropped. 😅

    To fix the issue

    Try to stick with min-height when setting a height on a element. Setting a min-height will give the element the minimum desired height and it'll strech if the content inside of it increases, so it won't cause any overflow.

    In short always use min-height unless you have a solid reason not to. 👍

    Marked as helpful
  • Alejandro25A•220
    @Alejandro25AR
    Submitted almost 3 years ago

    Different accent color, animations, BEMIT and Vanilla JS

    #accessibility#bem#itcss#sass/scss
    1
    Snehamoy Bag•600
    @snehamoybag
    Posted almost 3 years ago

    Daaaaaaamn! The animations are so cool 😍

  • POTB•330
    @Peteonthebeat
    Submitted almost 3 years ago

    Flex-box, Grid

    2
    Snehamoy Bag•600
    @snehamoybag
    Posted almost 3 years ago

    Hi @Peteonthebeat

    Looks like your site is not loaded as the index.html is inside of a folder/directory. I'd recommended you to put the files outside of the Qr~Code-Component folder and then update the solution 👍

    And also answering to your query, justify-content: center and align-items: center should center a div both horizontally and vertically when the parent container has a set height. If the parent container doesn't have a height, align-items property won't work when flex-direction is set to row. Similarly, justify-content won't work when the parent container doesn't have a height and its flex-direction is set to column. 😄👍

    Marked as helpful
  • Fidget836•20
    @Fidget836
    Submitted almost 3 years ago

    My first challenge HTML / CSS - Product preview card component

    3
    Snehamoy Bag•600
    @snehamoybag
    Posted almost 3 years ago

    Hi @Fidget836 🙋‍♂️

    Congratulations on completing your first challenge 👏 really good stuff 👏

    Usually <br> tag is used to signify a line break so using it in a single sentence is semantically a bad idea. Instead you can set the title a max-width using the super useful ch unit, where ch stands for characters.

    h1 { max-width: 15ch; }

    LEARN MORE

    • br tag is bad
    • ch unit

    And if you want change the width of the title for wider screens you can use the media queries

    @media (min-width: 720px) { h1 {max-width: 10ch;} }

    *This change of style will appear when the screen resolution is 720px or more 😄 *

    Learn more about Media Queries

    • know more
    Marked as helpful
  • Aayush Gupta•40
    @AayushGuptaP1
    Submitted almost 3 years ago

    Responsive Order Summary Page using HTML and CSS

    1
    Snehamoy Bag•600
    @snehamoybag
    Posted almost 3 years ago

    Hi Ayush 🙋‍♂️

    Great job completing the challenge 👏

    You can use media queries to style your page for big screens. Alternatively you can use non-fixed units such as percentages % to set the widths and heights of an element 😄👍

    Marked as helpful
  • hWeitian•20
    @hWeitian
    Submitted almost 3 years ago

    QR Code Component

    1
    Snehamoy Bag•600
    @snehamoybag
    Posted almost 3 years ago

    Hi @hWeitian, Congratulations on completing on your first project 👏 I really liked how you used Flex-box efficiently to match the desired outcome. Great job!

    One concern i can notice in your css is the html { width: 100vw; height: 100vh } 😅 as i've learnt earlier from a fellow frontend mentor dev that setting a fixed width and height can give scroll bars to some device and worse.. the content might even get cropped. So i'd recommend you to never use width to set the pages cause width is by default 100% on all devices and is responsive. On the other hand setting a fixed height can cause the content to overflow or get cropped.. so whenever you need to set a height.. always use the min-height property 😄👍

    Marked as helpful
  • Man Ting Chan•70
    @M-Chan
    Submitted almost 3 years ago

    Responsive Profile-Card-Component using CSS Grid

    1
    Snehamoy Bag•600
    @snehamoybag
    Posted almost 3 years ago

    Hi Chan 🙋‍♂️ Great try attempting this challenge 👏 I too struggled positioning the background-circle images 😂 its no big deal though as a developer we learn new things when we get stuck 😁

    So for your queries you don't actually have to place the images on your html. You can set multiple background images separating them with commas ,. Like this background-image: url(images/1st-img.svg) , url(images/2nd-img.svg);

    Similarly to position the two images separately you can do something like this background-position: right 52vw bottom 35vh, left 49vw top 49vh ; As you can see, we used , to position the two different images seperately. 😃

    To make the profile card responsive, You can set its default width to something like width: 90% and to make the card not get too wide add a calculated max-width, like max-width: 21rem

    Here are few documents you can check to learn more about this:

    • background-image
    • background-position
    • background-size
    • learn more about css units

    And as a final note, You don't really have to create a separate css file for the mobile version . You can add as many media queries you want in a single css file. 👍

    Feel free to reply if you need any further help 😄

    Marked as helpful
  • Lucas 👾•104,160
    @correlucas
    Submitted almost 3 years ago

    3 Column Preview Card (Vanilla CSS + Custom Design & Hover States)

    13
    Snehamoy Bag•600
    @snehamoybag
    Posted almost 3 years ago

    Damn this is so cool! 😯🔥

  • Sam•230
    @samd1a
    Submitted almost 3 years ago

    Testimonials Grid Section

    #sass/scss#accessibility
    3
    Snehamoy Bag•600
    @snehamoybag
    Posted almost 3 years ago

    Hi Sam 🙋‍♂️ Great job on completing this challenge it looks awesome 👏 Keep going!

    Answer to your query : If you're talking about the "quote" background image then you can use background-size css property to resize your background images. For the units you can use rem/ em/ % / px etc.

    And similarly if you want to place background image at a certain area in your page then you can use the background-position css property

    Here are few useful links to learn more about them

    • background-size
    • background-position
    Marked as helpful
  • charmonder•260
    @charmonder
    Submitted almost 3 years ago

    QR Code Component with Only CSS

    3
    Snehamoy Bag•600
    @snehamoybag
    Posted almost 3 years ago

    Great job! Keep on going 🔥

  • Cameron Dick•20
    @CTDck
    Submitted about 3 years ago

    A bigger QR-code with a simple hover state footer

    3
    Snehamoy Bag•600
    @snehamoybag
    Posted about 3 years ago

    Great Job Cameron 🙌 Congratulations on completing your first challenge 🙌

    And yes it is better to markup your html first then do the css, well atleast some of the basic structural html (i.e. divs, h1, paragraph etc). You can later change, add, remove or edit the html if you have to 😄 and it is completely normal for a web developer to switch between tabs again and again in order to make sure everything looks and works fine.. so don't worry about it 😁

    Marked as helpful
  • Mani Idamakanti•20
    @Maniidamakanti28
    Submitted about 3 years ago

    Profile-card-component Using HTML & CSS

    1
    Snehamoy Bag•600
    @snehamoybag
    Posted about 3 years ago

    Hi Mani! You can add multiple background-images by separating them with commas

      background-image:  url('/first_image'), url('/second-image');
    }
    

    Similarly they can be positioned separately using commas

    background-position: right 52vw bottom 35vh, left 49vw top 49vh ;
    

    😄

  • C Lewis•110
    @casserole27
    Submitted about 3 years ago

    Profile Card Component using HTML, vanilla CSS, Flexbox

    1
    Snehamoy Bag•600
    @snehamoybag
    Posted about 3 years ago

    Hi Lewis, Great job on the challenge 🙌 Me too got stuck in this challenge for a while and then I found this video from Kevin Powell where he discusses more about the background image positioning. It was super helpful 😄

    Marked as helpful
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub