Thursday, December 18, 2008

fixed horizontal position in IE

Where the user needs to scroll sideways. Menu and buttons at the bottom stay fixed. This works great in every browser except IE. When user tried using a width for the containing element and using position:absolute; instead, but that also doesn’t do the trick.

Use this in style in body :---

[width:100%;height:100%;overflow:hidden]
#scrollablediv{height:100%;overflow:auto}
#fixedtitle{position:absolute;top:Xpx;left:50%;margin-left:-(halfelementwidth)px}<[note use of negative margin]

Read More from :
http://cssbeauty.com/skillshare/discussion/3027/fixed-horizontal-position-in-ie/#Item_0

No comments:

Post a Comment