diff --git a/index.css b/index.css new file mode 100644 index 0000000..7c7af3b --- /dev/null +++ b/index.css @@ -0,0 +1,65 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + /* margin: ; */ + width: 100%; + height: 100vh; + display: flex; + justify-content: center; + align-items: center; + background-image: linear-gradient(to right, red, blue); +} + +.container h1 { + font-size: 55px; + position: relative; + top: -50px; + font-family: 'Sacramento', cursive; +} + +.input { + text-align: center; +} + +a{ + text-decoration: none; + font-size: 25px; + color:white; + background-color: transparent; + padding: 10px 20px; + position: relative; + top:30px; + border:2px solid white; + +} +a:hover { + /* background-color: rgb(255, 255, 255); */ + border:2px solid black; +} + +input[type="color"] { + appearance: none; + -moz-appearance: none; + -webkit-appearance: none; + background: none; + border: 0; + cursor: pointer; + height: 60px; + padding: 0; + width: 60px; + +} + +label { + position: relative; + bottom: 20px; + font-size: 20px; + padding-left: 15px; + font-family: 'Montserrat', sans-serif; +} + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..32ba722 --- /dev/null +++ b/index.html @@ -0,0 +1,70 @@ + + + + + + + background-color changer + + + + + + + +
+

Background color changer

+
+ + + +
+ Submit +
+
+ + +