Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Hannah Frost
Hannah Frost
3,302 Points

Issues with implementing what I've learnt into my practice website

Could I get some help with issues I'm having on my website? Trying out things I've learnt on the front end developer track and run into some issues which I can't seem to fix. Any help greatly appreciated!

index.html page:

  • footer doesn't appear to stick to the bottom of the page
  • Text in <figcaption> seems to squish together onto one line when on larger screen

posts.html: -no sticky footer again -theres a banner that is now hidden behind the nav bar. In larger screens the nav bar should always be at the top and content should scroll under. You can see the banner in smaller display

bits.html: -same issue with nav bar hiding content behind it. Footer is under there!

Here's a link to my code - please be kind, I've only just started! Thanks

test.hannahfrost.co.uk

1 Answer

jamesjones21
jamesjones21
9,260 Points

Hi Hannah, I would amend your css in the following:

Existing:
-----------
.main-footer {
  text-align: center;
    padding: 2em 0;
    background: #d9e4ea;
}
change:
---------

.main-footer {
  text-align: center;
position:absolute;
bottom:0;
width:100%;
    padding: 2em 0;
    background: #d9e4ea;
}

this should make it stick to the bottom :)