search
[last updated: 2024-01-22]
Drupal home page
CSS
-----
-----------------------------------------------------------------------------------
+x projects to the right, -x to the left, +y projects down, -y projects up.
+x and +y used together will create a shadow in the down-right direction, etc.
You can do multiple shadows in the same command, with parameter lists separated by commas.
This allows you to do special effects with multiple colors, for example, or to create a border around your text with:
text-shadow: -2px -2px black, 2px -2px black, 2px 2px black, -2px 2px black ;
--------------------------------------------------------------------------------
-------------------------------
-------------------------------
If any position property (top, bottom, right, or left - see below) is specified,
then they will override the "normal" position.
margin-... properties can be used instead -
However: margin values will be in relation to the boundaries of the container,
ie. Not the viewport boundaries...
-------------------------------
-------------------------------
-------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------------------------
-----------------------------------------------------------------------------------
:root {
--col1: #6495ed;
--col2: #faf0e6;
}
This creates two variables ("custom property names"), "--col1" and "--col2"
They must begin with two dashes: "--"
-----------------------------------------------------------------------------------
.
.
.
eof