Fixes tagged CSS
2 fixes · back to all fixes
CSSFlexbox
Pin a card footer to the bottom of an equal-height grid
Cards in a grid have different amounts of text, so their prices and links land at ragged heights. Two CSS lines pin every footer to the bottom, no fixed heights and no JavaScript.
2 min read →
CSSHTML
The hidden attribute stops working when CSS sets display
A modal with the hidden attribute rendered open on every page load and refused to close. The cause: a one-line CSS display rule silently overrides the hidden attribute, and a one-line attribute selector fixes it.
2 min read →