开发者

How do you make the longer line of a two line title appear on the bottom and the shorter on top with CSS?

Is this possible or am I just thinking wishfully?

What I want to get away from:

Title e开发者_如何学JAVAxample here. It's a really long one, and I don't

like it...

What I actually want the text to do:

Title example

here. It's a really long one, and I hope it's possible.

I do know that I could split the title with PHP and insert a break, but if someone has a better solution that would be amazing.

Thanks!


jQuery can do this, but it's the same as using a conditional statement in PHP and it's putting resource work on the client. As PeeHaa said, no css can do this so it's your choice wether to do it client-side or server-side.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜