0

I have made several attempts at trying to keep the text within the boxes but even with adding a p.class. I can't get it to conform please have a look I have a jsfiddle with my attempt. <html> </html> http://jsfiddle.net/gerryboy/57uGQ/35/

1
  • 1
    Questions seeking debugging help ("why isn't this code working?") must include the shortest code necessary to reproduce it in the question itself. Although you have provided a link to an example, if the link were to become invalid, your question would be of no value to other future SO users with the same problem. Commented Sep 11, 2015 at 14:21

2 Answers 2

1

Here is the solution

just add

white-space:normal; 

to your p class.

here is the updated fiddle Fiddle

The white-space property specifies how white-space inside an element is handled.

Sign up to request clarification or add additional context in comments.

Comments

0

Update your code like this to see the result :-)

p.excerpt { word-wrap: break-word; max-width:250px; text-align:center; white-space: pre-wrap; } 

Good luck :)

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.