So, I need help with two factors.
I’ve been trying to pushing the last thumbnail away from my footer a few pixels by targeting the margins. Using:
does not give me the results I want. What can I do to push the images upwards away from my footer?
Secondly, what do I need to research to discover how to accomplish this user story:
I navigate to different sections of the webpage by clicking buttons in the navigation.
How do you do this by scrolling?
Currently your margin is set to 25px. First, I tried changing the footer margin. That did’nt work. Then I inspected the height of the nearest element. That is the section element. The section element was a height of 0. So the margin in footer is working properly but not giving you the desired result because the div you are trying to move has a height of 0. Then I searched for why section has a height of zero. I started by looking at the section element first child element ul. The ul element also had a height of 0. Here is a hint to figure out the rest of the issue.
Found your issue in this SO, stack overflow, article about why div height is zero.
Its happening because you have floated the ul children. Thats why the #gallery has collapsed. To fix this first you have to apply CSS Clearfix to the #gallery. If you add a border around around the #gallery, it will be easy for you to work. Then delete the border later.
content: " ";
The you can apply margin-bottom to #gallery.