PDA

View Full Version : Fieldset Title Style



darthwes
2 Dec 2011, 7:13 AM
I'm trying to use a fieldset to dynamically change the title based on selection within the fieldset. Sometimes this results in a dynamic string bigger than the title element should allow (whatever the width of the fieldset happens to be, it runs over that length). Seemingly this is handled by the fieldset's title growing horizontally to encapsulate the entire string.

I'd like to style the title so that it would use ellipses on text overflow past the size of the fieldset, with no vertical growth, but my usual "firebug/inspect element/play with the styles/css until I figure it out" method has failed me.

Does anyone have any hints or solutions they might share with me? Thanks!

mitchellsimoens
2 Dec 2011, 12:04 PM
The problem is it's housed in a <span> tag and it needs a firm width. Switched it to <div> and gave it a width of 100px and I got the ellipsis.

darthwes
2 Dec 2011, 12:24 PM
Ahh, of course, thanks Mitchell. You're the man :)