1

Here's my site in Chrome with he text running outside the box:

enter image description here

And here it is in .IE with no problem

enter image description here

Here's the relevant CSS

.section
{
height: 1000px;
width: 670px;
border: thick solid rgb(51,97,120);
border-radius: 15px;
text-align: center;
padding: 0px;
background-image: url(Images/diag_pattern.png);
background-color: rgb(255,255,255);
overflow:auto;
white-space:nowrap;
text-overflow:ellipses;
}

Very annoying? Is there anything I can do. An alternative way to show my results?

8
  • Please make a jsfiddle.net demo showing the problem. Commented May 4, 2014 at 22:45
  • 1
    It should be "text-overflow: ellipsis;" and yes, a fiddle would make debugging a lot easier ;) Commented May 4, 2014 at 22:53
  • Please post all of your relevent HTML and CSS within a jsfiddle.net Commented May 4, 2014 at 23:04
  • Does this help? jsfiddle.net/53qs5 The relevent CSS is already posted. The actual page is www.biketurtle.co/search. Justsearch for bikes in 'Antrim' under 1000 and you'll get the same as the screenshot. Commented May 4, 2014 at 23:08
  • 1
    Managed to find it at http://www.biketurtle.co/search.php Commented May 4, 2014 at 23:17

1 Answer 1

1

You need to edit both your section and textarea classes:

.section {
    height: 1000px;
    width: 670px;
    border: thick solid rgb(51, 97, 120);
    border-radius: 15px;
    text-align: center;
    padding: 0px;
    background-image: url(Images/diag_pattern.png);
    background-color: rgb(255, 255, 255);
    overflow-y: hidden;      /* ---- Make this hidden */
    white-space: nowrap;
    text-overflow: ellipsis;
}
.textarea {
    height: 1000px;
    width: 650;
    padding-right: 20px;
    padding-left: 20px;
    list-style: none;
    overflow-y: scroll;      /* ---- Then make this scrollable */
}
Sign up to request clarification or add additional context in comments.

6 Comments

Didn't seem to have an affect oddly. Still works in .IE and not in Chrome.
@COOLBEANS - I have made an edit to my answer. Let me know if it helps.
I tip my hat to you sir :-) What was happening exactly?
Fantastic :) Basically, you were trying to make your section class scroll, although, it did not contain any content. The class with the content was textarea, therefore, it had to have the style of scroll. Hence, we needed to hide the overflow for the parent, and make the child scroll inside of it :)
I wonder how .IE was able to make it work in that case? It shouldn't have really,should it?
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.