![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
freeze-css-columns
Advanced tools
In CSS Multi-column Layouts, the content is balanced between columns. There are situations where this is not ideal, i.e. when having an expandable element inside. This library will freeze the initial state, preventing a reflow when the column content changes.
The script finds the first items in every column and applies break-before: column
to them. If the browser does not support this property (looking at you, Firefox) or does crazy things with it (looking at you, IE), a margin-top
fallback is used. In IE, the script needs to compensate this margin-top
by adding a negative margin-bottom
to the element.
Demo: https://backflip.github.io/freeze-css-columns/test/
npm install --save css-freeze-columns
Require module:
import FreezeCssColumns from 'css-freeze-columns'
# Alternative: Add transpiled script to HTML: <script src="dist/es5.js"></script>
Freeze columns:
const target = document.querySelector('.columns'),
columnFreezer = new FreezeCssColumns(target)
columnFreezer.engage()
Handle resize:
const target = document.querySelector('.columns'),
columnFreezer = new FreezeCssColumns(target)
// Initial freeze
columnFreezer.engage()
// Let columns reflow on resize and freeze again
window.addEventListener('resize', () => {
columnFreezer.update()
}, false)
Disable freezing:
const target = document.querySelector('.columns'),
columnFreezer = new FreezeCssColumns(target)
columnFreezer.engage()
// Disable
columnFreezer.disengage()
FAQs
Freeze CSS Multi-column Layouts
We found that freeze-css-columns demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.