CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 3rd, 2004, 02:53 PM
andybjackson andybjackson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 8 andybjackson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
External CSS and highlight/cut/paste

I'm using external style sheets on a couple of sites, and have the following problem:

When I click and drag down over the text, to copy & paste it into an email or whatever, all the text on that page is automatically highlighted .... I can't control the drag / selection, it's all or nothing.

When I click and drag upwards, nothing happens at all ... it won't work.

Any way to solve this? I don't get this problem with internal style sheets.

Andy

Reply With Quote
  #2  
Old January 3rd, 2004, 05:12 PM
breadwild breadwild is offline
*foo = *bar;
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Wheaton, IL
Posts: 163 breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 52 m 2 sec
Reputation Power: 21
Huh?
What editor are you using?

Reply With Quote
  #3  
Old January 3rd, 2004, 06:22 PM
andybjackson andybjackson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 8 andybjackson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry, I mean when I attempt to cut & paste text from the web page itself, when it's online --- those web pages governed by an external style sheet are the ones giving the problem described, while those sites in which I'm using internal style are fine.

Just can't see what the cause might be ...

Reply With Quote
  #4  
Old January 3rd, 2004, 07:40 PM
andybjackson andybjackson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 8 andybjackson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry! I mean copy text from a web page .... posting late at night, brain in wrong gear.

Basically, when I click-drag, all text on my web pages with external CSS is highlighted, and I can't make a selection.

Reply With Quote
  #5  
Old January 3rd, 2004, 10:18 PM
breadwild breadwild is offline
*foo = *bar;
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Wheaton, IL
Posts: 163 breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 52 m 2 sec
Reputation Power: 21
You say "Basically, when I click-drag, all text on my web pages with external CSS is highlighted, and I can't make a selection."

If it is "highlighted' then it IS "selected."
Post a URL so we can see what you are talking about (I have sites with both and no problems). Also what platform (Windoze or Mac?), OS?, and browser and version?

We need the facts.

Reply With Quote
  #6  
Old January 4th, 2004, 07:10 AM
andybjackson andybjackson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 8 andybjackson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Wasn't sure if posting URLs was OK -- here's a page --

http://www.tullpress.com/nme27aug77.htm

As soon as I click / drag the entire page is highlighted: I can't limit the selection to a single paragraph, for example.

Windows 98, IE6.

Andy

Reply With Quote
  #7  
Old January 4th, 2004, 08:50 AM
breadwild breadwild is offline
*foo = *bar;
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Wheaton, IL
Posts: 163 breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 52 m 2 sec
Reputation Power: 21
Can't help you. I works fine on Mac IE, Netscape and Safari; and Windoze Netscape. But you are correct, not in Windoze IE. But why is this a big issue?

Reply With Quote
  #8  
Old January 4th, 2004, 01:42 PM
andybjackson andybjackson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 8 andybjackson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It's an issue because I can't copy a small selection of text for the purposes of quoting in an email or on a discussion forum -- also, visitors can't use the Print Selection function.

I've visited other web sites using external CSS which don't have this bug .... so I'm curious to know what they're doing with their CSS that I'm not .....

Reply With Quote
  #9  
Old January 4th, 2004, 06:38 PM
breadwild breadwild is offline
*foo = *bar;
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Wheaton, IL
Posts: 163 breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level)breadwild User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 52 m 2 sec
Reputation Power: 21
Try adding:

Code:
media="screen"


to your link tag.

I have external style sheets and in IE Windows it's just fine.

Here's mine:
Code:
<link rel="stylesheet" href="motf.css" media="screen" type="text/css" />

Reply With Quote
  #10  
Old January 4th, 2004, 07:47 PM
andybjackson andybjackson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 8 andybjackson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This didn't work, but I think I've found where the problem's coming:

External CSS includes the following two rules:

body { margin: 0px; }

.body {
top: 120px;
bottom: -120px;
width: 100%;
position: absolute;
}


And it's only those pages which are using the <div class="body"> element which have this trouble with highlighting ..... pages using different div classes for right & left columns of text are fine.

On the site linked to above, again I just have a single div element enclosing all the main text on the page, <div class="text">, with the CSS containing:

.text {
left: 15%;
width: 85%;
position: absolute;
}

So .... is there something about having columns of text which would make a difference, or something to do with how I've named the div elements in the CSS ...? 'Body' is probably not a wise choice, come to think of it ....?

Andy

Reply With Quote
  #11  
Old April 19th, 2004, 04:32 AM
timo71 timo71 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 timo71 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi. I am having the same problem with my layers based site... i.e., an inability to copy/paste/high-light text on the published site in IE.

Was wondering wether any further solutions had been found.. the remendies suggested in the posts above did not work for me, and when checking out the link provided in one of the above posts, it seems that the problem still persists.

Thanks,

T

Reply With Quote
  #12  
Old April 19th, 2004, 09:31 AM
timo71 timo71 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 timo71 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Found the solution... its apparently caused by a bug in IE6 which prevents text from being copied from most absolutely positioned elements. For more info and the solution go to:
URL

Cheers,
T

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > External CSS and highlight/cut/paste


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT