KodeFor.Me
KodeFor.Me

Reputation: 13511

String not wrap

I have this code in my plugin and I cannot wrap the text of the span element inside the <div class="srb_display_url></div> element.

In my console I have try all of the folloing but with no luck

word-break: break-all !important;

and

word-wrap: break-word !important;

as well this

word-break: break-all !important;
word-wrap: break-word !important;

What I am doing wrong ? Can somebody to help me ?

Upvotes: 1

Views: 66

Answers (2)

Nitha
Nitha

Reputation: 680

Remove the white-space: nowrap style for the .srb_display_url element.

Upvotes: 1

Petru Lebada
Petru Lebada

Reputation: 1682

Just increase your width and height and should be fine.

.parent_container
{
    display : block;
    width : 300px;
    height: 200px;
    background : #EAEAEA;
    padding-top: 0;
    border: 0;
    font-family: inherit;
    font-size: 100%;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}

Upvotes: 0

Related Questions