Skip to main content

trusktr

Earth.

http://trusktr.io

Joe Pea

trusktr.io

1d
awarded Announcer
2d
awarded Popular Question
Jul
4
awarded Excavator
Jul
3
revised Can I really exchange money in Forex?
Add more details to the scenario.
Jul
3
awarded Popular Question
Jul
2
comment Why don't flex items shrink past content size?
min-height:0, more often than not, simply doesn't work to solve this problem. min-width:0 almost always works in flex row layouts, but min-height in flex column layouts fails most of the time for me. I absolutely @$%&ing hate it.
Jul
2
comment How to prevent a flex item height to overflow due to it's content
Why does min-height:0 often not work with flex column layouts? I'm often perplexed. min-width: 0 typically always works in flex row layouts, but min-height in flex-column layouts is basically hit or miss (more misses for me).
Jul
2
comment How to stop flex from overflowing the parent
Unfortunately min-height:0 has no effect for me. So frustrating.
Jul
2
comment Prevent flex items from overflowing a container
@Johan There must be some additional subtle thing for height, because while min-width:0 typically works, I cannot get min-height:0 to work when the flex-direction is column. So frustrating!
Jul
1
comment Keep the middle item centered when side items have different widths
@MichaelBenjamin I update your answer to make the result more obvious, but note how if the window is too small, it no longer centers the middle box, which would not be what the OP wants in the case of a smaller window.
Jul
1
comment Keep the middle item centered when side items have different widths
@AlexG I updated the answer to make it more obvious that this solution basically does work, by coloring the boxes to make it clear which boxes are the ones being aligned exactly as the OP described. Note however that it fails if the layout width is too small. Make the demo go full screen to try resizing the browser window.
Jul
1
revised Keep the middle item centered when side items have different widths
Update the answer to make the result of the code more obvious.
Jun
30
awarded Investor
Jun
29
comment Here's a TupleSet in JS. How can we make it a WeakTupleSet?
sorry I haven't accepted the answer yet, I haven't gotten to test it yet. Would like to make a lil unit test for it.
Jun
28
awarded Excavator
Jun
28
comment How to make the items in the last row consume remaining space in CSS Grid?
Excellent example!
Jun
27
awarded Editor
Jun
27
revised How to export to gltf with z up?
expand the answer with Blender specifics
Jun
27
comment How to export to gltf with z up?
@Makogan Set the GLTF file's asset.generator value to Khronos glTF Blender I/O v3.6.27 and Blender will then import a Y up asset (character would be facing downward in blender) as Z up (character will now be standing upright in blender). This is a really odd choice for any tool to apply transforms based on the asset.generator value.
Jun
25
awarded Notable Question
1 2 3 4 5