27
loading...
This website collects cookies to deliver better user experience
:root {
--variable-name: value;
}
10px
, 20rem
, #ffffff
, box-shadow: 0px 0px 0px 0px rgb(0,0,0)
, etc. and can be used with any CSS selector, but it is the convention to declare the variables in the :root
.padding
, color
, background
, etc:.selector {
<param>: var(--variable-name);
}
clip path
property makes creating some cool shapes in your websites a walk in the park. A simple example of clip path
usage is given below.clip-path
in CSS is:.selector {
clip-path: <path>;
}
clip paths
using Clippy, or develop custom clip paths
for advanced shapes like:text-overflow
property is the way to go in such situations. It has a pre-requisite to forcefully make the text overflow as text-overflow
only handles how the overflown text appears./* Pre-requisite */
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
the overflown text gets clipped and '...' appears at the end of the textcursor: <cursor name>
. Something most people don't know is that you can make your own cursors from images using:cursor: url("<link to image>"), auto;
background-size: cover;