I am attempting to customize a web page by repositioning an input text element.
Below is the code I'm using:
<body>
<h1>Shopping List</h1>
<input id="search" type="search">
<input id='newItem' type="text">
<button>Add an item</button>
<script src="javascript.js"></script>
</body>
input {
position: absolute;
right: 0px;
top: 0px;
}
Despite my efforts, the input element remains in its original position. Could this be due to the nature of input elements?