When trying to use a CSS3 function (like min(), calc(), etc) inside a Less (.less) file, you need to escape the native Less function if it has the same name as a CSS function. You can do this using by putting the CSS function in quotes, and prepending that with a ~. Example using CSS […]
Tag: frontend
Categories
Webpage Auto-Scrolls Down on Load
I was working on a webpage, and it was auto-scrolling to the bottom of the page. I thought it was maybe because my <main role=”main”> element was further down, but was unable to reproduce the issue in testing elsewhere. Turned out, I had a form input at the bottom of the page set to autofocus.