Questions tagged [calc]

calc refers to anything remotely related to anything about calculating anything. Because of its vague purpose, it should be avoided.

refers to anything remotely related to anything about calculating anything. Because of its vague purpose, it should be avoided.

446 questions
8
votes
5 answers

css calc number division

If I use a calculator, 2/3 is 0.6666666667 which is about 67%. However if I try to do the same thing with css calc I get an error. width: calc(2 / 3); Is there a working way for this? I don't think it looks that good writing it like 0.666666666667.…
Jens Törnell
  • 23,180
  • 45
  • 124
  • 206
8
votes
4 answers

LibreOffice SUM time period in format HH:MM:SS

I want to obtain the sum of several cells containing a period of time in the format HH:MM:SS. In LibreOffice Calc 4.0.3.3, I've copy-pasted the periods of time in the range G14:G21, and formatted the cells as Time HH:MM:SS. I formatted in the same…
Gianluca
  • 6,307
  • 19
  • 44
  • 65
8
votes
2 answers

Libreoffice Calc: Custom x axis label

I am trying to create a diagram in Libreoffice calc, where the x axis labels shall be intervals and the y axis labels shall be shown in percentage. My table looks like this: 0-40 100% 40-70 96% 70-100 92% 100-130 84% >130 …
user1851182
  • 83
  • 1
  • 1
  • 3
7
votes
2 answers

Use max-content in calc

Imagine I have a
with some

in it: #myDiv { width: max-content; border-style: dashed; }

This is my text

But I don't like the fact that the text is so close to the border, so I tried this: #myDiv…
FLAK-ZOSO
  • 3,873
  • 4
  • 8
  • 28
7
votes
1 answer

calc() not working in Firefox

I am trying to use calc() to get my page contents to fit on the page perfectly. I have a header with a height of 52px. I am trying to make a container 100% of the page -50px to it fits onto the page perfectly, however as it does work in Chrome,…
user7736094
  • 323
  • 1
  • 3
  • 8
7
votes
2 answers

css element height minus height of a element with changing height

aye folks! is it possible to have dynamic height calculation with css3? i couldn't find anything.. but maybe i'm just using the wrong terms for my search. the problem: i have a site where i want to include an iframe with 100% height minus the height…
Andreas Grafen
  • 105
  • 1
  • 2
  • 9
7
votes
1 answer

using modernizr to detect vh, vw with calc

So I have run into a problem where a browser is compatible with vh, vw units and is compatible with calc(), BUT is not compatible with vh,vw units in calc. So I'm not sure how to use modernizr to test for that specific case. Any ideas for this? …
loriensleafs
  • 2,205
  • 9
  • 37
  • 71
6
votes
3 answers

Are there OpenOffice.org export components for Delphi (non-OLE)?

For document exchange, I would like to generate OpenOffice.org text and spreadsheet documents. So far I have found export components which require OpenOffice to be installed, using OLE. Are there already Delphi components available which can write…
mjn
  • 36,362
  • 28
  • 176
  • 378
6
votes
2 answers

How to calc() height in react native for styling

There is a grey square which positions the 4 small squares There is a black square which there will be 4 small squares in each side's center of the black square. For normal web, I can do it by calculation of the width But how should I do it in react…
GG program
  • 127
  • 1
  • 1
  • 11
6
votes
2 answers

How to convert formatted date to unix epoch in Libreoffice calc

I have column with cell format date or time (DD.MM.YYYY HH:MM:SS) and values like 03.12.2013 14:01:49 04.12.2013 10:19:27 04.12.2013 12:44:56 04.12.2013 14:20:12 04.12.2013 18:30:21 I need those values converted to unix epoch (seconds since 1970).…
Pavel Niedoba
  • 1,554
  • 2
  • 19
  • 36
6
votes
1 answer

flex doesn't support calc in IE11

I am attempting to create a layout using Flexbox. In one of these layouts, I want 3 equal width columns. To accomplish this I am using calc to set the column width. This is working fine in modern browsers, but of course in IE it doesn't want to…
user13286
  • 3,027
  • 9
  • 45
  • 100
6
votes
2 answers

Using an org-mode table in emacs to convert units using calc

Is there a way to use an org-mode table to do automatic unit conversion? I cannot get it to work. What I wanted to do is using a simple table where i can input some weights in ounces and let emacs convert them into…
Moschter
  • 63
  • 3
6
votes
5 answers

What is 100% in calc function

Within the css calc() function, what does 100% refer to and what is the equivalent code in JavaScript? #div1 { width: calc(100% - 100px); } JSFiddle: https://jsfiddle.net/xoufnm6v/
user4648588
6
votes
0 answers

Bug Using calc() On Table Cells in Safari 9

I can't find any information about this bug, but it looks like a pretty serious one. When using calc() and mixing percentage and absolute values to set the width of a in a table with table-layout:fixed, Safari 9 calculates the value as -2px. It…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
6
votes
4 answers

How to use multiple variables Stylus in calc()?

Everything is in the title. I can not incorporate several Stylus variables in the function CSS calc (). I created a code Sass, I would convert myself under Stylus: // *.scss $gutter : 1rem; .sizeXS-m10 { width: calc(#{100% / 12 * 10} -…
Olivier C
  • 899
  • 1
  • 13
  • 14
1
2
3
29 30