text area overlapping

I have a fixed length text area and and a fixed positioned div.
When I add lengthy content to the text area, some of the characters of the content overlap with the div.
With JS can I get if some part of the content overlap with the div?

Thank you
LVL 1
myyisAsked:
Who is Participating?
 
GaryConnect With a Mentor Commented:
It isn't possible to get the width of the text in a textarea
You need to rethink your design.
0
 
ravikantninaveCommented:
user overflow:hidden;
0
 
GaryCommented:
Why are you using position:fixed?
Show us some code/css
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
myyisAuthor Commented:
Note that the fixed div is placed far right side.
So if add a vertical content to the textarea it does not overlap, If I add a long sentence it overlaps to the div.
I want a js alert if overlaps while editing the textarea.
0
 
myyisAuthor Commented:
I don't have a code yet.  The div is fixed because I need them overlapped
0
 
GaryCommented:
What css do you have on the textarea? A textarea will normally wrap, it won't keep getting wider
How does your code differ from this
http://jsfiddle.net/beDTt/
0
 
myyisAuthor Commented:
add "width:800px;"  to text area
0
 
GaryCommented:
Why would I/You want to force the textarea to go behind another element - that is a serious design flaw.
0
 
myyisAuthor Commented:
I need them overlapped for a specific purpose, and I  need a JS alert if  the content overlaps the div.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.