5 replies [Last post]
trpn
Offline
newbie
Last seen: 16 years 23 weeks ago
Joined: 2004-06-28
Posts: 3
Points: 0

alright my site is http://trpn.no-ip.info
my css is /layout.css

anyways I have just noticed that when I drag the mouse to highlight text in some versions of IE, it will highlight everything above the cursor (meaning it displays like i have dragged the mouse over everything while left clicking). Firefox, mozilla, opera are all ok.. I have narrowed it down to css since when I turn it off it works ok..

by the way I just discovered this forum and it looks really good.. some helpful people!

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 47 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

problem highlighting text.. it highlights the while page

Hi there,

Not sure if this will help the IE problem but you need to re-order your link decs as you have :active first which causes problems.
The correct order is a, link, visited, hover, active.
I would think you should set the #content div to position:relative not absolute with margins top and left set to 126px; 175px ish instead of top/left distance; with everthing absolute you loose the normal flow of the document which may cause problems ( but I may be worrying too much there)

Not sure if any of that will help your problem-hope it does!
Let us know,

Hugo.

oops, just noticed your valid 4.01 graphic, at the moment the page won't validate as there are incorrectly nested closing tags on line 37.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

trpn
Offline
newbie
Last seen: 16 years 23 weeks ago
Joined: 2004-06-28
Posts: 3
Points: 0

problem highlighting text.. it highlights the while page

thanks hugo.

ok I fixed the valid html, and the css for the links section, however with a relative location for content i get a scrollbar at the bottom of the page. However I can now highlight text properly with IE.

The page is just for fun, so it doesn't matter that much that someone using IE cannot highlight text to copy, but I think that I will try to rearrange the css code and layout so it works with relative positioning...(even though its a pain to check since I don't have IE!)

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 47 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

problem highlighting text.. it highlights the while page

Glad it helped,
the horizontal scrollbar should go if you remove the top:125px; and left:190px; and just use the margin property to position, at least it seems to work on my res.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

trpn
Offline
newbie
Last seen: 16 years 23 weeks ago
Joined: 2004-06-28
Posts: 3
Points: 0

problem highlighting text.. it highlights the while page

what browser are you using?

works fine in ghecko, not IE! I hate you IE!

preludepower
Offline
newbie
Last seen: 16 years 6 weeks ago
Joined: 2004-10-22
Posts: 1
Points: 0

problem highlighting text.. it highlights the while page

i just had the same problem and it really has to do with absolute positioning.

i found a work around:

i got rid of my
positioning: absolute
left: 0
top: 130

and used instead
padding: 130px 0px 0px 0px;

its working on IE and firefox!