Design comparison
Solution retrospective
I need some help with the desktop layout, i couldn't make the "NEW" column equal to the others, any tips regarding that and bottom section with height of imgs and text would be much appreciated. Thanks
Community feedback
- @ola-irawoPosted over 1 year ago
For the first part, to make the "New Column" equal to the other one, on the container or parent element you can make use of "display: grid".
1@ClaudiuSonicaPosted over 1 year ago@ola-irawo With grid is designed the layout. My problem is that the column on the right with blue background is not equal to the ones in the left side as it is on the solution design
0@ola-irawoPosted over 1 year ago@ClaudiuSonica the first part to make it easier to solve, in your code, put everything inside a container. The parent element is "main", you can create a "section" under main and put the first part of the code there. After doing this, the "top-image-flow" div, and "top content" div, put it inside its own container(you can create a div for this).
In the "new-section", the "new-div" and the "middle bg-dark text-off-white wrapper" will be sibling to one another and they will share a parent which is the "new-section"
On the "section" created you can do this:
.new-section{ display: grid; grid-template-column: 2fr 1fr; gap: 1em; }
Doing this will make the first part equal to one another in height. You can add your styling to make the interface look better.
For the bottom, you can also make use of "grid" or "flex". In this case flex is better. You can put everything in the bottom in a container then on the container add...
.new-container { display: flex; justify-contents: space-between; }
Note: for this to work, each section in the ".new-container" also have to be in a container. There are 3 section or 3 different items in the bottom area. The 3 different items will have to be siblings to each other while the "new-container" is their parent.
You can add your styling to make the interface look better.
I hope this helps you.
Marked as helpful1@ClaudiuSonicaPosted over 1 year ago@ola-irawo Thanks. It’s a great idea. Thanks a lot
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord