kswedberg / jquery-expander

Expand and Collapse HTML content
https://kswedberg.github.io/jquery-expander/
Other
459 stars 167 forks source link

specify width #51

Closed okmichael closed 10 years ago

okmichael commented 12 years ago

If I specify the width of a element to wrap, the 'more text' will display on a new line :( Anyone known with this issue?

travco commented 10 years ago

I'm sorry that nobody got to your question in a remotely reasonable timeframe. If I understand it correctly, it's likely a problem caused by block-level elements: http://www.w3.org/TR/html401/struct/global.html#h-7.5.3

My guess that that the element you are trying to set a width on is being considered a block, where it wouldn't normally. One method would be to turn the entire expandable content into a block (one option would be with paragraph <p></p> tags), or figuring out a way of avoiding setting a width on the element.

@kswedberg, It looks like this question has sat on here for nearly two years. Close issue?

kswedberg commented 10 years ago

yeah, let's close. @okmichael : if you can provide more information—preferably with a demo exhibiting the problem—I can reopen this.