Re:A spreadsheet in fewer than 30 lines of JavaScript, no li...
by skeletonjelly on Wednesday November 13, 2013 @05:26PM
(#6729100)
Just goes to show how much the far left and the far right has influence over our society
Re:A spreadsheet in fewer than 30 lines of JavaScript, no li...
by chc on Wednesday November 13, 2013 @07:14PM
(#6729613)
Eh, it's pretty easy to get things not on the far side of the screen; it's just hard to get it precisely in the center.
Re:A spreadsheet in fewer than 30 lines of JavaScript, no li...
by IgorPartola on Wednesday November 13, 2013 @10:31PM
(#6730359)
Center something vertically :). Or even better, create three divs, arranged horizontally, with a different amount of text such that all the divs are the same width and height. Note that you cannot specify a height for the parent since the text may be of arbitrary length. Makes me sad every time.
Re:A spreadsheet in fewer than 30 lines of JavaScript, no li...
by garethadams on Thursday November 14, 2013 @03:32AM
(#6731285)
Re:A spreadsheet in fewer than 30 lines of JavaScript, no li...
by IgorPartola on Thursday November 14, 2013 @05:10AM
(#6731561)
Sure, table layout is how you'd have to do this. To me this shows that half of HTML/CSS happened because of legacy issues and not with deliberate thought. The semantic web is mostly dead other than to help Google parse out their own ads while CSS remains a mess full of hacks like this.
Re:A spreadsheet in fewer than 30 lines of JavaScript, no li...
by garethadams on Thursday November 14, 2013 @07:52PM
(#6736991)
There was never anything wrong with the table layout algorithm, what sucked was that there wasn't any way to apply it without typing your HTML rigidly to that structure. The situation still isn't perfect and flexbox is a strange alternative that I'm not quite happy with yet, but you can't deny that the HTML in my example represents the content you described with almost no extra layout fluff.
Re:A spreadsheet in fewer than 30 lines of JavaScript, no li...
by IgorPartola on Friday November 15, 2013 @06:42AM
(#6738900)
Fair enough. Perhaps this wasn't the best example.
Re:A spreadsheet in fewer than 30 lines of JavaScript, no li...
by X4 on Wednesday November 13, 2013 @07:50PM
(#6729774)
should be easy with flexbox (crossbrowser possible)
simple demo: http://philipwalton.github.io/solved-by-flexbox/demos/vertic...
Centering something using CSS. :(