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

Nicholas Sotter

@devsotterRio grande/RS180 points

Desenvolvedor Front-end.

Latest solutions

  • REST countries API with react

    #react#react-router

    Nicholas Sotter•180
    Submitted about 2 years ago

    0 comments
  • Newsletter subscription form with validation and success message.

    #sass/scss#web-components

    Nicholas Sotter•180
    Submitted about 2 years ago

    0 comments
  • Animated illustration for a chat application using only SCSS.

    #sass/scss#animation

    Nicholas Sotter•180
    Submitted about 2 years ago

    0 comments
  • Semantic and responsive QR code component

    #accessibility#animation#semantic-ui

    Nicholas Sotter•180
    Submitted about 2 years ago

    0 comments

Latest comments

  • Masroor Khan•50
    @EduCreative
    Submitted about 2 years ago

    3-column preview card

    2
    Nicholas Sotter•180
    @devsotter
    Posted about 2 years ago

    In the body, you're using 'vw', setting the minimum width of the element to occupy 100% of the viewport. If there's any margin, padding, or other element exceeding the total size of the screen, it will create a scroll bar. To fix it, remove 'min-width: 100vw;' or refactor the code using CSS best practices.

  • AlejandroPachec•20
    @AlejandroPachec
    Submitted about 2 years ago

    Using tansform, padding, justify and align

    1
    Nicholas Sotter•180
    @devsotter
    Posted about 2 years ago

    Hi, to center a div, follow these steps: Within the semantic tag 'main', create a parent div called '.background' or any other desired name. Then, set the background of this div as the container for your box, with the dimensions of the screen. Use 'height: 100vh' to obtain the total height of the viewport and allow space for the content to be vertically centered. Use 'width: 100%' to obtain the total width of the screen.

    <main> <div class="background"> <div class="box"> </div> </div>

    After that, apply the flexbox properties in the class .background to center the content: 'display: flex; justify-content: center; align-items: center;'.

    Finally, remove the 'height: 100%' property from the '.box' class to prevent it from inheriting the total viewport size. With these changes, your content will be perfectly centered. There is also the option to center content using grids, so I recommend doing some further research on that topic.

    Marked as helpful
  • Vinicius Calefo Assarice•30
    @viniciuscalefo
    Submitted about 2 years ago

    I used the css property display flex and media query.

    #progressive-enhancement#styled-components#stylus#web-components
    2
    Nicholas Sotter•180
    @devsotter
    Posted about 2 years ago

    Hi, did you have trouble centering things in the div? It's actually quite easy. Here's what you need to do: in order for your component to be centered, it needs to be within its parent class, which in your case is the ' .background' class inside the 'section'. So far, so good. However, using only the 'display: flex;' properties won't center it because the parent class needs to have the screen dimensions. Add the properties 'height: 100vh;' and 'width: 100%;', and then the content will be centered. After doing that, remove the 'padding-top: 6rem;' that you used in the 'section' to space the content from the top. And voila, everything will be centered.

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

    Landing page using html and css

    1
    Nicholas Sotter•180
    @devsotter
    Posted about 2 years ago

    Congratulations on your work! I have some tips for you. When you have a button or a link, like in the social media icons, you can use the 'cursor: pointer;' property to indicate that it is a clickable element. In your '.section' class, simply add the 'flex-wrap: wrap;' property to allow the elements to break into the next line when they no longer fit in a single line. Additionally, for the image, you can set 'max-width: 100%;' to make it automatically adjust to the width of the parent container, making your website magically responsive. I hope this helps!

  • Shea•210
    @sh0910
    Submitted about 2 years ago

    Responsive, CSS Grid, DOM Manipulation

    1
    Nicholas Sotter•180
    @devsotter
    Posted about 2 years ago

    "Congratulations on your work! I have a tip for you. In the '.rating > label' class, where you define the styles to position the content of the buttons, you used the 'display: flex' and 'position: absolute' properties o try center the numbers. You can just use 'text-align: center;' to center them. That way they will remain perfectly centered. Hope this helps."

  • Tarık•330
    @developertarik
    Submitted about 2 years ago

    Social-Proof with flexbox

    1
    Nicholas Sotter•180
    @devsotter
    Posted about 2 years ago

    "Hi, Having a quick look, I could see some mistakes. In your 'container' class, instead of using 'padding: 50px 100px;' to fit the elements you can set a 'max-width' to a fixed value, for example 'max-width: 1440px;' and then use 'margin: 0 auto;' to create an equal margin on both sides and center the content. Also, you can also try using 'flex-wrap: wrap;' in the '.persona' class so that when the screen is reduced and the content does not fit, it will break into columns, one below the other. Along with this you can use 'justify-content: center;' to center elements when they break.

View more comments

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