I have a number input on a website I was making. It was working completely fine until I changed something (I don’t know what) and now It won’t let me edit it. It’s inside a container, the HTML is below
` <div class=”container” id = “cont1”>
<h1 class=”money”>$</h1><input type=”number” value=”1000″ id=”pricerange”>
</div>
The CSS for the container is:
`.container{
background-color: var(–bg);
width: 300px;
height: 300px;
transform: translate(-50%,-50%);
top: 50%;
left: 50%;
position: absolute;
display: flex;
align-items: center;
justify-content: space-around;
padding: 30px 20px;
border-radius: 50px;
outline: 3px white solid;
}
Hope someone could help.
Thanks
<i>
</i><!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">
<title>Untitled document</title>
<link rel="stylesheet" href="screen.css" media="screen">
</head>
<body>
<div class="container">
<label>
$<input type="number" value="1000" id="pricerange">
</label>
</div>
</body>
</html>
<i>
</i>html,body {
height: 100%;
margin: 0;
}
body {
background-color: #000;
font: normal 1em / 1.5em sans-serif;
}
.container{
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
.container label{
padding: 1.3em 0.83em;
border: 0.13em solid #fff;
border-radius: 2em;
font-size: 1.5em;
font-weight: bold;
color: #fff;
background-color: #b30000;/*var(--bg);*/
}
.container input {
margin-left: 0.6em;
}
pointer-events: none;
```<i>
</i> :root {
--bg: rgb(58, 58, 58);
--main-solid: rgb(0, 170, 255);
--dark-solid: rgb(0, 117, 175);
font-family: 'Poppins';
margin: 0;
padding: 0;
}
* {
padding: 0;
margin: 0;
}
html,
body {
width: 100%;
height: 100%;
}
body {
/* background-image: url('PaperCutContour.gif'); */
background-color: lightgray;
display: flex;
flex-direction: column;
align-items: center;
}
.form-box {
opacity: 0%;
}
.button-box {
width: 247.5px;
height: 55px;
margin: 35px auto;
border-radius: 30px;
background: var(--bg);
border: 4px white solid;
opacity: 0%;
}
.toggle-btn {
padding: 10px 40px;
height: 72.7272727%;
cursor: pointer;
background: transparent;
border: 0;
border: none;
text-align: center;
font-family: 'Poppins', sans-serif;
margin-left: 7.5px;
color: white;
opacity: 0%;
}
#btn {
width: 110px;
height: 72.7272727%;
background: var(--main-solid);
border-radius: 30px;
transition: .5s;
top: 12.5%;
margin-left: 7.5px;
opacity: 0%;
}
.Ask {
color: white;
background: var(--main-solid);
padding: 10px 40px;
border-radius: 40px;
border: white solid 4px;
text-align: center;
font-size: 30px;
}
nav.navbar {
display: flex;
justify-content: center;
}
.line {
background-color: white;
width: 100%;
height: 4px;
top: 1.25%;
z-index: 1;
}
.circle {
background-color: rgb(58, 58, 58);
border: 4px solid white;
width: 30px;
height: 30px;
border-radius: 19px;
margin: 0 10px;
}
.circle1 {
background-color: rgb(58, 58, 58);
border: 4px white solid;
width: 30px;
height: 30px;
border-radius: 15px;
}
#circ1 {
background-color: rgb(58, 58, 58);
opacity: 100%;
}
.container {}
.contcont {
display: flex;
}
#next {
width: 150px;
height: 35px;
background-color: var(--main-solid);
border: none;
border-radius: 80px;
left: 21vw;
border: 3px white solid;
cursor: pointer;
transition: .5s;
font-family: 'Poppins';
color: white;
font-size: 15px;
}
#next:hover {
background-color: var(--dark-solid);
}
.loading {
width: 100%;
height: auto;
display: flex;
justify-content: center;
align-items: center;
}
#line {
height: 4px;
border-radius: 20px;
background: var(--main-solid);
width: 0%;
z-index: 2;
}
@keyframes loading {
0% {
width: 0%;
}
100% {
width: 19.1%;
}
}
.money {
color: white;
font-family: 'Poppins';
}
#error {
color: red;
font-family: 'Poppins';
font-size: 13px;
font-weight: bold;
background-color: white;
text-align: center;
padding: 10px;
border-radius: 40px;
z-index: 3;
display: none;
}
@keyframes error {
0% {
border: solid 3px var(--main-solid);
}
50% {
border: solid 3px red;
}
100% {
border: solid 3px var(--main-solid);
}
}
@keyframes error2 {
0% {
opacity: 0%;
}
100% {
opacity: 100%;
}
}
@keyframes fadeout {
0% {
opacity: 100%;
}
100% {
opacity: 0%;
}
}
#trierror {
width: 0;
height: 0;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
border-top: 50px solid white;
display: none;
}
.productContainer {
background-color: var(--bg);
width: 600px;
height: 400px;
display: flex;
align-items: center;
justify-content: space-around;
padding: 30px 20px;
border-radius: 50px;
border: 3px white solid;
opacity: 0%;
z-index: 8;
overflow-y: scroll;
overflow-x: hidden;
}
.Processtext {
color: white;
font-size: 20px;
}
::-webkit-scrollbar {
width: .5em;
}
::-webkit-scrollbar-track {
background: transparent;
border-radius: 100vw;
margin-block: 2em;
}
::-webkit-scrollbar-thumb {
background: var(--main-solid);
border-radius: 100vw;
}
.typeofIntel {
color: white;
font-size: 20px;
}
.select1 {
padding: 8px 24px;
color: white;
background-color: var(--bg);
border: 3px solid var(--main-solid);
border-radius: 100vw;
border: none;
cursor: pointer;
font-size: 15px;
font-weight: bold;
}
#search {
width: 100px;
height: 35px;
background-color: var(--bg);
border: none;
border-radius: 80px;
border: 3px var(--main-solid) solid;
cursor: pointer;
transition: .5s;
font-family: 'Poppins';
color: white;
font-size: 15px;
}
#search:hover {
background-color: #434343;
}
.form1 {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}<i>
</i>
``
``<i>
</i> <nav class="navbar">
<div id="circ1" class="circle"></div>
<div id="circ2" class="circle"></div>
<div id="circ3" class="circle"></div>
<div id="circ4" class="circle"></div>
<div id="circ5" class="circle"></div>
<div class="circle1"></div>
<!-- <div class="line"></div>
<div class="loading">
<div id="line">
</div>
</div> -->
</nav>
<div class="form form1">
<div id="ask1" class="Ask">What Is Your Budget?</div>
<div class="container" id="cont1">
<input type="number" value="1000" id="pricerange">
<span class="money">$</span>
</div>
<div id="error1">
<h1 id="error">Value Must Be Between $500 And $5000</h1>
<div id="trierror"></div>
</div>
</div>
<!-- <div class="form form2">
<label class="Ask" style="opacity: 0%" id="ask2">Which CPU Company Do You Prefer?</label>
<div class="form-box" id="process1">
<button type="radio" class="toggle-btn" onclick="leftClick()" id="process3">AMD</button>
<button type="radio" class="toggle-btn" onclick="rightClick()" id="process4">Intel</button>
</div>
<div class="productContainer" id="process5">
<div class="Processtext" id="AMD">AMD</div>
<div class="Processtext" id="Intel">Intel</div>
<div id="inteltype">
<div class="selecttype">
<select id="select1" class="select1">
<option disable selected>Core i3</option>
<option value="corei5">Core i5</option>
<option value="corei7">Core i7</option>
<option value="corei9">Core 19</option>
<option value="Xeon">Xeon</option>
</select>
<button id="search" onclick="f1()">Search</button>
</div>
</div>
</div>
</div>-->
<button id="next" onclick="ani()">Next</button><i>
</i>
``
0.1.9 — BETA 4.18