FAQ Database Discussion Community

Scala Illegal Start of Simple Expression: Option Type and Ellipsis

New to Scala and just began the scala.Option Cheat Sheet. However, this code is throwing an error in the sbt console. def option[A, X](o: Option[A])(none: => X, some: => A => X): X = ... The error is error: illegal start of simple expression the up-arrow points to the ellipsis....

Position of whitespace while using text-overflow: ellipsis;

I have a top bar for a mobile website which looks like this: The user can open a personal menu by clicking his/her name. When the name of the person is very long (blue bar) I want to shorten it using text-overflow: ellipsis. I got that to work (looks like...

CSS ellipsis not working within Bootstrap 3 thumbnail header

I can't figure out how to make css:ellipsis work inside Bootstrap 3 thumbnail headers. It's working flawlessly within the body text, but no luck so far with the header. I'm using last version of Chrome. jsfiddle link html <div class="col-sm-4 col-md-3 col-lg-2 thumbnailcontainer"> <div class="thumbnail"> <img src="http://animalia-life.com/data_images/bird/bird1.jpg" alt="image"> <div class="caption">...