@MelvinAguilar
Posted
Hello again ๐. Good job on completing the challenge !
I have another option to create two columns.
-
Another way to create two columns in CSS is to use the grid layout ๐. Using the grid layout, you can create two columns by setting the display property of the parent element to grid and then defining the number of columns you want with the
grid-template-columns
property.Example:
<div class="container"> <div>Column 1</div> <div>Column 2</div> </div> .container { display: grid; grid-template-columns: repeat(2, 1fr) /* Creates two columns with equal width */ }
I hope you find it useful! ๐
Happy coding!
Marked as helpful