?
Solved

text area overlapping

Posted on 2014-02-02
9
Medium Priority
?
551 Views
Last Modified: 2014-02-06
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
0
Comment
Question by:myyis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
9 Comments
 
LVL 4

Expert Comment

by:ravikantninave
ID: 39828061
user overflow:hidden;
0
 
LVL 58

Expert Comment

by:Gary
ID: 39828069
Why are you using position:fixed?
Show us some code/css
0
 
LVL 1

Author Comment

by:myyis
ID: 39828071
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Author Comment

by:myyis
ID: 39828076
I don't have a code yet.  The div is fixed because I need them overlapped
0
 
LVL 58

Expert Comment

by:Gary
ID: 39828089
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
 
LVL 1

Author Comment

by:myyis
ID: 39828128
add "width:800px;"  to text area
0
 
LVL 58

Expert Comment

by:Gary
ID: 39828143
Why would I/You want to force the textarea to go behind another element - that is a serious design flaw.
0
 
LVL 1

Author Comment

by:myyis
ID: 39828159
I need them overlapped for a specific purpose, and I  need a JS alert if  the content overlaps the div.
0
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 39828172
It isn't possible to get the width of the text in a textarea
You need to rethink your design.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
This article discusses how to implement server side field validation and display customized error messages to the client.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question