Home / Design Blog / Sidebar Got You Sad?

Sidebar Got You Sad?

By: Simon Urbina
Sep 5, 2014
Posted: Sep 5, 2014

Clean it up with this snippet. Sometimes you need a sidebar to just behave like a sidebar and span the page from top to bottom even if nothing is in the content area. Yes, really. Try this snippet. If doesn’t work or is outdated you didn’t get it here:

#sidebar { 
 margin-bottom:-7000px;/* Any large number works */

Give it a whirl!

Simon Urbina
Simon Urbina

Simon’s a Product Designer and Front End Dev with over 20 years of experience. He started as a graphic designer and illustrator coding his first website in 1996. He has worked with brands like Publix, Microsoft, and Discovery Channel.