• Blog
    • CSS
    • HTML
    • JavaScript
    • React
    • React Native
    • WordPress Development
    • Front-end Developer Tools
  • Knowledge Base
    • Recruitment questions for Front-end Developers
  • Free WordPress Tools
    • Simple Cookie Notice Plugin
    • Convert Taxonomy Terms Plugin
  • pl
  • en

Love Coding – blog programistyczny

10/07/2019

Joanna

Responsive images in HTML5, using srcset

Images often are problematic while we creating web page . Displaying larger image on larger screen is a better for user experience, but displaying large photo on small screen, e.g. on a phone, may unnecessarily delay page loading. Therefore, a good solution is to “serve” images with different sizes and weight for different screens.

Read more

10/07/2019

Joanna

Auto resize image to div size

Sometimes we want that picture on page shrinks when browser window shrins. This can be easily achieved by using a short css entry.

Read more

05/06/2019

Joanna

What is hoisting in javascript?

Every junior front-end developer should know what hoisting is. This issue can be easily understood, so if you have not heard of it before, you can quickly catch up:

Read more

30/05/2019

Joanna

How to set div to 100% window height?

Tworząc strony internetowe zdarza się, że chcemy, aby div z określonymi informacjami zajmował całą wysokość okna, niezależnie od wysokości tego okna. Wiadomo, że ustawiając wysokość dziecka na 100% zajmuje ono całą przestrzeń swojego rodzica. Zatem aby div zajmował całą wysokość okna, wszyscy jego rodzice muszą także mieć ustawioną taką wysokość. When we create websites, we […]

Read more

14/05/2019

Joanna

How to center div horizontally and vertically in css

The problem of centering divs or text is quite common and I often had to spend more time fixing it than I would like. Sometimes the situation is simple and using one of the basic methods, like margin: 0 auto solves the case, and sometimes you have to think a little more. Therefore, below are […]

Read more

13/05/2019

Joanna

How to check if string contains substring in javascript

Depending on what you currently want to achieve, you can use several solutions to check if the string contains substring:

Read more

13/05/2019

Joanna

How to copy an array in javascript?

We have array [“javascript”, “jest”, “fajny”, 1, 2, 3]. Let’s see what’s happends, if we want to copy it and assign it do variable, and next modify it:

Read more

13/05/2019

Joanna

How to sort array of numbers in javascript?

By sorting an array of numbers and using the built-in sort() function, you’ll definitely notice that, by default, sorting doesn’t go from smallest to largest, but alphabetically.

Read more

13/05/2019

Joanna

How to clear (remove all items from) array in javascript?

Read more

10/03/2019

Joanna

Nested StackNavigator inside DrawerNavigator – React Native

React Native applications often use two or more navigators at once. At first, I had a problem with the combination of stack navigator and drawer navigator, fortunately I combined them in way, that they work properly and now I can share this knowledge.

Read more

Categories

  • CSS
  • Front-end Developer Tools
  • HTML
  • JavaScript
  • React
  • React Native
  • WordPress Development
1 2 3 4 5
  • Blog
  • Recruitment questions for Front-end Developers
  • Spaceship Game
  • Polski
  • English

2025 love-coding

Ta strona używa cookies dla sprawniejszego działania. Korzystając z witryny akceptujesz politykę cookies.