From a0af882d27e97c954a57f9823b56aed6c5697a72 Mon Sep 17 00:00:00 2001 From: Romano Licker Date: Thu, 1 Dec 2011 12:27:44 +0100 Subject: [PATCH] adding ellipsis class in order to cut off text using '...' --- public/stylesheets/application.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 2461c21ef1..1ab3942c46 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -2612,3 +2612,13 @@ Additional wiki styles height:1px; overflow:hidden; } + +/* Cut of text with '...' - working on all major browsers and IE6+ + * not working for Firefox < 7 */ +.ellipsis { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + -o-text-overflow: ellipsis; + -ms-text-overflow: ellipsis; +}