Cool HTML & CSS
🖥
🖥
The Basics
Horizontal Spacing
Hair Space   or  
  Single Non-Breaking Space  
Two Spaces   (en = ½ font size)
Four Spaces   (em = font size)
En Dash – (½ font size width)
Em Dash — (font size width)

<div style="width: fit-content;"></div>
Ø Diameter &Oslash;

Pointers
&larr;  Left-Right Arrows  &rarr;
&uarr;  Up-Down Arrows  &darr;
&#11104;  Triangle Head Arrows  &#11106;
&uArr;  Double Arrows  &rArr;
&#x2b64;  Left-Right Arrows  &#x2b82;
Exchange ⮂ &#11138;     Recycle 🔄 &#1f504;
&#x2196;   ⬆&#11014;   ⬇&#11015; Unicode Arrows &#11013; ⬅   &#11157; ⮕   &#x2197;
Bold Right Arrow ➔   &#10132;
👈 &x1f448; Hand Point &x1f449; 👉
Recycle 🔄 &x1f504;
Namaste 🙏 &#x1f64f;
<head> Coding
<head>
<title>3D is Cool</title>
<link rel="stylesheet" type="text/css" href="3discool2020.css">
<link rel="stylesheet" type="text/css" href="coins.css">

<link rel="icon" type="image/x-icon" href="favicon.png"> <! image for SMS link>
<link rel="apple-touch-icon" href="favicon.png"> <! image for iPhone>

<meta property="og:title" content="3D Underwater Photos"> <! top line in link>
<meta property="og:image" content="http://www.3discool.com/favicon.png">
<meta property="og:image:width" content="180">
<meta property="og:image:height" content="180">
</head>
iMessage link
Backgrounds - Images
B ackgrounds can be applied to the entire page or a single element. Backgrounds cannot be selected or copied, and are, by default, not printed. This allows at least some protection for images. I set the PAGE backgrounds to black. IMAGE width & height must always be defined.

Typical image...
<div style="width: 480px; height: 300px; background-image: url('image.png'); background-size: 100%;"></div>

Multiple Backgrounds are possible. The first image is on top. Each can be assigned a position & repeat option.
<div style="
background-image: url(img_flwr.gif), url(paper.gif);
background-position: right bottom, left top;
background-repeat: no-repeat, repeat;
"></div>
Shadow Effects
Text Shadows
Text-Shadow
text-shadow: 2px 2px 1px #00ffff;
          (X-offset Y-offset Spread Color)

Multiple Text-Shadows
text-shadow: 1px 1px #000000,2px 2px #00ffff;

Box Shadows
Box Shadow
box-shadow: 10px 10px 10px 10px #00ffff inset;
       (X-offset Y-offset Spread Fuzz Color inset outset)
Multiple Box Shadows
box-shadow: 0 0 4px 4px #ff0000, 0 0 8px 8px #ff7f00, 0 0 12px 12px #ffff00, 0 0 16px 16px #00ff00, 0 0 16px 16px #0000ff, 0 0 20px 20px #4b0080, 0 0 24px 24px #9400d0;
This makes a Rainbow Frame.

Multiple Box Shadows

Drop Shadows for PNG files
Drop Shadow
-webkit-filter: drop-shadow(10px 10px 10px #00ffff);   (X-offset Y-offset Spread Color)

Multiple Drop Shadows
(Seperate with a space, Smallest shadow first)
-webkit-filter: drop-shadow(-40px 0px 4px #ffff00 ) drop-shadow(0px -20px 8px #0000ff) drop-shadow(20px 20px 12px #00ff00);

Multiple Drop Shadows
 Section Title Coding

T he Section Title Coding uses BOTH text-shadows and drop-shadows. This makes for a cool 3D effect, when placed on top of other elements. Make the background-color: transparent;

Border Styles
OUTLINE ~ Surrounds the <div> (No Radius option)
MARGIN ~ Positions the <div>
BORDER for the <div>
PADDING ~ Positions the Inside Content of the <div>
Content
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat...
Set the border-style or outline-style property first.
Their options are: solid dotted dashed double inset outset ridge groove

These sample boxes all have the following basic code:
width: 600px; height: 100px; margin: 0 auto;
border-width: 8px; border-radius: 30px;
box-shadow: 0px 0px 30px 15px #0088ff;

border-style: inset
border-style: inset;
(border-color default is grey)
border-style: outset
border-style: outset;
(border-color default is grey)
Radio Buttons
border: 4px outset;   (not pushed)
border: 4px inset;   (pushed)
border-style: ridge
border-style: ridge;
border-color: #ff0000 #00ff00 #ffff00 #00ffff;
border-style: (mixed)
border-style: dotted dashed solid double;
border-color: #ff0000 #00ff00 #ffff00 #00ffff;
Border Radius
Basic Border-radius
border-radius: 10px 20px 30px 40px;  OR  border-radius: 30px;

Using unequal dimensions
border-top-left-radius: 40px 80px;
border-top-right-radius: 40px 80px;
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
Text Wrap
✓ Text will wrap automatically around a JPG or PNG
text-align: justify;"
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.

ELLIPSE WRAP CODE

style="border-radius:50%; shape-outside: ellipse(); background-clip: content-box;
display: inline-block;"

Polygon Shape Text Wrap
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.

POLYGON WRAP CODE

style="shape-outside: polygon(153px 0, 306px 250px, 0 306px, 153px 0);
shape-margin: 30px;
"

Polygon Coordinate Ruless...
• Coordinate pairs are coded as Xpx Ypx (without a comma)
• Coordinate pairs are seperated by a comma
• Zero coordintes are coded as a 0 without a px suffix
Rotate Elements
I ndividual HTML elements can be rotated. Positive rotation is clockwise from level.
transform: rotate(-10deg);
This is rotated -10 degrees
The default origin is the center of the element
transform-origin: 50% 50%;

1st value is X (horizontal from left of the element)
2nd value is Y (vertical from top of the element)

Gradients
G radients can be applied to text and to backgrounds of any kind including the entire page. Gradients can be linear, radial, angled, have multiple intermediate color 'stops', and even use the color 'transparent'. I like to use them but not all browsers respond alike to the coding.

Fire and Heat Ice and Cold Horizontal

Here's the code for this Horizontal Gradient:
background: -webkit-linear-gradient(180deg, #ff0000, #00ff00, #0000ff);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;

A linear vertical background gradient:
background-image: -webkit-linear-gradient(90deg, #00ffff, #0000ff);
A linear horizontal background gradient using the color transparent at either end:
background-image: -webkit-linear-gradient(180deg, transparent, #0000ff, transparent);
An Angled gradient:
background-image: -webkit-linear-gradient(75deg, #1d4949, #1d4949, #00cccc, #1d4949, #1d4949);
If we reduce the <div> height to 2 or 3 pixels we can essentially produce gradient lines, like these:

<div style="height: 3px; background-image: -webkit-linear-gradient(180deg, transparent, #00ffff, #ffff00, #00ffff, transparent);"></div>

The above code is placed in a CSS file, then referenced in HTML so.
<div class="secline"></div>

Some NEON   dividers:

The code for the light green one is here:
<div style="width: 500px; height: 0px; border: 1px solid #00f98a; margin: 0 auto; box-shadow: 0px 0px 8px 4px #00cccc;"></div> <div style="width: 150px; height: 12px; border-radius: 100%; background-color: #00f98a; box-shadow: 0px 0px 12px 6px #00cccc; margin: 0 auto; position: relative; top: -7px;"></div>

A basic 3-color radial gradient:
background: -webkit-radial-gradient(#ff0000, #00ff00, #0000ff);
An angled linear gradient using the color 'transparent':
background: -webkit-linear-gradient(100deg, #0000ff, #0000ff, transparent, #0000ff, transparent, #0000ff, #0000ff);
A special repeating, angled linear gradient:
background-image: repeating-linear-gradient(45deg, #ffff00 0px, #ffff00 25px, #000000 25px, transparent 50px, #a9a9a9 50px);
Greek & Math Symbols Codes
Greek Alphabet
α (alpha, lower case) &alpha; α (1st, Alpha particle He2+)
β (beta, lower case) &beta; β (2nd, Beta particle e-)
γ (gamma, lower case) &gamma; (times bold) γ (3rd angle, variable, Gamma radiation (e-), Lorentz Transform Factor)
Δ (Delta, upper case) &Delta; Δ (difference operator, finite difference)
ε (epsilon, lower case) &epsilon;ε epsilon (5th brightest, Young's Modulus)
ζ (zeta, lower case) &zeta;ζ zeta (Riemann function in math, damping ratios)
η (eta, lower case) &eta;η eta (η mesons. propulsive efficiency, packing %)
θ (theta, lower case) &theta; θ (real variable or angle)
ι (iota, lower case) &iota; ι (very small amount)
Κ (Kappa, upper case) &Kappa; Κ (10th brightest)
λ (lambda, lower case) &lambda; λ (wavelength, radioactive decay)
μ (mu, lower case) &mu; μ (coeffecient of friction, viscosity)
ν (nu, lower case) &nu; ν nu (statistics degree of freedom)
Ξ (Xi, upper case) &Xi; Ξ Xi (Ξ baryons, greek number 60)
Ο (Omicron, upper case) &Omicron; Ο Omicron (15th brightest)
π (pi, lower case) &pi; π (ratio of circumference of circle to diameter)
ρ (rho, lower case) &rho; ρ (momentum, density)
Σ (Sigma, upper case) &Sigma; Σ (summation)
σ (sigma, lower case) &sigma; σ (standard deviation)
τ (tau, lower case) &tau; τ (time, torque, opacity)
Υ (Upsilon, upper case) &Upsilon; Υ Upsilon (20th brightest)
Φ (Phi, upper case) &Phi; Φ (golden ratio, 1.6180339887…)
φ (phi, lower case) &phi; φ (reciprocal of the golden ratio, 1 ⁄ Φ)
Χ (Chi, upper case) &Chi; Χ Chi (22nd brightest)
Ψ (Psi, upper case) &Psi; Ψ (wave function in Schrödinger's equation)
Ω (Omega, upper case) &Omega; Ω (electrical resistance)
ω (omega, lower case) &omega; ω (angular velocity)
æ (lowercase dipthong) &#x00e6; Latin diphthong a + e
œ (lowercase dipthong) &#x153; Latin diphthong o + e
𝘦 (e) &#x1d626; e, Euler's Number, 2.7182818284590…
𝝏 (partial) &#x1d74f; Partial Differential
Ĥ (H circumflex) &#292; Ĥ (total energy of a quantum system)
(h-bar) &planck; OR &hbar; (Planck's Constant divided by 2π)
(for all) &forall; (there exists) &exist;
𝒊 (imaginary i) &#x1d48a;𝒾 &#x1d4be; (therefore) &there4;
(circumpunct) &#x2299; M (Solar Mass) M<sub>&#x2299;</sub>

(radical, square root) &radic; 3 (cube root) <sup>3</sup>&radic;
&#8731;
(square root of 2) <span style="position: relative; top: 2px;">&radic;</span><span style="text-decoration: overline;">&nbsp;2&nbsp;</span>

ƒ (function of) &fnof; ƒ(x) (function of x) &fnof;(x)
ƒ′ (prime, 1st derivative) &fnof;&prime; ƒ′′ (dbl prime, 2nd derivative) &fnof;&prime;&prime;
(partial derivitive) &part; ∂x (partial derivitive of x) &part;x
(integral) &int; ∫∫∫ (triple integral) &int;&int;&int;
dx ⁄ dt (derivative of x with respect to time) dx &frasl; d<i>t</i>
dxdt <i><sup>dx</sup>&frasl;<sub>dt</sub></i>
∂x ⁄ ∂t (partial derivative of x with respect to time) &part;x &frasl; &part;<i>t</i>
∂x∂t <i><sup>&part;x</sup>&frasl;<sub>&part;t</sub></i>
(a NABLA symbol, the vector derivative or gradient, of a scalar field.) del math &nabla;

(a SOLIDUS symbol, compare to a forward slash / ) &#10744;

σx (standard deviation of x values) (Bell Curve) &sigma;<sub>x</sub>

Ø (Diameter) &Oslash; 7 (7 for mathematicians) <del>7</del>
(angle) &ang; (perpendicular) &perp;
(not equal to) &ne;   \u2260 (esc code) (approximately equal to) &asymp;
= (equal to) = (equivalent to) &equiv;
< (less than) &lt; > (greater than) &gt;
(less than or equal to) &le; (greater than or equal to) &ge;
{ (left brackets) &#x007b; } (right brackets) &#x007d;
(approaches) &rarr; (infinity) &infin;
± (plus or minus) &plusmn; (minus or plus) &mnplus;
! (factorial) e.g. 5! = 5 x 4 x 3 x 2 x 1 (ellipsis) &hellip;
² (squared) &sup2; ³ (cubed) &sup3;
H20 use of <sub> for subscript a2 use of <sup> for superscript
½ ⅓ ⅔ (fractions) &frac12;   &frac13;   &frac23; ¼ ¾ ⅝ (fractions) &frac14;   &frac34;   &frac58;
Schrödinger (with ö umlaut) Schr&ouml;dinger ddx <i><sup>d</sup>&frasl;<sub>dx</sub></i>
716 <i><sup>7</sup>&frasl;<sub>16</sub></i> sincos <i><sup>sin</sup>&frasl;<sub>cos</sub></i>

More Symbols
§ (section symbol) &sect; (bullet) &bull;
(password dot) &#9679; · (multiplication dot) &middot;
© (copyright) &copy; (star) &#9733;
(line over any letter) o&#772; (overline) &oline;
(long dash) &mdash; (check mark) &#10003;
(4 spaces) &emsp; (em = font size)   (1 space) &nbsp;
(true position) &#x2316; (centerline) &#x2104;
(earth ground) &#x23da; (power) &#x23fb;
(phillips screw) &#x2a37; (slotted screw) &#x2d31;
(up block arrow) &#x21ea; (horizontal arrow) &harr;
(left arrow) &larr; (right arrow) &rarr;
(long left arrow) &xlarr; (long right arrow) &xrarr;
(up arrow) &uarr; (down arrow) &darr;
(left hand) &#9756; (right hand) &#9758;
(down) &#11015; (up) &#11014;
(reload, clockwise) &#8635; (reload, counter clockwise) &#8634;
(double right) &rArr; (double left) &lArr;
(left up) &#8598; (right up) &#8599;
(left down) &#8601; (right down) &#8600;
(lightning bolt) &#8623; (up & down) &#8693;
🔄 (loop arrow) &#128260; (exchange arrows) &#x21c6;
(clockwise) &x21bb; (counter clockwise) &#x21ba;
(recycle outlined) &#9842; (recycle type) &#9850;
(recycle filled) &#9851; ♳ ♴ ♵ (recycle)  &#9843;  &#9844;  &#9845;
$ (U.S. Dollar) $ (place before, $50) (China Yuan) &#20803; (place after, 50)
£ (English Pound) &pound; (place before, £50) (Euro) &euro; (place before, 50)
¥ (Japanese Yen) &yen; (place before, e.g. ¥50) ¢ (Cent) &cent; (place after, 50¢)
(Indian Rupee) &#8377; (place before, e.g. 50) ฿ (Thai Baht) &#3647; (place before, e.g. ฿50)
(number symbol) &#8470; Use font: 100% times; (smiley face) &#9786;
(Celsius) &deg;C (Fahrenheit) &deg;F
° (degree) &deg; °K (Kelvin) &deg;K
(fraction slash) &frasl; (sun, circle symbol) &#9737;
Å (Angström) &Aring; ö ü (umlaut) &ouml; &uuml;
á é í ó ú (acute) &aacute;   &eacute;   etc. à è ì ò ù (grave) &agrave;   &egrave;   etc.
ā ē ī ō ū (macron) &amacr;   &emacr;   etc. ă ĕ ĭ ŏ ŭ (breve) a&#774;   e&#774;   etc.
ñ Ñ (tilde) &ntilde;   &Ntilde; ¡ ¿ (inverted) &iexcl;   &iquest;
ū d̄ (overline) u&#772;   d&#772; (wavy line) &#x3030;   〰〰〰〰
Emoji Codes
Emojipedia Unicode Symbols
Math Symbology Unicode Symbols
𓂀 Egyptian Hieroglyph Unicodes
Greek Alphabet Unicodes

For eXtended Unicodes (U+), add an x after the &# and close with semicolon ;
U+1F60E → → &#x1f60e;

eXtended Unicodes can be used in Pseudo Classes as Glyphs.

To use earth 🌎 (&#x1f30e;) as Glyph Content, use a backslash and the code (no semicolon)
🌎 = \1f30e

Sample Glyph Codes…
© \00a9
[space] \00a0
\2202
content: "\00a9 \00a0 By 3DisCOOL.com"

To use in javascript .innerHTML =
✋ (&#x270b;)
Replace the &#x with 0x and (no semicolon)
Treat like a variable (no quotes)
.innerHTML = String.fromCodePoint(0x270b) + " Input must be a positive number less than 1";

© &#xa9; Copyright 😊 &#x1f60a; Smiley with Smiling Eyes 😎 &#x1f60e; Smiling w/ Sunglasses 🤔 &#x1f914; Thinking Face 🤫 &#x1f92b; Hushing Face 🤯 &#x1f92f; Exploding Head 😜 &#x1f61c; Crazy Face 😮 &#x1f62e; Face with Open Mouth 🤠 &#x1f920; Cowboy 🌞 &#x1f31e; Sun with Rays 🥶 &#x1f976; Cold Face 👋 &#x1f44b; Hand Wave &#x270b; Raised Hand 👍 &#x1f44d; Thumb Up 👉 &#x1f449; Point Right 👌 &#x1f44c; OK Hand 🙏 &#x1f64f; Namaste 👨‍🚀 &#x1f468;&#x200d;&#x1f680; Astronaut 🤖 &#x1f916; Robot Face 📌 &#x1f4cc; Push Pin 💡 &#x1f4a1; Light Bulb 📱 &#x1f4f1; Mobile Phone 🖥 &#x1f5a5; Computer 📚 &#x1f4da; Books 🚧 &#x1f6a7; Construction 🧰 &#x1f9f0; Toolbox
🌟 &#x1f31f; Glowing Star &#x2728; Sparkles 💥 &#x1f4a5; Collision 🛸 &#x1f6f8; UFO 🚀 &#x1f680; Rocket 🛰 &#x1f6f0; Satelite 🌎 &#x1f30e; Earth 🌏 &#x1f30f; Earth Asia 🌐 &#x1f310; Globe w/ Meridians 🌒 &#x1f312; Crescent Moon 🔭 &#x1f52d; Telescope 🧭 &#x1f9ed; Compass 📡 &#x1f4e1; Satellite Antenna 🥤 &#x1f964; Milkshake 🍿 &#x1f37f; Popcorn 🎥 &#x1f3a5; Movie Camera 📽 &#x1f4fd; Film Projector 🎞 &#x1f39e; Film 📸 &#x1f4f8; Camera with Flash 🎬 &#x1f3ac; Clapper Board 📺 &#x1f4fa; Television 📖 &#x1f4d6; Open Book 📜 &#x1f4dc; Scroll 🏛 &#x1f3db; Classical Building &#x26e9; Shinto Shrine 🛑 &#x1f6d1; Stop Sign
🍚 &#x1f35a; Cooked Rice 🥢 &#x1f962; Chop Sticks 🍛 &#x1f35b; Curry Rice 🍜 &#x1f35c; Steaming Bowl 🥟 &#x1f95f; Dumpling 🍗 &#x1f357; Poultry Leg 🍲 &#x1f372; Pot of Food 🍵 &#x1f375; Teacup &#x2615; Hot Beverage
🥠 &#x1f960; Fortune Cookie 🍤 &#x1f364; Fried Shrimp 🍣 &#x1f363; Sushi 🥡 &#x1f961; Takeout Box 🥜 &#x1f95c; Peanuts 🌽 &#x1f33d; Ear of Corn 🍅 &#x1f345; Tomato 🎏 &#x1f38f; Carp Streamer 🎎 &#x1f38e; Japanese Dolls
👲 &#x1f472; Asian Man 🐲 &#x1f432; Dragon Head &#x262f; Yin Yang🀄 &#126980; Mahjong Tile 🏮 &#x1f3ee; Red Paper Lantern
🐯 &#x1f42f; Tiger Face 🐉 &#x1f409; Dragon 🧨 &#x1f9e8; Fire Cracker 🧧 &#x1f9e7; Red Envelope 💰 &#x1f4b0; Money Bag
🌺 &#x1f33a; Hibiscus 🌼 &#x1f33c; Blossom 🌷 &#x1f337; Tulip 🌹 &#x1f339; Rose 🌲 &#x1f332; Evergreen 🌴 &#x1f334; Palm 🌿 &#x1f33f; Plant 🌱 &#x1f331; Spring 🌵 &#x1f335; Cactus 🗺 &#x1f5fa; World Map 🏖 &#x1f3d6; Beach with Umbrella 🌊 &#x1f30a; Great Wave 🧜 &#x1f9dc; Mermaid 🐟 &#x1f41f; Fish 🦀 &#x1f980; Crab 🐙 &#x1f419; octopus 🐳 &#x1f433; Spouting Whale 🐋 &#x1f40b; Blue Whale 🐬 &#x1f42c; Dolphin 🎣 &#x1f3a3; Fishing 🐚 &#x1f41a; Shell 𓂀 &#77952; Eye of Horus
📚 &#x1f4da; Books ✏️ &#x270f;&#xfe0f; Pencil 📏 &#x1f4cf; Straight Ruler 📐 &#x1f4d0; Triangle Square 🔍 &#x1f50d; Magnifying Glass 🔬 &#x1f52c; Microscope ⚗️ &#x2697;&#xfe0f; Alembic &#x26f0; Mountain 🏌 &#x1f3cc; Golfer &#x26f3; Golf ⚜️ &#x269c;&#xfe0f; Fleur-de-Lis 🏰 &#x1f3f0; Castle 📓 &#x1f4d3; Notebook 🗒 &#x1f5d2; Spiral Pad 📈 &#x1f4c8; Chart Rising 💈 &#x1f488; Barber Pole ⚛️ &#x269b;&#xfe0f; Atom 🔮 &#x1f52e; Crystal Ball 🕉 &#x1f549; Om &#x26a1; High Voltage 🌈 &#x1f308; Rainbow 🐩 &#x1f429; Poodle
🇺🇸 &#x1f1fa;&#x1f1f8; US Flag U+S 🇬🇧 &#x1f1ec;&#x1f1e7; Gr. Brit. Flag G+B 🇨🇳 &#x1f1e8;&#x1f1f3; China Flag C+N 🇫🇷 &#x1f1eb;&#x1f1f7; France F+R
🇯🇵 &#x1f1ef;&#x1f1f5; Japan J+P 🇨🇦 &#x1f1e8;&#x1f1e6; Canada C+A 🇰🇷 &#x1f1f0;&#x1f1f7; Korean K+R 🇨🇭 &#x1f1f0;&#x1f1f7; Switz. C+H
NOTE: The Flag Symbols are not well supported by some browsers.
Physics & Mathematics Equations
Velocity
v = Δx ⁄ Δt      v = &Delta;x &frasl; &Delta;t

Acceleration
a = Δv ⁄ Δt      a = &Delta;v &frasl; &Delta;t
a = Δx ⁄ Δt²     a = &Delta;x &frasl; &Delta;t&sup2;

Momentum
ρ = mv      &rho; = mv

Kinetic Energy
Ek = ½mv²      E<sub>k</sub> = mv&sup2;

Einstein's Energy ≡ Mass Equivalency Formula
e = mc²      e = mc&sup2;

Heisenberg Uncertainty Principle
Δx Δp > h      &Delta;x &Delta;p &gt; h
ΔE Δt > h      &Delta;E &Delta;v &gt; h

Lorentz Transform Factor
1/√(1- v²/c²) 
1/&radic;<span style="text-decoration: overline;">(1- v&#178;/c&#178;)&nbsp;</span>

Wheeler's Quantum Foam Prediction
As Δt → 0     E → photon + e- + e+ → E
As &Delta;<i>t</i> &#8594; 0&nbsp;&nbsp;&nbsp;&nbsp; E &rarr; photon + e<sup>-</sup> + e<sup>+</sup> &rarr; E

Planck's Constant
ħ = 1.054571596 x 10-34 kg m2 s-1
&#295; = 1.054571596 x 10<sup>-34</sup> kg m<sup>2</sup> s<sup>-1</sup>

Imaginary Number (𝒾)
𝒾 = √-1      &#x1d4be; = &radic;<span style="text-decoration: overline;">-1&nbsp;</span>
𝒾² = -1       &#x1d4be;&sup2; = -1

Euler's Formula
eπ𝒾 = -1      e<sup>&pi;&#x1d4be;</sup> = -1

Writing Fractions
top
bottom
<div class="fbox"><div class="ftop">
top </div><div>
bottom </div></div>
.fbox {
font: 24px times;
color: #ffffff;
font-style: italic;
text-align: center;
min-width: 30px;**
display: inline-block;
position: relative;
top: 16px;
}
.ftop {
border-bottom: 2px solid #ffffff;
}
.fbox
.ftop
<div>
** The min-width property adjusts the width automatically!
Writing Integrals
a ∫  b ƒ(x) dx
<span style="position: relative; top: 16px; font-size: 50%;">a</span> &int;<span style="position: relative; top: -20px; font-size: 50%;">b</span> &fnof;(x) dx
The following CSS classes format the elements used for the Integral and its parts…

.int {
font: 48px times;
font-style: italic;
color: #ffffff;
}
.int:after {
content: "\222b";
}
.intbtm {
font: 16px times;
font-style: italic;
color: #ffffff;
position: relative;
top: 22px;
}
.intbtm-n {
font: 16px times;
font-style: italic;
color: #ffffff;
position: relative;
top: 22px;
left: 16px;
}
.inttop {
font: 16px times;
font-style: italic;
color: #ffffff;
position: relative;
top: -38px;
left: 12px;
}
List Items
L ists, both Ordered <ol> (1, 2, 3, …) and Unordered <ul> (• • • …) can be coded to style the color, font, replace markers with an image or emoji, and more. Add the following codes to a referenced CSS stylesheet. The class name to reference is preceeded by a period, e.g. .fav and .glyph.
The .glyph Class can use ANY of the thousands of Unicode Symbols & Emoji Symbols. So Cool!
<ul> UNordered List Types and Markers
<ul style="list-style-type: type;">
  • disc (default)
  • circle
  • square
  • none
.redck { list-style: none; color: #00ffff; }
.redck li::before { position: relative; left: -10px; content: "\2713"; color: #ff0000; }
  • One
  • Two
  • Three
  • Four
<ul> Image Markers
CSS
.fav { list-style-image: url('favicon_sm.png'); }
.fav li { color: #0088ff; font: 22px times; font-style: italic; }

HTML
<ul class="fav">

The above results in the following display.

<ul> Glyph Markers
CSS
.robot {list-style: none }
.robot li::before {
    position: relative; left: -10px; content: "\1f916"; }

HTML
<ul class="robot">

The above results in the following display.

<ol> Ordered List Types
O rdered Lists <ol> can have a variety of marker types. Identation is automatic. Here is the CSS Code

<ol style="list-style-type: type;">

<ol> types…
decimal (default)   1. 2. 3. 4. 5.
decimal-leading-zero   01. 02. 03. 04. 05.
upper-alpha   A. B. C. D. E.
lower-alpha   a. b. c. d. e.
lower-roman   i. ii. iii. iv. v.
upper-roman   I. II. III. IV. V.
lower-greek   α. β. γ. δ. ε.
upper-greek   Α. Β. Γ. Δ. Ε.
cjk-ideographic
(Mandarin)   一. 二. 三. 四. 无.

B egin an Ordered List <ol> with a specific number this way:   <ol start="12">
M ake BOLD MARKERS this way:   ol.className li::marker { font-weight: bold; }
    List with BOLD Markers
  1. Item one
  2. Item two
  3. Item three
<li> List Item Indenting
A lso CSS can control how List Items <li> indent. Options are inside or outside (default). Nested lists will indent automatically.
<ul style="list-style-position: inside;">
    Outside List (default)
  • List Item one
  • List Item two
  • List Item three
    Inside List
  • List Item one
  • List Item two
  • List Item three
    Inside style="padding-left: 20px;
  • List Item one
  • List Item two
  • List Item three
Tables
T ables can be coded to style the color, font, background, etc. Add the following codes to a referenced CSS stylesheet. The class name to reference is immediately AFTER the period, in this case .tblred

To remove ALL remnant borders use this:
border-collapse: collapse;

tr is a table row
th is a table heading cell
td is a table data cell

CSS
table.tblred { margin: 0 auto; }
table.tblred  th { width: 100px; height: 30px; border-bottom: 2px solid #00ffff; color: #ffffff; text-align: center; font-weight: bold; }
table.tblred  td { width: 100px; height: 30px; background: #ff0000; color: #ffffff; text-align: center; }
HTML
<table class="tblred">

The above results in the following display.

OneTwoThreeFour
1234567893.1416
xyzzyxabc2.6181

Adding border-collapse: collapse; results in the following display.

OneTwoThreeFour
1234567893.1416
xyzzyxabc2.6181

Table Captions
Table Caption for This 5 Column Table
OneTwoFourFive
1234567893.1416
xyzzyxabc2.6181
T
he <caption> tag defines a table caption which always spans the entire Table width.
The tag must be inserted immediately FOLLOWING the first <table> tag.
Captions respond well to CSS class formatting. Here is the code for the above 5 Column Table. The 3rd column TH and TD are defined with "border: none;".
.tabcap { color: #ff9d80; font: 30px times; font-style: italic; text-align: center; padding-bottom: 6px; }

<table class="table5">
<caption class="tabcap">Table Caption for 5 Column Table</caption>
    tr   th & td coding...
</table>

DO NOT USE colspan=" " to add a Title to a Table. Borders will not function properly.
: Pseudo Classes
P seudo Classes are Next Level CSS coding that apply to special states of HTML Elements. There are many Pseudo Classes but I will discuss just a few. First up is the very useful :hover Pseudo Class.
CSS
table.tblred2  td:hover { background: #0000ff; }

The above changes apply when a cursor hovers over a table data cell of a table class ".tblred2". Try it!

OneTwoThreeFour
1234567893.1416
xyzzyxabc2.6181

The :hover Pseudo Class is especially useful for highlighting hyperlinks.

CSS
.linkbox:hover { color: #00ffff; }
.linkbox:hover .dot { background: #0000ff; }

HTML
<a href="#null">
        <div class="linkbox">
                <div class="dot"></div>  This is a null link (hover over me)
        </div ! --- end linkbox >
</a>

:nth-child( )
C hild Elements belong to their Parent HTML group, e.g. the List Items <li> in an Ordered List <ol>. Individual child elements can be styled using CSS. The first child element is indexed as n = 1.
CSS
ol li:nth-child(odd) { }   This styles all odd List Items
ol li:nth-child(even) { }   This styles all even List Items
ol li:nth-child(An + B) { }   List Items whose Index number = (An + B) A, B

ol li:nth-child(3n)   This styles every 3rd List Item
ol li:nth-child(3n + 1)  Every List Item after 3rd List Item (e.g. 4, 7, 10, …)

H ere is the :nth-child() Pseudo Class used in an Ordered List, but it also works for UNordered List.

CSS
ol.alt  li:nth-child(odd) { color: #fdb700; }
ol.alt  li:nth-child(even) { color: #0099ff; }
HTML
<ol class="alt">

The above results in the following display.

  1. List Item one
  2. List Item two
  3. List Item three
  4. List Item four
U se the following :nth-child() Pseudo Class to style a table's data cells in alternating rows.
CSS
table.tblred3 tr:nth-child(odd) td { background: #0077ff; }
table.tblred3 tr:nth-child(even) td { background:#0000ff; }

The above results in the following display. (Row 1 is Index n = 1 which uses th and are unaffected)

OneTwoThreeFour
1234567893.1416
xyzzyxabc2.6181
7895433211.4141
zzyzxxpdq1.732

U se the following :nth-child() Pseudo Class to style a table's data cells in columns of specific colors.
CSS
table.tblred4 tr td:nth-child(1) { background: #ff0000; }
table.tblred4 tr td:nth-child(2) { background: #0000ff; }
table.tblred4 tr td:nth-child(3) { background: #00aa00; }
table.tblred4 tr td:nth-child(4) { background: #aa00aa; }

The above results in the following display. (Row 1 is Index n = 1 which uses th and are unaffected)

OneTwoThreeFour
1234567893.1416
xyzzyxabc2.6181
7895433211.4141
zzyzxxpdq1.732

T he  :nth-child() of an :nth-child() can be used to target a Single Data Cell.
CSS
table.special tr:nth-child(3) td:nth-child(3) { background: #ff0000; }

OneTwoThreeFour
1234567893.1416
xyzzyxabc2.6181
7895433211.4141
zzyzxxpdq1.732

T he latest version of CSS is CSS3. The NEW ::before and ::after Pseudo Classes use double colons which distinguish the Pseudo Class as relating to an element's content. These are very useful for inserting content like Copyright declarations since one single change in the CSS file can update every instance of the element throughout the website.

I n a CSS file I have the following code. Any content that is not text must use the Glyph Codes. e.g. \00a9 is the code for the copyright symbol, \00a0 is a non-text space.

CSS
.copy1 {
color: #ff0000;
text-align: center;
font: 18px arial, helvetica, sans serif;
font-style: italic;
}

.copy1::before {
content: "\00a9 \00a0 2019 By 3DisCOOL.com - All Rights Reserved"
}

All eXtended Unicodes can be used in the Pseudo Classes ::before and ::after as content in Glyph code.

e.g. to insert an earth symbol (&#x1f30e;) as a Glyph, use the coding after the x and add a backslash before.

🌎 = \1f30e
Filters
T he CSS filter style controls how colors and images can be modified. Values other than pixels can be in percentage or 0-1. For multiple filters, separate each filter with a space.
Original
grayscale(1) contrast(1.5)
filter: blur(px);     TEXT BLUR = 1px

filter: brightness(%);BRIGHT TEXT (2)

filter: contrast(%);   <1 less contrast,   >1 more contrast

filter: drop-shadow(horiz-px vert-px blur-px color);Use *.png only

filter: grayscale(%);   (1) generates a black and white image

filter: invert(%);       (100%) all colors inverted

filter: opacity(%);     (0) transparent, (1) opaque

filter: saturate(%);

filter: sepia(%);

Multiple filters...
filter: brightness(1.5) grayscale(1) contrast(1.5);

Reflections
Add a Reflection
style= "-webkit-box-reflect: below 10px  linear-gradient(to bottom, transparent 85%, white 100%) ;"
Offset options are: below, above, left, right

linear-gradient options should match: to bottom, to top, to left, to right

Transforms
Transforms are instantaneous changes in an elements definitions

Transitions are timed periods for Transforms to occur

Translations are postion changes of an element

Rotations are angular changes to an element

T he default Transform Origin (0,0) is at the upper left corner of the element.
Elements can be Transformed in all 3 dimensions.
Distances are defined using px, %, or offset-keywords.

X Position origin changes can be defined in px, %, or as left, center, right

Y Position origin changes can be defined in px, %, or as top, center, bottom

Z Position origin changes must be defined in px

Transform Origin:
transform-origin: x-offset-keyword | y-offset-keyword | z-offset ;

transform-origin: right bottom 2cm; // z dimension is 2cm

transform-origin: center bottom; // same as 50% 100%

transform-origin: 50% 244px 10px; // center in x distance, 244px in y distance, 10px in z distance

Transform: Rotate
Default is to rotate about a Z-axis (i.e. rotates the x-y plane ClockWise).

transform: rotate(45 deg); // rotation is ClockWise 45°

transform: rotateX(45 deg); // rotation is ClockWise 45° about the X axis

transform: rotateY(45 deg); // rotation is ClockWise 45° about the Y axis

Transform: Translate
transform: translate(100px, 50%); // 100px right, 50% down
Flip Horizontal or Vertical
transform: scaleX(-1);   // Flip Horizontal

transform: scaleY(-1);   // Flip Vertical

Transitions
Transition: timing → controls Transform:

className { transition: all 2s ease-in-out; }
className:hover { transforms, new styles }

Transitions on :hover

Hover
over
this
.magicBox {
width: 300px ;
background: #0000ff ;
color: #ffffff ;
transition: width 2s, background 2s, color 2s, border-radius 2s ;
}
.magicBox:hover {
width: 100px ;
background: #ffffff ;
color: #000000 ;
border-radius: 50px ;
}
Transform Scale on :hover
.img_coin {
  transition: .5s ease-in-out ;
}
.img_coin:hover {
  transform: scale(2.0,2.0) ;
z-index: 2 ;
}
Cross-Fade Effect
Two images must be exactly the same size
And
They must be exactly in the same place
⬆ Mouse over the Latin
.crossfade { position:relative; width: 400px; height: 48px; margin: 0 auto; }
.crossfade img { position: absolute; transition: opacity 1s ease-in-out; }
.crossfade img.top:hover { opacity: 0; }
<div class="crossfade">
<img src="latin_translate.png" >
<img class="top" src="latin.png" >
</div>
Animations

The @keyframes CSS at-rule controls the intermediate steps in a CSS animation by defining styles for keyframes (waypoints) for the sequence.

The animation name must match the @keyframes name (see examples)

Animation Parameters
[space] seperated
animation: animation-name animation-duration animation-timing-function animation-delay animation-iteration-count ;

animation-name - the name of the @keyframes function
animation-duration - the speed of the @keyframes function (seconds)
animation-timing-function - linear OR ease-in-out,2s OR ease-in,2s OR ease-out,2s
animation-delay - delay before starting the @keyframes function (seconds) // optional
animation-iteration-count - infinite OR the number of times to repeat (number)

EXAMPLES:
animation: trainMove 8s linear infinite;
animation: trainMove 8s linear 2;  // repeats 2 times
Translate Animation
🚂

<style>
.go_translate{
  animation: trainMove 8s linear infinite ;
  position: relative;
  width: 80px; height: 80px;
  font-size: 74px;
  transform-origin: center center;
}

@keyframes trainMove {
from {transform: translate(250px,0px);} to { transform: translate(-250px,0px); }
}
</style>

Rotate Animation
<div class="go_rotate"
  style="margin: 0 auto; background-image: url('globe_np.png'); background-size: 100%;">
</div>

<style>
.go_rotate {
  animation: globeSpin 12s infinite linear;
  position: relative;
  width: 100px; height: 100px;
  transform-origin: center center;
}

@keyframes globeSpin {
from { transform: rotate(360deg); } to { transform: rotate(0deg); }

}
</style>

Accents & Special Characters
´ACUTE ¯MACRON `GRAVE ̆BREVE ¨UMLAUT SPECIAL ROMAN NUM
á&aacute; ā&amacr; à&agrave; a&#774; ä&auml; Æ&x00c6; &x2160;
é&eacute; ē&emacr; è&egrave; e&#774; ë&euml; æ&#x00e6; &x2164;
í&iacute; ī&imacr; ì&igrave; i&#774; ï&iuml; œ&#x153; &x2169;
ó&oacute; ō&omacr; ò&ograve; o&#774; ö&ouml; &forall; &x216c;
ú&uacute; ū&umacr; ù&ugrave; u&#774; ü&uuml; &hbar; &x216d;
&nabla; &#x216e;
Ψ&Psi; &x216f;
ñ = &ntilde;
Ñ = &Ntilde;

The best way to add a vinculum (times 1,000) over a ROMAN NUMERAL is to use an overline.
<span style="font: 20px times; text-decoration: overline;">&#x216c;</span>

= 50 ˣ 1,000 = 50,000

(中文) Chinese ⇄ Unicode (&#20013;&#25991;)