Category: Frontend

JS Tricks

JS Tricks

If you cannot to use PHP code in footer you can use this simple JS code: Copyright © <span id=”year”>2021</span> BizDirect IT | <a href=”/privacy-policy”>Privacy Policy</a> <script> document.getElementById(“year”).innerHTML = new Date().getFullYear(); </script>  

CSS Tricks

CSS Tricks

To change autofill input text color and background: /* Change the defaul browser colors */ input::placeholder {   color: red;   font-size: 1.2em; font-style: italic; } input { caret-color: red; /* cursor color */ } input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active{ -webkit-box-shadow: 0 0 0 30px #151515 inset !important; -webkit-text-fill-color: #ffffff !important; } To place a div (with position:absolute;)…

Read More Read More