micahmicah / info

info
MIT License
0 stars 1 forks source link

Intracolumnar comingling #41

Closed room421 closed 10 years ago

room421 commented 10 years ago

dafuq? screen shot 2014-08-22 at 2 09 46 pm This URL won't actually be allowed here (it should be "Student Affairs on www.risd.edu" under related links), but anyhow.

micahmicah commented 10 years ago

Yeah it looks like it's a long string that isn't allowed to break. I'm wondering if some javascript could be run to check the character count and insert a space after one of the / so it could break on two lines if needed.

ex: risd.edu/students/ student_affairs

Not the cleanest thing, but would work better than this.

room421 commented 10 years ago

Lisa -- is this possible?

nannyogg commented 10 years ago

I'm pretty sure that this can be done with CSS. Let me try it on dev.

nannyogg commented 10 years ago

The CSS wrapped the text but it was arbitrary as it would wrap in the middle of a word and it wasn't pretty. I created an example using jQuery but it required more code than using XSL. The replace looks for http:// and replaces that with nothing and also looks for "/" and replaces it with it with "/ ". This code is in place on both production and development.