Site Logo

Nikita Hlopov

Frontend Dev Blog

Blog About Archive Tags

Horizontal rule CSS - Custom style hr tag

22 Sep 2021
  • css

By default, the hr tag is just a thin straight line. It doesn’t possess any special properties, but you can make it look more appealing with some custom CSS code.

Read More

Find string in string with Vanilla JavaScript

15 Sep 2021
  • javascript

Finding a substring in a string can be done in a variety of ways, depending on your needs.

Read More

Difference between position fixed vs sticky in CSS

10 Sep 2021
  • css

It sometimes can be confusing to both beginners and even seasoned developers to understand the difference between position fixed vs sticky. Due to the fact that they behave similarly, yet each of those properties has its own purpose.

Read More

Listen for a class change in JavaScript

01 Sep 2021
  • javascript

JavaScript possesses the ability to listen for a class change right out of the box. Without any additional libraries or hacky workarounds. It can be done with the MutationObserver interface.

Read More

How to get the current date in JavaScript (Time, Day, Month, Year)

26 Aug 2021
  • javascript

To get the current date in JavaScript you’ll only need the Vanilla JavaScript Date API. All the information about the current date can be accessed in one line of code in various formats.

Read More
⟨ Previous Next ⟩

This work is licensed under a CC BY 4.0 License.
The code in this work is licensed under an MIT License.