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

Submitted

News homepage using HTML CSS and JS

@ClaudiuSonica

Desktop design screenshot for the News homepage coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

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-irawo 20

@ola-irawo

Posted

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

@ClaudiuSonica

Posted

@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-irawo 20

@ola-irawo

Posted

@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 helpful

1

@ClaudiuSonica

Posted

@ola-irawo Thanks. It’s a great idea. Thanks a lot

1
ola-irawo 20

@ola-irawo

Posted

@ClaudiuSonica Glad I could help.

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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