-5

In my HTML5 Page there are two things

  • Div [strictly fixed to screen]
  • Outer Text [lengthy to that much extent that we get scroll bar in browser]

Problem facing:outer text going back div. Question:How to make outer text align well around fixed div without hiding back.

div tag is attributed to float left so that text will cover the div.

My requirement is Div should always appear on screen and re-sizable so used CSS and jqueryUI on Div tag to fixed,adjustable but unfortunately outer text is going behind div tag which will not happen when we use position:relative to div.Is there any way to make div fixed to screen and outer text wrap the div safely without hiding.

Here's a Plunker for my example.

kishu
  • 29
  • 7

1 Answers1

1

If I'm understanding the problem correctly, it's that you are trying to have your text wrap within the div. In order to accomplish this, try adding the following CSS to your div selector:

word-wrap: break-word;

There may be more to it, but it's hard to tell without the actual CSS and markup. Try including that in your post and we can all get a better idea of how to solve your problem.

UPDATE

Here is a fiddle of my solution in action: http://jsfiddle.net/DrydenLong/9n2WP/

UPDATE #2

So after getting some clarification from your comment above, it seems you are attempting to wrap the text around the div rather than inside of it. Fixed positioning doesn't allow you to wrap around the div. There are some "work-arounds" but they are fairly tough to master and might be more trouble than they are worth... You can see this question for more information: How can I wrap text around a bottom-right div?

Community
  • 1
  • 1
Dryden Long
  • 10,072
  • 2
  • 35
  • 47
  • [Solved](http://stackoverflow.com/questions/18110074/is-it-possible-to-fix-lower-right-corner-of-div-to-screen-w-r-t-scroll-up-down) – kishu Aug 08 '13 at 06:12