Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-27-2005, 09:44 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,503
sde is on a distinguished road
prevent highlighting of text in a div?

is there anyway to prevent text from highlighting in a div?
sde is offline   Reply With Quote
Old 12-27-2005, 06:26 PM   #2 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
How are you highliting it? If you have an onhover attribute highliting your div, you can wrap the the text in a p tage and set a more specific behavior for the text via 'div > p'
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 12-28-2005, 11:45 AM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,503
sde is on a distinguished road
it's just a bunch of div's on top of eachother.
HTML Code:
<div>div 1</div>
<div>div 2</div>
<div>div 3</div>
i create a drag layer on mouse down and it creates a new layer on a higher z-index. when i start dragging div 1 down and to the right, it highlights the text in div 2 and div 3.

overflow: hidden;

this fixes it in firefox, but it still looks weird in IE.
sde is offline   Reply With Quote
Old 12-28-2005, 09:25 PM   #4 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
Oh, wierd. I don't generally deal with highly mobile css elements... have you considered a click-n-stick(at least for IE) interface versus drag and drop?
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Searching freesoft_2000 Java 2 12-02-2004 07:38 AM
[MySQL] blob vs text redhead PHP 2 03-29-2004 11:15 PM


All times are GMT -8. The time now is 06:25 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting