Materialize: Linebreak in Tooltip

Created on 22 May 2015  路  4Comments  路  Source: Dogfalo/materialize

Hey there,

first of all: Materialize is really great!

I'm using a tooltip, but using a
Tag does not generate a newline, but is displayed inside the tooltip.

Is there a possibility to create a newline?

Yours KdogM

Most helpful comment

Hi

On my side I used the tag data-html="true" by this way I can add a line break by adding the
html tag.

become

St茅phane

All 4 comments

Yea, this is a general css question though. Just use white-space: normal.

Oh, great. Thank You for Your reply! Maybe that's worth of an example on the homepage.

Yours
KdogM

You mean the white-space attribute. I used:

.material-tooltip {
white-space: pre;
}

in css/style.css
which worked like a charm!

Hi

On my side I used the tag data-html="true" by this way I can add a line break by adding the
html tag.

become

St茅phane

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samybob1 picture samybob1  路  3Comments

artur99 picture artur99  路  3Comments

locomain picture locomain  路  3Comments

heshamelmasry77 picture heshamelmasry77  路  3Comments

alexknipfer picture alexknipfer  路  3Comments