
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
houdini-dash-border
Advanced tools
Dashed borders in CSS with custom length, gap, and rounded ends
Dashed borders in CSS with custom length, gap, and rounded end caps.
CSS Custom Property Name | Type | Description | Default |
---|---|---|---|
--border-thickness | number | The thickness of the border drawn, in pixels | 2 |
--border-length | number | The length of a dash, in pixels | 12 |
--border-gap | number | The gap in-between each dash, in pixels | 5 |
--border-dash-cap | round | square | butt | The end cap type for each dash. | round |
--border-color | color | The color of the border. | lightgrey |
🚧 Work in progress.
To turn off dashes, set the --border-gap
to 0
.
Often you'll want to have a dashed border by default and then on hover change the border to a solid line of a different color:
div {
--border-thickness: 2;
--border-length: 12;
--border-gap: 5;
--border-dash-cap: round;
--border-color: lightgrey;
background: paint(dashed-border);
}
div:hover {
--border-thickness: 3;
--border-length: 100;
--border-gap: 0;
--border-color: #f8e515;
background-color: #ffffef;
cursor: pointer;
}
Currently, only Chrome and Edge support the required Paint API. This will not work in Safari or Firefox.
--border-radius
)FAQs
Dashed borders in CSS with custom length, gap, and rounded ends
The npm package houdini-dash-border receives a total of 1 weekly downloads. As such, houdini-dash-border popularity was classified as not popular.
We found that houdini-dash-border 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
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.