Home / Design Blog / Sidebar Got You Sad?

Sidebar Got You Sad?

By: Simon
Updated:
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 */
 padding-bottom:7000px;
}

Give it a whirl!

Simon Urbina

Simon Urbina

Simon is 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.