@nakoyawilson
Posted
I took a look at your code and I'm not familiar with Sass but I noticed in your main.css file for your media query you have __icons { ... }
instead of .footer__icons {... }
and I downloaded your code and ran it using .footer__icons {... }
and that centered the icons for me.
Marked as helpful
@mattreee
Posted
@nakoyawilson You actually saved me, thank you! I just forgot to nest the "__icons" inside the ".footer" selector. So every time the media query ran, it didn't select the right class.
Also, if you're interested: https://css-tricks.com/the-sass-ampersand/ Two or three scroll down the page and you can see a nice gif of what the ampersand does in sass.
Thank you again!
@nakoyawilson
Posted
@mattreee You're welcome! Glad I was still able to be helpful even though I do not actually understand how Sass works. I just took a look at the differences between your updated and previous main.scss and I see now how __icons
is supposed to be nested. I'll take a look at the resource you linked to to try to understand more. By the way, you didn't delete the it's not working comment in your updated file.
Marked as helpful