0

In my card, the text is not expanding vertically the div. I tried to use the clear property, but doesn't helped. Any ideas?

here is my actual code: http://jsfiddle.net/kuupsdm5/1

Card

Luiz E.
  • 6,769
  • 10
  • 58
  • 98

3 Answers3

3

It because you have .card-body as a single word just add this property word-wrap: break-word; and remove width:100%.

DEMO

Benjamin
  • 2,612
  • 2
  • 20
  • 32
3

Change your .card-body class:

.card-body {
  padding: 15px;
  border-left: 1px solid rgba(0,0,0,0.2);
  border-right: 1px solid rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(0,0,0,0.2);
  word-wrap: break-word;
}

You have a very long word there and if you don't include the word-wrap:break-word; it will stay on a single line. Width 100% along with the padding was also causing the line to extend beyond the others, so either remove the padding or width 100% from the class.

JS Fiddle Demo

Dan
  • 9,391
  • 5
  • 41
  • 73
2

Try this ... into the Body Style

word-wrap: break-word;

May be Duplicate of

CSS 2.1: Wrap Text Inside Div

UPDATE

JSFiddle Demo

Community
  • 1
  • 1
Ravi Mehta
  • 454
  • 1
  • 8
  • 20