Jump to content

Buttons with two text lines in IE


olav78

Recommended Posts

Hello!I'm wondering how I can set buttons where the text continues to the next «line» of the button if it is longer than the size of the button.In FF this works (the button get twice as high and the text spans two lines):

div#local button {	width: 100%;}

IE, however, cuts the text and the last bit is not showed...? Anyone know how I can get this to work in IE?

Link to comment
Share on other sites

How about doing this:

div#local button { width: 200px; height: 100px; }

Make sure the width is perfect so the text is on 2 lines and the height is just in case the height is not good enough by default.

Link to comment
Share on other sites

Isnt there a wordrap option for the CSS of DIVs??

Link to comment
Share on other sites

show me your input button.I tried to do it and it doesn't work in both FF and IE. Your id should not be 2 words. Try renaming it to local_button.

Link to comment
Share on other sites

Ah! Yes this is the wordrap that I was talking about!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...