开发者

Unorded lists, how do I get two words broken up from one line onto two lines?

开发者 https://www.devze.com 2023-03-19 23:54 出处:网络
I have this site I am working on, it has the following menu items: Residents Business Teachers Construction Property Management

I have this site I am working on, it has the following menu items:

Residents Business Teachers Construction Property Management Municipalities

Is there a way to get Property Management broken up onto two lines within the same list element(figure 1).

Unorded lists, how do I get two words broken up from one line onto two lines?

Currently the behavior is:

Unorded lists, how do I get two words broken up from one line onto two lines?

开发者_开发知识库


Use the css3 max-width property on the containing element. You could also just add a <br/> for older browsers.

You might also have to set display to inline-block.

0

精彩评论

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