CSS

CSS Tutorials // “How To” about pure CSS and preprocessors

CSS text-decoration property and new styles 2019

New styles, tags, functionalities – this is what tiggers like best 🙂 In this post I will show you how to style text using the text-decoration tag and what new styles for lines (underlines, overlines) are available from 2019

Read more

Styling links with css

Standard appearance of hyperlinks on a website depends on the browser. Each browser can display links and their variants (with different pseudo-classes) in a different way. Usually we want to set our own styles so to display links in the same way in any browser. Links can have different states, and each of this states […]

Read more

Rem, em – length units in CSS

I must admit that I rarely used such units of length as rem and em so far. I usually used pixels (px), because somehow it was easier for me to associate what size a given element will have. The rem and em units, however, have one advantage over pixels – they can be set in […]

Read more

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

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

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