vegUI.org home of the javascript based window manager and AJAX framework

Unselectable text in absolutue positioned elements in IE

written by vegu on 31 Dec, 2006 01:49:17
Internet Explorer has a problem with text selection in absolute positioned HTML nodes. It only occurs if the node is positioned outside the dimensions of the BODY element.

The problem is that Internet explorer does not adjust the body size if you move or resize absolute positioned nodes. So if, for example, you position your node at 500,500 and the body element is only 200 pixels high then your node will be outside of the body element's dimensions and anything inside that node will become un-selectable in internet explorer.

To fix that simply adjust the body size to cover where the Node is moved. Either manually as you're moving the node, or you could try setting the body width and height to 100% in css, although i have never tried that.


Code: CSS
body, html {
width: 100%;
height: 100%;
}

Related Posts

  • No related posts



Your Comment

name:*
email-address:

Are you human?



Comments

No comments yet.