DieselMinded Well-known member May 27, 2016 #1 how can i made the location field stay on its line and just add ..... if there is more than what fits , is this css "overflow" or something? thanks...
how can i made the location field stay on its line and just add ..... if there is more than what fits , is this css "overflow" or something? thanks...
Arty Well-known member May 27, 2016 #2 That looks like typical dl element on profile. You'll need to target that dl element somehow. Add something like this Code: dl { display: table; table-layout: fixed; width: 100%; } dl dt, dl dd { display: table-cell; float: none; white-space: nowrap; } dl dd { overflow: hidden; text-overflow: ellipsis; } In those lines replace "dl" with selector that targets that one specific dl element. Upvote 0 Downvote
That looks like typical dl element on profile. You'll need to target that dl element somehow. Add something like this Code: dl { display: table; table-layout: fixed; width: 100%; } dl dt, dl dd { display: table-cell; float: none; white-space: nowrap; } dl dd { overflow: hidden; text-overflow: ellipsis; } In those lines replace "dl" with selector that targets that one specific dl element.
rafass Well-known member May 27, 2016 #3 Truncate String with Ellipsis Elegant Overflow with CSS Ellipsis Upvote 0 Downvote
DieselMinded Well-known member May 27, 2016 #4 how can i apply this to the location field? Upvote 0 Downvote
rafass Well-known member May 27, 2016 #5 Try with someting like: Code: .extraUserInfo.is-expanded dd { width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } Result: Upvote 0 Downvote
Try with someting like: Code: .extraUserInfo.is-expanded dd { width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } Result:
DieselMinded Well-known member May 27, 2016 #6 big thanks to rafass for helping me in pms Upvote 0 Downvote