Skip to content

Instantly share code, notes, and snippets.

@jwygralak67
jwygralak67 / roll.html
Last active June 13, 2024 05:15
A simple dice roller for gaming or whatever. Uses html, css, & javascript. Self-contained in one html file. Can be saved and run locally.
<html><head>
<meta name="viewport" content="width=480">
<style>
input {border-style: none; border-bottom-style: solid; border-width:thin;}
div {border:solid thin black; margin: 0.5em; padding: 0.5em; border-radius: 1em; background: #f7f7f7;}
.die {border:solid thin black; margin: 1px; padding: 1px; border-radius: 5px; display: inline-block;}