forked from jwilsson/CSS-Unit-Converter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
79 lines (47 loc) · 2.08 KB
/
index.html
File metadata and controls
79 lines (47 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>CSS Unit Converter</title>
<link rel="stylesheet" href="assets/style.min.css?rev=6974b63b15f4ea0696830ed57c3810fa">
<meta name="description" content="CSS Unit Converter is a little tool which helps you convert values between almost every CSS <length> unit.">
</head>
<body>
<div class="wrapper">
<header>
<h1>CSS Unit Converter</h1>
</header>
<section class="content">
<input type="number" name="from" class="from" min="1">
<select name="from-unit" class="from-unit"></select>
<span>»</span>
<select name="to-unit" class="to-unit"></select>
<p>
<a href="#" class="toggle">Settings</a>
</p>
<section class="settings">
<div class="box">
<label for="base-size">Base size (px):</label>
<input type="number" name="base-size" class="base-size" min="1" value="16">
</div>
<div class="box">
<label for="decimals">Decimal places:</label>
<input type="number" name="decimals" class="decimals" min="0" value="2">
</div>
<div class="box">
<label for="decimals">Dots per inch (DPI):</label>
<input type="number" name="dpi" class="dpi" min="1" value="72">
</div>
</section>
<h2>Result:</h2>
<span class="result"></span>
</section>
<footer>
Another thing by <a href="https://twitter.com/jwilsson">Jonathan Wilsson</a>.
</footer>
</div>
<script src="assets/script.min.js?rev=8f73394000571c3673690478c60343e4"></script>
<script>var _gaq=[['_setAccount','UA-78021-10'],['_trackPageview']];(function(d,t){
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.async=1;g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)
}(document,'script'))</script>
</body>