Forum Moderators: not2easy

Message Too Old, No Replies

while div is position:absolute text cant be highlighted

nt

         

Rainbowinblack

3:01 pm on May 27, 2005 (gmt 0)



i use html 4.01 (and xhtml)
i tried it on both
when in my css i make the div absolute, the text cant be highlighted and when you try to highlight it highlight all the website....
this happens only on IE6 ,FF and other UA's work fine..
this is my css code for the div:
div.main2
{
border-left : white 1px double;
border-right : white 1px double;
position: absolute;
top:0px;
left:170px;
height:760px;
width:650px;
text-align:center;
}

and this is a html code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Some Title</title>
<link rel="stylesheet" type="text/css"
href="URS.css" >
</head>
<body>
<div class="main2">
<img src="images/lyrics.jpg" alt="">
<h4>This Section Is Still Under Construction</h4>
</div>
</body>
</html>

when i place in the position - relative , or take the position off ,the duv can be highlighted normally...
how can i fix it?
i dont want to loss veiwers because of this problem...

Roy

encyclo

3:14 pm on May 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld Rainbowinblack!

It's a known bug in IE:

[webmasterworld.com...]

As DrDoc says in message #2 of that thread, there's no fix (unless one has been found since then). A text selection bug is not necessarily too serious unless you think a significant number of your users will want or need to highlight the text.

natebates

4:09 pm on May 27, 2005 (gmt 0)

10+ Year Member



i could get it to highlight in ie, it was just behaving oddly (only highlighting one word, etc).

adding the following helped. (i use it in all my stylesheets, it helps get rid of unexpected behaviors)

html, body{
width:100%;
height:100%;
margin:0px;
padding:0px;
}