Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
8
Comments
2

lepamoore

@lepamoore170 points

I’m a mysterious individual who has yet to fill out my bio. One thing’s for certain: I love writing front-end code!

Latest solutions

  • Space project using React.js


    lepamoore•170
    Submitted about 2 years ago

    0 comments
  • solved using SCSS & jQuery

    #sass/scss#jquery

    lepamoore•170
    Submitted about 2 years ago

    0 comments
  • My first SPA using React

    #react

    lepamoore•170
    Submitted about 2 years ago

    0 comments
  • Responsive Webpage


    lepamoore•170
    Submitted about 2 years ago

    1 comment
  • Pod solution HTML CSS & JS


    lepamoore•170
    Submitted over 2 years ago

    0 comments
  • CSS Grid Solution


    lepamoore•170
    Submitted over 2 years ago

    0 comments
View more solutions

Latest comments

  • Cool17•110
    @Cool17
    Submitted about 2 years ago

    News Homepage

    2
    lepamoore•170
    @lepamoore
    Posted about 2 years ago

    Hey Cool17,

    nice Solution! I'm just looking at your code and I noticed some things which I'd like to share with you.

    You're using semantic HTML, which is great.

    For the body CSS Rule, you should use a height of 100% instead of 100vh. When using 100vh on mobile devices, the browser bar overlaps the content. When using 100% instead, this won't happens since the content will stop before the browser bar.

    For the nav CSS Rule, you set the display attribute to flex. But you didn't set any other rules in connection with flex, like align-items or justify center. Instead, you gave your .home container a huge left margin. Instead of the hard coded margin, you could've used something like:

    nav:  {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    

    Align-items centers all items in nav vertically, and justify content creates as much space as possible between the image and the nav list (your home container).

    If you want to place some block-level (like div or li) items next to each other, give them a width and display: inline-block; property. That way you can place them next to each other and still style them with margins etc. like block elements.

    I recommend using rem units for font-size. Standardized 1rem equals 16px if it isn't changed in the HTML CSS Rule, because of that you can do 18(px) divided by 16 equals 1.125(rem).

    your HTML code looks valid to me. Here's just one thing, use the alt attribute on img elements for accessibility and SEO reasons.

    and you could use min-width more often so the details containers won't get compressed so much. e.g. for the black New container min-width: 300px; so it doesn't shrink smaller than 300px.

    The last issue is that your black New container runs across the webpage when you're resizing the window. To be honest, I don't know why this is happening, but I think It's because the grid isn't set up properly. I think the image isn't in the grid etc. but I could be wrong, I hate CSS grid lmao.

    I think these 2 resources do have a huge worth.

    1. First a YouTube video about CSS grid in this video there's a grid technique shown which is pretty much the easiest way to use grid, but almost nobody teaches it: Grid YT Video.

    2. The second is Flexbox Froggy a really nice way to practice flexbox skills and getting familiar with all opportunities flexbox gives you Flexboxfroggy.

    I hope you like my feedback, although I'm not a pro as well.

    Happy Coding!

  • Landiel•100
    @LandielDurans
    Submitted about 2 years ago

    QR Code component solution

    3
    lepamoore•170
    @lepamoore
    Posted about 2 years ago

    Hey Landiel 👋, Your code looks very nice ! Much better than my first project here, lmao. I just read it and want to give you some feedback.

    • First, for body HTML and DIV tags, you don't need to specify the width to 100%. For these elements, the width is automatically set to 100%.

    • Then I recommend using the units % or vw (view-width) and vh (view-height) for width and height of a div or a similar element. When you use the % unit, e.g. width: 50%; Your element will be as half as big as the parent element because the % unit takes the height or width value of the parent as 100%. When you use width: 50vw; it's the 50% of the viewpoint width or device width. Same for height: 50vh; it's 50% of the viewpoint width or device width.

    • When you use these relative units, your elements will grow and shrink as the browser does. You can set maximum or minimum values in px. you could use this CSS rule as an example: div {height: 50vh; min-height: 200px;} in this case, your div container is half as big as the height of the browser window, but it won't get smaller than 200px. That means, even if your browser window is 300px high, your div will remain 200px high.

    • I saw you used some flexbox to center your divs. That was pretty nice, i just noticed you only used justify-content with flexbox. justify-content is as you know for the horizontal alignment. And if you use align-items: center; as well, your element will be fully centered.

    <div id='parentDiv'>
      <div id='childDiv'></div>
    </div>
    
    #parentDiv {
      display: flex;
      align-items: center; 
      justify-content: center;
      background-color: blue;
    }
    
    #childDiv {
      height: 50%;
      width: 50%;
      background-color: white;
    }
    
    • above you can see the code for a fully centered div in another one. Feel free to copy it and run it in the browser to get a better understanding of what I mean. My English isn't the best, so I hope you can understand what I mean 😅.

    • another important thing is use for further description of an image, an alt attribute. don't use title='this image shows a chair'. Use alt='this image shows a chair'. This way people who are using the internet with screen readers can hear your pictures then instead of seeing them.

    • keep it up. I'm just new to coding like you, but I hope my hints or tips were helpful to you. Greetings and Happy coding! 😉

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