Newbie Q here: How can I add a linebreak in a custom header style?
h21
{
font-开发者_开发百科size: 1.52em;
/*Equivalent of a line break here...????*/
}
You cant add a linebreak in a class declaration, but you can add margin-bottom or padding-bottom: -10px or similar varieties. You can use firebug to measure how high a linebreak on your page appears and use that value for padding or margin -bottom.
h21 {
font-size:12.1px;
padding-bottom: 30px;
display: block;
}
you can use the word-wrap
property. see here
an example:
h21 {
word-wrap: break-word;
}
obs: the container element should have a width
精彩评论