DEV Community

Discussion on: Need help with CSS positioning

Collapse
 
nardove profile image
Ricardo Sanchez • Edited

Hi,

I think you are trying to aling both divs to the left, if that is the case then:

Try making the content div a display grid, like so

display: grid;
grid-template-columns: 1fr;

and add the footer as a child to the content div should do the trick.

But you may need to keep adjusting as you build along, hope that helps.

Collapse
 
lolleri200 profile image
lolleri200

So where exactly I add these grids? Can you give an example?

Collapse
 
nardove profile image
Ricardo Sanchez

You have a div with an id of content correct. Well just add the css code I mention to that div, hope that makes sense.