CSS

Last updated on

The vertical-align property in CSS controls how elements set next to each other on a line are lined up. img { vertical-align: middle; } In order for this to work, the elements need to be set alone a baseline. As in, inline (e.g.<span>, <img>) or inline-block (e.g. as set by the display property) elements. The

Continue reading →

Last updated on

The user-select property text unselectable. .row-of-icons { -webkit-user-select: none; /* Chrome all / Safari all */ -moz-user-select: none; /* Firefox all */ -ms-user-select: none; /* IE 10+ */ /* No support for these yet, use at own risk */ -o-user-select: none; user-select: none; } This is useful in situations where you want to provide an

Continue reading →

Last updated on

The unicode-bidi property is one of two CSS properties that handle the rendering of bi-directional text in HTML and similar markup-based languages (eg XML). The other property is direction, and the two are used together to create levels of embedded text with different text directions (right-to-left and left-to-right) in a single DOM element. .bilingual-excerpt { direction:

Continue reading →

Last updated on

The transition-timing-function property, normally used as part of transition shorthand, is used to define a function that describes how a transition will proceed over its duration, allowing a transition to change speed during its course. .example { transition-timing-function: ease-out; } These timing functions are commonly called easing functions, and can be defined using a predefined

Continue reading →