开发者

IE6 position fixed problem

Ok I am not trying to get an element to a fixed position, im trying to get a div tag out of fixed position. i have a header that is at the top position relative. below it is just another div tag with content in it. when i went to preview it in IE6, the header was positioned at the very top, and was fixed. it stayed at the top when i scrolled down, but really it was position relative. no elements in my css ar开发者_开发问答e positioned fixed by the way. has anyone had this before and know a fix?

CSS:

#top { height: 168px; 
  display: block; 
  clear: both; 
  overflow: visible; 
  position: relative; 
  margin-bottom: 15px; 
}

HTML:

<div id="top">
  <a href="link.html">Link 1</a> 
  <a href="link.html">Link 1</a>
  <a href="link.html">Link 1</a> 
  <a href="link.html">Link 1</a> 
</div>

then just regular div tag underneath with content...


Wait I got it, I added position: relative; to the parent div and then it works now... wierd

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜