Questions tagged [ellipsis]

An ellipsis is a series of dots, (usually 3, i.e. "…") used to indicate the omission of a word within some text, or more commonly that the preceding text has been truncated.

737 questions
10
votes
1 answer

What does `{...}` mean in the print output of a python variable?

Someone posted this interesting formulation, and I tried it out in a Python 3 console: >>> (a, b) = a[b] = {}, 5 >>> a {5: ({...}, 5)} While there is a lot to unpack here, what I don't understand (and the semantics of interesting character…
Nathaniel Ford
  • 20,545
  • 20
  • 91
  • 102
10
votes
6 answers

Truncating text and adding an ellipsis in CSS

I'm attempting to truncate a paragraph of text and adding an ellipsis after to indicate there is more content. I attempted to use the CSS property text-overflow:ellipsis - however looking at examples of this it seems it is only possible with the use…
Francesca
  • 26,842
  • 28
  • 90
  • 153
10
votes
2 answers

using text-overflow:ellipsis; only when reaching 3 lines in a div

this is my css snippet .test{ width:150px; height:60px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -o-text-overflow: ellipsis; } what it does is.. the quick brown fo... what i want is the quick brown…
galao
  • 1,281
  • 8
  • 26
  • 50
10
votes
2 answers

Detecting CSS text-overflow: ellipsis in Firefox

I'm trying to detect (via javascript) when text-overflow is in effect. After much research, I have a working solution, except in any version of Firefox: http://jsfiddle.net/tonydew/mjnvk/ If you adjust the browser so that the ellipsis is applied,…
TunaMaxx
  • 1,782
  • 12
  • 18
10
votes
2 answers
9
votes
2 answers

Ellipsizing a set of names

OK, I'm sure somebody, somewhere must have come up with an algorithm for this already, so I figured I'd ask before I go off to (re)invent it myself. I have a list of arbitrary (user-entered) non-empty text strings. Each string can be any length…
Ken
  • 726
  • 1
  • 5
  • 7
9
votes
6 answers

CSS/JQuery powered sideways scrolling text on hover

I have a twitter feed on a website I run. However, it gets cut off on small screens. I have a bar tall enough for 1 line of text in which I have the latest tweet. I want the tweet to ellipsize or fade out at the end if it is too long. But on hover,…
appi2012
  • 218
  • 1
  • 2
  • 7
9
votes
0 answers

R: Documenting ellipsis arguments with roxygen2 in S4 generic

I have a number of functions that have related methods with different arguments that I want to document together within the generic. Is there a standard method for documenting arguments passed through an ellipsis to the different methods by an S4…
ssokolen
  • 468
  • 3
  • 13
9
votes
3 answers

CSS Animation, ellipses starting from the end and repeating

I have a very simple animation setup, to show a loading three dots. I got a bunch of them from around and picked the simplest looking one. The problem I have with it, is that it starts from 0 like it's told to. I need it to start from the…
saGii
  • 447
  • 5
  • 14
9
votes
3 answers

Add text-overflow: ellipsis; to table cell

I'm having trouble containing text in a table. I want to give it a text-overflow: ellipsis. But I can't seem to get it to work. HTML: …
Bitwise
  • 8,021
  • 22
  • 70
  • 161
9
votes
1 answer

CSS ellipsis truncation when width is narrower than ellipsis character

I'm using the following CSS to truncate text with ellipsis. .truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } This works well for me, but doesn't behave as I would like when the width of the element is…
Ross Smith
  • 91
  • 1
  • 3
9
votes
2 answers

Why doesn't lazy evaluation work in this R function?

Possible Duplicate: How to write an R function that evaluates an expression within a data-frame I want to write a function that sorts a data.frame -- instead of using the cumbersome order(). Given something like >…
dk.
  • 2,030
  • 1
  • 22
  • 22
9
votes
1 answer

Several browser compatibility problems with text-overflow ellipsis on left-hand side using RTL

My goal is to create an element with hidden overflow and an ellipsis, except I want the characters on the LEFT side to be hidden and the ellipsis also to be on the left. This works for most browsers: CSS: #mydiv { overflow:hidden; …
eclecto
  • 136
  • 2
  • 8
8
votes
1 answer

Casting pointer-to-function with ellipsis

Consider the following program: #include typedef void (*fptr)(...); void foo(fptr func) { (*func)(12); } void bar(int x) { std::cout << "bar : " << x << std::endl; } int main() { foo(fptr(bar)); } This compiles, runs and…
Björn Pollex
  • 75,346
  • 28
  • 201
  • 283
8
votes
2 answers

Use text-overflow: ellipsis and flexbox align-items: center in combination

I've got a div, which is a wrapper, and some child div within. I'm using flexbox to position them below each other. Now, the child divs have a text. The text is aligned vertical with align-items: center;. The width of the child div depends of it's…
webta.st.ic
  • 4,781
  • 6
  • 48
  • 98
Title Source