Forum Moderators: open

Message Too Old, No Replies

div layout does not let me highlight what i want

         

rfung

9:03 pm on Sep 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have this site that I just designed with CSSP (and granted I'm not very good at it at all), and every time I try to highlight something to cut and paste, be it a url, or some keyword I'd like to search elsewhere, the whole text below the starting point gets highlighted.

Say, for example, if I tried to highlight the word 'starting' above, everything after it would be highlighted instead.

I know this is a CSSP/DIv problem, can anyone help me?

[edited by: tedster at 11:25 pm (utc) on Sep. 13, 2006]

encyclo

1:32 pm on Sep 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is a known issue with IE6 when using absolute positioning combined with standards-compliance mode. I'm not aware of a real fix other than not using absolute positioning, which is not always possible, unfortunately. Switching to quirks mode for IE6 is another possibility, but that will bring other problems with CSS rendering.

SuzyUK

12:38 pm on Sep 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi rfung.. thanks to an example page with this problem it seems it is related to the <base> tag :o

are you using a <base href="..." /> tag in your head element, if so can you test this see if it works for you and let us know

changing to:
<base href="..."></base>

will likely throw a validator error, but if it works it works!

minimal test case:

<title>IE6 text select bug!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!--<base href="www.example.com" />-->
<base href="www.example.com"></base>
<head>
<style type="text/css" media="screen">
#wrapper {
position:absolute;
}
</style>
</head>
<body >
<div id="wrapper">
<h2> seems the base tag needs closing differently</h2>
<p>Lorem ipsum dolor sit amet, consectetaur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
<p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum Et harumd und lookum like Greek to me, dereud facilis est er expedit distinct. Nam liber te conscient to factor tum poen legum odioque civiuda. Et tam neque pecun modut est neque nonor et imper ned libidig met, consectetur adipiscing elit, sed ut labore et dolore magna aliquam makes one wonder who would ever read this stuff? Bis nostrud exercitation ullam mmodo consequet. Duis aute in voluptate velit esse cillum dolore eu fugiat nulla pariatur. At vver eos et accusam dignissum qui blandit est praesent luptatum delenit aigue excepteur sint occae.</p>
</div>

[edited by: SuzyUK at 12:45 pm (utc) on Sep. 22, 2006]

rfung

6:22 pm on Sep 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi Suzy,

I've added the change. Unfortunately, now it seems to highlight everything ABOVE the text I want highlighted :)