@littledragonshrimpSubmitted about 2 years ago
- 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?
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;
}