Created
August 9, 2019 00:30
-
-
Save codingwithsara/b368219f817cb7a489ec97f96a1aab2a to your computer and use it in GitHub Desktop.
JavaScript RGB to HEX converter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>RGB to HEX Converter</title> | |
<link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet"> | |
<style> | |
#container { | |
font-family: 'Inconsolata', monospace; | |
text-align: center; | |
width: 800px; | |
margin: 160px auto; | |
} | |
table { | |
width: 100%; | |
} | |
h1 { | |
margin-top: 100px; | |
font-size: 38px; | |
} | |
input[type="range"] { | |
width: 200px; | |
height: 50px; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment