Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 22, 2013 03:15 pm GMT

Create a Sidebar that Sticks Within an Element

You've probably seen this trick used before with social icons or a sidebar that sticks to the top of your screen as you scroll down the page.The problem is that often they don't stop scrolling and up either disappearing behind another element or overlapping something they shouldn't, which looks cheap and unprofessional.In this tutorial we'll create a 'sticky element' that only scrolls until the maximum height of it's parent element which will prevent that unsightly overflow.Let's start with a very basic html structure:

Original Link: http://vandelaydesign.com/blog/web-development/sticky-sidebar/

Share this article:    Share on Facebook
View Full Article

Vandelay Design

Vandelay Website Design exists to help businesses and organizations build a stronger presence online.

More About this Source Visit Vandelay Design