After turning on the checkbox, the style value for the specified div changes. The value is set left:0; and width: 245px;
#on:checked ~ .div { left:0; width: 245px; } .div { position: fixed; left:-245px; } <input id="on" type="checkbox"> <label for="on">Клацать</label> <div class="div">текст</div> The wonders are that after reloading the page, the CSS value for the div does not return to the left:-245px;
How to return the value for the class div after reloading the page in Firefox browser?