
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
html-dynamic-text-rows
Advanced tools
A small javascript component for dynamicly resizing text to spread over the entire width of the parent element.
Include html-dynamic-text-rows-component.js at the bottom of your page, just before the ending </body> element.
<script src="html-dynamic-text-rows-component.min.js"></script>
<!-- Or, when installed by npm -->
<script src="node_modules/html-dynamic-text-rows-component/html-dynamic-text-rows-component.min.js"></script>
Optional: include html-dynamic-text-rows-component.css (this is only required when you dynamically add a component with the dynamic-text-rows attribute)
<link rel="stylesheet" href="html-dynamic-text-rows-component.min.css">
<!-- Or, when installed by npm -->
<link rel="stylesheet" href="node_modules/html-dynamic-text-rows-component/html-dynamic-text-rows-component.min.css">
When you have loaded the component you can use it as followed:
<div dynamic-title-rows="1">Lorem ipsum</div>
Where the value of dynamic-title-rows equals the amount of rows the text should be expand over.
None (yet)
$ npm install html-dynamic-text-rows-component
I made this component as an easy way to make text adaptable to its parent container. It does so by starting from 1px, increasing the font-size till it exceeds the maximum amount of rows. It has a fail safe in case it can not reach the desired amount of rows. This could happen when you input 4 rows, but only apply 3 words. See the example.html to get a preview of the functionality and use it to experiment.
FAQs
A small javascript component for dynamicly resizing text to spread over the entire width of the parent element.
We found that html-dynamic-text-rows 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.