CSS Position Absolute constant top margin
Posted
by
Brian
on Stack Overflow
See other posts from Stack Overflow
or by Brian
Published on 2011-01-14T01:49:44Z
Indexed on
2011/01/14
1:53 UTC
Read the original article
Hit count: 573
This question sounds simple but I'm an expert with CSS and I'm thinking it's impossible (a RARE thing).
Is it possible to use CSS to give a a page a constant top margin if that div has no background (e.g. you can see through it)? Basically, I want the background image to be visible in the top 100px of a site, so that even when scrolling down, that top-margin remains in place.
You can look at some live code here: http://cl.ly/40oY
Here's a little infographic of what I'm attempting to do: http://cl.ly/40xt
Thanks!
© Stack Overflow or respective owner