Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

All comments

  • J 330

    @littledragonshrimp

    Submitted

    • How do you make the text an appropriate size at different window sizes?
    • How do you make the square centered horizontally?
    • How would you simplify the process of doing this?

    @artuino0

    Posted

    Hi Jordan. You can center the div horizontally using Flex and setting the content with justify-content and align-items, for example:

    //HTML
    <div class="parent-div">
       <div class="child-div"> Hello World! </div>
    </div>
    
    //CSS
    
    .parent-div{
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    1