CSS Quick Reference

Unplugged's picture


CSS Quick Reference 2.0


A collection of CSS snippets for quick access.

Please remember to always put your css ! under the cut !
CSS not working? Make sure the Input Format is set to BBCode.

Looking for Free CSS and more? Check the Link Collection and WhenDeerAttack's "TEF Coding and You" guide.






Base Templates



Free to use and alter! No need for credit.
White 1 Black 1
<center><a href="http://endlessforest.org/community/">home</a> × <a href="http://endlessforest.org/community/tracker">recent</a> × <a href="http://endlessforest.org/community/current-map-forest">map</a></center>

Lorem Ipsum

<style>.preview{background:none;border:none} #header-region, #header img, .sidebar, .breadcrumb,#squeeze h2,.comment .clear-block .content .clear-block, div.status{display:none} #wrapper #container #center .right-corner .left-corner{position:relative;margin:auto;padding:0px}#wrapper #container #center{float:none;position:absolute;top:0px}body.sidebar-left #center, body.sidebar-left #squeeze{margin-left:0px} .comment .content{margin-left:20px} .node .picture, .node .submitted{display:none} .node{border-bottom:none} #tabs-wrapper{border-bottom:none} tbody{border-top:none} #wrapper #container #center{position:absolute;top:0px} .comment{margin:20px 0px;padding:10px 20px} .node .links, .comment .links{text-align:center} ul.primary{position:absolute;top:0px;left:0px} #forum, #comments{margin:0px} .node .content{margin:0px} table{width:auto;margin:0;} tbody{border:none}</style>

<style>/*
BLOG WIDTH + BLOG BG COLOR
*/#wrapper #container #center .right-corner .left-corner{width:700px;background:#F7F7F7}/*
MAIN BG COLOR
*/body{background:#ffffff; font:10px verdana}/*
COMMENT BG COLOR
*/.comment.odd,tr.odd,.comment.even,tr.even{background:#ededed}/*
COMMENT BORDER
*/.comment{border:none}/*
TEXT COLOR
*/body{color:#333333}/*
LINK COLOR
*/a:link, a:visited, ul.pager a{color:#666666}/*
LINK HOVER COLOR
*/a:link:hover, a:visited:hover, ul.pager a:hover{color:#999999; text-decoration:none}/*
NEW COLOR
*/.new{color:#999999}/*
EDIT + REPLY BACKGROUND
*/.comment div.links{background:none}/*
TIME & DATE STYLING
*/span.submitted{color:#999999}/*
COMMENT PICTURES
*/.comment .picture{opacity:0.3; transition:all 0.6s; -moz-transition:all 0.6s; -webkit-transition:all 0.6s} .comment .picture:hover{opacity:1}/*
*/</style>
<center><a href="http://endlessforest.org/community/">home</a> × <a href="http://endlessforest.org/community/tracker">recent</a> × <a href="http://endlessforest.org/community/current-map-forest">map</a></center>

Lorem Ipsum

<style>.preview{background:none;border:none} #header-region, #header img, .sidebar, .breadcrumb,#squeeze h2,.comment .clear-block .content .clear-block, div.status{display:none} #wrapper #container #center .right-corner .left-corner{position:relative;margin:auto;padding:0px}#wrapper #container #center{float:none;position:absolute;top:0px}body.sidebar-left #center, body.sidebar-left #squeeze{margin-left:0px} .comment .content{margin-left:20px} .node .picture, .node .submitted{display:none} .node{border-bottom:none} #tabs-wrapper{border-bottom:none} tbody{border-top:none} #wrapper #container #center{position:absolute;top:0px} .comment{margin:20px 0px;padding:10px 20px} .node .links, .comment .links{text-align:center} ul.primary{position:absolute;top:0px;left:0px} #forum, #comments{margin:0px} .node .content{margin:0px} table{width:auto;margin:0;} tbody{border:none}</style>

<style>/*
BLOG WIDTH + BLOG BG COLOR
*/#wrapper #container #center .right-corner .left-corner{width:700px;background:#0C0C0C}/*
MAIN BG COLOR
*/body{background:#000000; font:10px verdana}/*
COMMENT BG COLOR
*/.comment.odd,tr.odd,.comment.even,tr.even{background:#111111}/*
COMMENT BORDER
*/.comment{border:none}/*
TEXT COLOR
*/body{color:#555555}/*
LINK COLOR
*/a:link, a:visited, ul.pager a{color:#333333}/*
LINK HOVER COLOR
*/a:link:hover, a:visited:hover, ul.pager a:hover{color:#666666; text-decoration:none}/*
NEW COLOR
*/.new{color:#212121}/*
EDIT + REPLY BACKGROUND
*/.comment div.links{background:none}/*
TIME & DATE STYLING
*/span.submitted{color:#212121}/*
COMMENT PICTURES
*/.comment .picture{opacity:0.3; transition:all 0.6s; -moz-transition:all 0.6s; -webkit-transition:all 0.6s} .comment .picture:hover{opacity:1}/*
*/</style>
White 2 Black 2
<center><a href="http://endlessforest.org/community/">home</a> × <a href="http://endlessforest.org/community/tracker">recent</a> × <a href="http://endlessforest.org/community/current-map-forest">map</a></center>

Lorem Ipsum

<style>.preview{background:none;border:none} #header-region, #header img, .sidebar, .breadcrumb,#squeeze h2,.comment .clear-block .content .clear-block, div.status{display:none} #wrapper #container #center .right-corner .left-corner{position:relative;margin:auto;padding:0px;background:none}#wrapper #container #center{float:none;position:absolute;top:0px;}body.sidebar-left #center, body.sidebar-left #squeeze{margin-left:0px} .comment .content{margin-left:20px} .node .picture, .node .submitted{display:none} .node{border-bottom:none} #tabs-wrapper{border-bottom:none} tbody{border-top:none} #wrapper #container #center{position:absolute;top:0px} .comment{margin:20px 0px;padding:10px 20px} .node .links, .comment .links{text-align:center} ul.primary{position:absolute;top:0px;left:0px} #forum, #comments{margin:0px} .node .content{margin:0px} table{width:auto;margin:0;} tbody{border:none}</style>

<style>/*
BLOG WIDTH + BLOG BG COLOR
*/#wrapper #container #center .right-corner .left-corner{width:700px} .node{background:#ededed}/*
MAIN BG COLOR
*/body{background:#ffffff; font:10px verdana}/*
COMMENT BG COLOR
*/.comment.odd,tr.odd,.comment.even,tr.even{background:#ededed}/*
COMMENT BORDER
*/.comment{border:none}/*
TEXT COLOR
*/body{color:#333333}/*
LINK COLOR
*/a:link, a:visited, ul.pager a{color:#666666}/*
LINK HOVER COLOR
*/a:link:hover, a:visited:hover, ul.pager a:hover{color:#999999; text-decoration:none}/*
NEW COLOR
*/.new{color:#999999}/*
EDIT + REPLY BACKGROUND
*/.comment div.links{background:none}/*
TIME & DATE STYLING
*/span.submitted{color:#999999}/*
COMMENT PICTURES
*/.comment .picture{opacity:0.3; transition:all 0.6s; -moz-transition:all 0.6s; -webkit-transition:all 0.6s} .comment .picture:hover{opacity:1}/*
*/</style>
<center><a href="http://endlessforest.org/community/">home</a> × <a href="http://endlessforest.org/community/tracker">recent</a> × <a href="http://endlessforest.org/community/current-map-forest">map</a></center>

Lorem Ipsum

<style>.preview{background:none;border:none} #header-region, #header img, .sidebar, .breadcrumb,#squeeze h2,.comment .clear-block .content .clear-block, div.status{display:none} #wrapper #container #center .right-corner .left-corner{position:relative;margin:auto;padding:0px;background:none}#wrapper #container #center{float:none;position:absolute;top:0px;}body.sidebar-left #center, body.sidebar-left #squeeze{margin-left:0px} .comment .content{margin-left:20px} .node .picture, .node .submitted{display:none} .node{border-bottom:none} #tabs-wrapper{border-bottom:none} tbody{border-top:none} #wrapper #container #center{position:absolute;top:0px} .comment{margin:20px 0px;padding:10px 20px} .node .links, .comment .links{text-align:center} ul.primary{position:absolute;top:0px;left:0px} #forum, #comments{margin:0px} .node .content{margin:0px} table{width:auto;margin:0;} tbody{border:none}</style>

<style>/*
BLOG WIDTH + BLOG BG COLOR
*/#wrapper #container #center .right-corner .left-corner{width:700px} .node{background:#0C0C0C}/*
MAIN BG COLOR
*/body{background:#000000; font:10px verdana}/*
COMMENT BG COLOR
*/.comment.odd,tr.odd,.comment.even,tr.even{background:#111111}/*
COMMENT BORDER
*/.comment{border:none}/*
TEXT COLOR
*/body{color:#555555}/*
LINK COLOR
*/a:link, a:visited, ul.pager a{color:#333333}/*
LINK HOVER COLOR
*/a:link:hover, a:visited:hover, ul.pager a:hover{color:#666666; text-decoration:none}/*
NEW COLOR
*/.new{color:#212121}/*
EDIT + REPLY BACKGROUND
*/.comment div.links{background:none}/*
TIME & DATE STYLING
*/span.submitted{color:#212121}/*
COMMENT PICTURES
*/.comment .picture{opacity:0.3; transition:all 0.6s; -moz-transition:all 0.6s; -webkit-transition:all 0.6s} .comment .picture:hover{opacity:1}/*
*/</style>

Blank Slate Base


WhiteBlack
<center>

text

</center>



<style>.preview{background:none;border:none} #header-region, #header img, .sidebar, .breadcrumb,#squeeze h2,.comment .clear-block .content .clear-block, div.status{display:none} #wrapper #container #center .right-corner .left-corner{position:relative;margin:auto;padding:0px;background:none}#wrapper #container #center{float:none;position:absolute;top:0px;}body.sidebar-left #center, body.sidebar-left #squeeze{margin-left:0px; padding:0px} .comment .content{margin-left:20px} .node .picture, .node .submitted{display:none} .node{border-bottom:none} #tabs-wrapper{border-bottom:none; padding:0} tbody{border-top:none} #wrapper #container #center{position:absolute;top:0px} .comment{margin:20px 0px;padding:10px 20px} .node .links, .comment .links{text-align:center} ul.primary{position:absolute;top:0px;left:0px} .node .content{margin:0px} table{width:auto;margin:0;} tbody{border:none}#wrapper #container #center .right-corner .left-corner{width:100%;} .node{background:none; margin:0; padding:0} body{overflow-x:hidden}</style>

<style> body{background:#fff;} .comment.odd,tr.odd,.comment.even,tr.even{background:#ebebeb} .comment{border:none} body{color: #999; font:10px verdana} a:link, a:visited, ul.pager a{color:#666; transition:all 1s;} a:link:hover, a:visited:hover, ul.pager a:hover{color:#888; text-decoration:none} .new{color:#999} .comment div.links{background:none} span.submitted{color:#999}</style>
<center>

text

</center>



<style>.preview{background:none;border:none} #header-region, #header img, .sidebar, .breadcrumb,#squeeze h2,.comment .clear-block .content .clear-block, div.status{display:none} #wrapper #container #center .right-corner .left-corner{position:relative;margin:auto;padding:0px;background:none}#wrapper #container #center{float:none;position:absolute;top:0px;}body.sidebar-left #center, body.sidebar-left #squeeze{margin-left:0px; padding:0px} .comment .content{margin-left:20px} .node .picture, .node .submitted{display:none} .node{border-bottom:none} #tabs-wrapper{border-bottom:none; padding:0} tbody{border-top:none} #wrapper #container #center{position:absolute;top:0px} .comment{margin:20px 0px;padding:10px 20px} .node .links, .comment .links{text-align:center} ul.primary{position:absolute;top:0px;left:0px} .node .content{margin:0px} table{width:auto;margin:0;} tbody{border:none}#wrapper #container #center .right-corner .left-corner{width:100%;} .node{background:none; margin:0; padding:0} body{overflow-x:hidden}</style>

<style> body{background:#000;} .comment.odd,tr.odd,.comment.even,tr.even{background:#111} .comment{border:none} body{color: #333; font:10px verdana} a:link, a:visited, ul.pager a{color:#666; transition:all 1s;} a:link:hover, a:visited:hover, ul.pager a:hover{color:#888; text-decoration:none} .new{color:#333} .comment div.links{background:none} span.submitted{color:#000}</style>






Lorem Ipsum Texts


But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness.

No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.

Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure.

To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it?

But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?

On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu.

In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus.

Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc,

The European languages are members of the same family. Their separate existence is a myth. For science, music, sport, etc, Europe uses the same vocabulary. The languages only differ in their grammar, their pronunciation and their most common words. Everyone realizes why a new common language would be desirable: one could refuse to pay expensive translators.

To achieve this, it would be necessary to have uniform grammar, pronunciation and more common words. If several languages coalesce, the grammar of the resulting language is more simple and regular than that of the individual languages. The new common language will be more simple and regular than the existing European languages. It will be as simple as Occidental; in fact, it will be Occidental.

To an English person, it will seem like simplified English, as a skeptical Cambridge friend of mine told me what Occidental is. The European languages are members of the same family. Their separate existence is a myth. For science, music, sport, etc, Europe uses the same vocabulary. The languages only differ in their grammar, their pronunciation and their most common words. Everyone realizes why a new common language would be desirable: one could refuse to pay expensive translators.

To achieve this, it would be necessary to have uniform grammar, pronunciation and more common words. If several languages coalesce, the grammar of the resulting language is more simple and regular than that of the individual languages. The new common language will be more simple and regular than the existing European languages. It will be as simple as Occidental; in fact, it will be Occidental.

To an English person, it will seem like simplified English, as a skeptical Cambridge friend of mine told me what Occidental is. The European languages are members of the same family. Their separate existence is a myth. For science, music, sport, etc, Europe uses the same vocabulary. The languages only differ in their grammar, their pronunciation and their most common words. Everyone realizes why a new common language would be desirable: one could refuse to pay expensive translators. To achieve this, it would be necessary to have uniform grammar, pronunciation and more common words. If several languages coalesce, the grammar of the resulting language is more simple and regular than that of the individual languages. The new common language will be more simple and regular than the existing European languages. It will be as simple as

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth.

Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar. The Big Oxmox advised her not to do so, because there were thousands of bad Commas, wild Question Marks and devious Semikoli, but the Little Blind Text didn’t listen. She packed her seven versalia, put her initial into the belt and made herself on the way.

When she reached the first hills of the Italic Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line Lane. Pityful a rethoric question ran over her cheek, then she continued her way. On her way she met a copy.

The copy warned the Little Blind Text, that where it came from it would have been rewritten a thousand times and everything that was left from its origin would be the word "and" and the Little Blind Text should turn around and return to its own, safe country. But nothing the copy said could convince her and so it didn’t take long until a few insidious Copy Writers ambushed her, made her drunk with Longe and Parole and dragged her into their agency, where they abused her for their projects again and again. And if she hasn’t been rewritten, then they are still using her.

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar. The Big Oxmox advised her not to do so, because there were thousands of bad Commas, wild Question Marks and devious Semikoli, but the Little Blind Text didn’t listen. She packed her seven versalia, put her initial into the belt and made herself on the way. When she reached the first hills of the Italic Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline





Div Base


<div style="width:250px;height:250px;overflow:auto;text-align:left;color:#ffffff;border:1px solid #000000;border-radius:10px;padding:20px;">

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam <a href="#">nonumy</a> eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.

Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
</div>


Hidden Scrollbars



All edits should be made in the "overflow:hidden" div. Leave the "overflow:auto" div untouched.

<div style="width:250px;height:250px;overflow:hidden;text-align:left;color:#ffffff;border:1px solid #000000;border-radius:10px;padding:20px;"><div style="width:100%;height:100%;overflow:auto;padding-right:100px;">

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam <a href="#">nonumy</a> eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.

Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
</div></div>






Div Effects



Rounded Corners
Detailed information: W3Schools Article
Property:
border-radius: 25px



Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.


<div style="width:250px;height:250px;overflow:auto;text-align:left;color:#ffffff;border:1px solid #000000;border-radius:25px;padding:20px;">

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam <a href="#">nonumy</a> eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
</div>


border-radius:25px 50px 10px 5px
top left > top right > bottom right > bottom left


Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.


<div style="width:250px;height:250px;overflow:auto;text-align:left;color:#ffffff;border:1px solid #000000;border-radius:25px 50px 10px 5px;padding:20px;">

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam <a href="#">nonumy</a> eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
</div>


Box-Shadow
Detailed information: W3Schools Article
First number: horizontal offset
Second number: vertical offset
Third number: blur amount (optional)
Fourth number: shadow spread (optional)
box-shadow: 0 0 10px
Text here


<div style="width:250px;height:150px;overflow:auto;text-align:left;color:#ffffff;border:1px solid #000000;border-radius:25px 50px 10px 5px;padding:20px; box-shadow:0 0 10px #000000">Text here</div>


Inset Shadow
box-shadow: 0 0 10px inset
Text here


<div style="width:250px;height:150px;overflow:auto;text-align:left;color:#ffffff;border:1px solid #000000;border-radius:25px 50px 10px 5px;padding:20px; box-shadow:0 0 10px #000000 inset">Text here</div>


Multiple box-shadows
Multiple shadows are separated by commas.
box-shadow: 0 0 10px #000000 inset, 0 0 10px #000000, 0 0 20px #ff0000
Text here


<div style="width:250px;height:150px;overflow:auto;text-align:left;color:#ffffff;border:1px solid #000000;border-radius:25px 50px 10px 5px;padding:20px; box-shadow:0 0 10px #000000 inset, 0 0 10px #000000, 0 0 20px #ff0000">Text here</div>


Shapes
More shapes here

Circle

<div style="width:100px;height:100px; border-radius:100px; overflow:hidden;background:#000000"></div>






Navigation Links



tracker
<a href="http://endlessforest.org/community/tracker">tracker</a>


home × recent × map
<a href="http://endlessforest.org/community/">home</a> × <a href="http://endlessforest.org/community/tracker">recent</a> × <a href="http://endlessforest.org/community/current-map-forest">map</a>


H
R
M

<a href="http://endlessforest.org/community/">H</a>
<a href="http://endlessforest.org/community/tracker">R</a>
<a href="http://endlessforest.org/community/current-map-forest">M</a>


home × recent × map

HTML Part:
<span class="rotate"><a href="http://endlessforest.org/community/">home</a> × <a href="http://endlessforest.org/community/tracker">recent</a> × <a href="http://endlessforest.org/community/current-map-forest">map</a></span>

CSS Part:
<style>.rotate{position:relative;display:inline-block;transform:rotate(-90deg); -moz-transform:rotate(-90deg);-webkit-transform:rotate(-90deg)}</style>






Tooltips



HoverHere is the tooltip text.



HTML Part:
<div id="tooltips">Hover<span class="tooltiptext">Here is the tooltip text.</span></div>

CSS Part:
<style>#tooltips{display:inline-block; position:relative; border-bottom: 1px dotted;} #tooltips .tooltiptext{width:250px; position:absolute; padding:5px; z-index:25; top: 100%; left:50%; margin-left: -130px; background: rgba(0,0,0,0.5); color: #ffffff; opacity:0; transition: all 0.2s; text-align: center; visibility:hidden} #tooltips:hover .tooltiptext{opacity: 1; visibility:visible}</style>


PPhysical
|
MMental
|
EEmotional
|
NThis is a longer text. This is a longer text. This is



HTML Part:
<div id="status">P<span class="statustext">Physical</span></div> | <div id="status">M<span class="statustext">Mental</span></div> | <div id="status">E<span class="statustext">Emotional</span></div> | <div id="status">N<span class="statustext">This is a longer text. This is a longer text. This is</span></div>

CSS Part:
<style>#status{display:inline-block; position:relative; color: #ffffff} #status .statustext{width:150px; position:absolute; padding:5px; z-index:25; top: 100%; left:50%; margin-left: -80px; background: rgba(0,0,0,0.5); color: #ffffff; opacity:0; transition: all 0.2s; text-align: center; border-radius:5px;visibility:hidden} #status:hover .statustext{opacity: 1;visibility:visible}</style>


Status Bars









Disclaimers



Version 1: Display on Hover

HoverHere is the tooltip text.



HTML Part:
<div id="dischover">Hover<span class="dischovertext">Here is the tooltip text.</span></div>

CSS Part:
<style>#dischover{display:inline-block; position:relative; border-bottom: 1px dotted;} #dischover .dischovertext{width:250px; position:absolute; padding:5px; z-index:25; top: 100%; left:50%; margin-left: -130px; background: rgba(0,0,0,0.5); color: #ffffff; opacity:0; transition: all 0.2s; text-align: center; visibility:hidden} #dischover:hover .dischovertext{opacity: 1; visibility:visible}</style>



Version 2: Display Toggle
disclaimer


HTML Part:
<a href="javascript:;" onmousedown="if(document.getElementById('disclaimer').style.display == 'none') { document.getElementById('disclaimer').style.display = 'block'; } else { document.getElementById('disclaimer').style.display = 'none'; }">disclaimer</a>
<div id="disclaimer" style="display:none">disclaimer text goes here</div>

CSS Part:
<style> #disclaimer{width:250px; text-align:left; padding:20px; background: rgba(0,0,0,0.5); border:1px solid rgba(255,255,255,0.5); border-radius:10px; font-size:10px; transition:all 1s} </style>


Version 3: Display Toggle (animated opacity)

disclaimer
disclaimer text goes here



HTML Part:
<a href="javascript:;" onmousedown="if(document.getElementById('disclaimer2').style.opacity == '0') { document.getElementById('disclaimer2'). style.opacity = '1'; } else { document.getElementById('disclaimer2'). style.opacity = '0'; }">disclaimer</a>
<div id="disclaimer2" style="opacity:0">disclaimer text goes here</div> 

CSS Part:
<style> #disclaimer2{width:250px; text-align:left; padding:20px; background: rgba(0,0,0,0.5); border:1px solid rgba(255,255,255,0.5); border-radius:10px; font-size:10px; transition:all 1s} </style>


Version 4:Display Toggle (animated height)
"style.height = '60px';" must be the same height as #disclaimer3 height for accurate transitions!

disclaimer
disclaimer text goes here



HTML Part:
<a href="javascript:;" onmousedown="if(document.getElementById('discwrapper'). style.height == '0px') { document.getElementById('discwrapper'). style.height = '60px'; } else { document.getElementById('discwrapper'). style.height = '0px'; }">disclaimer</a>
<div id="discwrapper" style="height:0px;overflow:hidden;"><div id="disclaimer3" style="display:block">disclaimer text goes here</div></div> 

CSS Part:
<style> #disclaimer3{width:250px; text-align:left; padding:20px; background: rgba(0,0,0,0.5); border:1px solid rgba(255,255,255,0.5); border-radius:10px; font-size:10px; transition:all 1s} #discwrapper{transition:height 2s}</style>






Overlapping Images


Position the image using top, left, right, bottom properties.
If using position:relative, use margin-bottom/margin-top to negate whitespace left from the positioning.
<img src="IMG1" style="position:relative; pointer-events:none; top:-100px; left:450px; margin-bottom:-100px;">


Image Transitions


IMG1 = first image
IMG2 = second image
either change "width:100px; height:100px" to the width and height of your images or you can leave them out altogether.
position:relative can be changed to absolute or fixed if needed, but should not be removed completely.

HTML part:
<div class="transition"><img src="IMG1"><img src="IMG2"></div>

CSS Part:
<style>.transition{position:relative;width:100px;height:100px} .transition img{position:absolute;top:0;left:0} .transition img:first-child{opacity:1; transition:all 1s} .transition img:last-child{opacity:0; transition: all 1s} .transition:hover img:first-child{opacity:0} .transition:hover img:last-child{opacity:1}</style>





There are many different methods to do tabs, each of them having their advantages and disadvantages. Which method you go along with largely depends on preference. For information on usage, please refer to the respective OPs.

Regular Tabs



Hraeth Method (OP)
<a href="javascript:;" onmousedown="if(document.getElementById('tab1').style.display == 'none') { document.getElementById('tab1').style.display = 'block'; document.getElementById('tab2').style.display = 'none'; document.getElementById('tab3').style.display = 'none'; document.getElementById('tab4').style.display = 'none';  document.getElementById('tab5').style.display = 'none'; }"><!--
 
--> TAB 1 <!--
 
--> </a> | <a href="javascript:;" onmousedown="if(document.getElementById('tab2').style.display == 'none') { document.getElementById('tab2').style.display = 'block'; document.getElementById('tab1').style.display = 'none'; document.getElementById('tab3').style.display = 'none'; document.getElementById('tab4').style.display = 'none';  document.getElementById('tab5').style.display = 'none'; }"><!--
 
--> TAB 2 <!--
 
--> </a> | <a href="javascript:;" onmousedown="if(document.getElementById('tab3').style.display == 'none') { document.getElementById('tab3').style.display = 'block'; document.getElementById('tab1').style.display = 'none'; document.getElementById('tab2').style.display = 'none'; document.getElementById('tab4').style.display = 'none';  document.getElementById('tab5').style.display = 'none'; }"><!--
 
--> TAB 3 <!--
 
--> </a> | <a href="javascript:;" onmousedown="if(document.getElementById('tab4').style.display == 'none') { document.getElementById('tab4').style.display = 'block'; document.getElementById('tab1').style.display = 'none'; document.getElementById('tab2').style.display = 'none'; document.getElementById('tab3').style.display = 'none';  document.getElementById('tab5').style.display = 'none'; }"><!--
 
--> TAB 4 <!--
 
--> </a> | <a href="javascript:;" onmousedown="if(document.getElementById('tab5').style.display == 'none') { document.getElementById('tab5').style.display = 'block'; document.getElementById('tab1').style.display = 'none'; document.getElementById('tab2').style.display = 'none'; document.getElementById('tab3').style.display = 'none';  document.getElementById('tab4').style.display = 'none'; }"> <!--
 
--> TAB 5 <!--
 
--> </a>

<div id="tab1" style="display:block; width:250px; height:100px; overflow:auto; text-align:left; color:#ffffff; border:1px solid #000000; border-radius:10px; padding:20px">TAB 1</div> <!--
 
--> <div id="tab2" style="display:none; width:250px; height:100px; overflow:auto; text-align:left; color:#ffffff; border:1px solid #000000; border-radius:10px; padding:20px">TAB 2</div> <!--
 
--> <div id="tab3" style="display:none; width:250px; height:100px; overflow:auto; text-align:left; color:#ffffff; border:1px solid #000000; border-radius:10px; padding:20px">TAB 3</div> <!--
 
--> <div id="tab4" style="display:none; width:250px; height:100px; overflow:auto; text-align:left; color:#ffffff; border:1px solid #000000; border-radius:10px; padding:20px">TAB 4</div> <!--
 
--> <div id="tab5" style="display:none; width:250px; height:100px; overflow:auto; text-align:left; color:#ffffff; border:1px solid #000000; border-radius:10px; padding:20px">TAB 5</div>


AlisonRobin Method (OP)
<a href="javascript:;" onmousedown="for(var ii=0;ii<5;ii++){document.getElementsByClassName('tab')[ii].style.display='none';};document.getElementById('one').style.display='inline';">Show One</a> / <a href="javascript:;" onmousedown="for(var ii=0;ii<5;ii++){document.getElementsByClassName('tab')[ii].style.display='none';};document.getElementById('two').style.display='inline';">Show Two</a> / <a href="javascript:;" onmousedown="for(var ii=0;ii<5;ii++){document.getElementsByClassName('tab')[ii].style.display='none';};document.getElementById('three').style.display='inline';">Show Three</a> / <a href="javascript:;" onmousedown="for(var ii=0;ii<5;ii++){document.getElementsByClassName('tab')[ii].style.display='none';};document.getElementById('four').style.display='inline';">Show Four</a> / <a href="javascript:;" onmousedown="for(var ii=0;ii<5;ii++){document.getElementsByClassName('tab')[ii].style.display='none';};document.getElementById('five').style.display='inline';">Show Five</a>

<span id="one" class="tab" style="display:inline;">One</span><span id="two" class="tab" style="display:none;">Two</span><span id="three"class="tab" style="display:none;">Three</span><span id="four"class="tab" style="display:none;">Four</span><span id="five"class="tab" style="display:none;">Five</span>



Scrolling Tabs


(OP)
Horizontal Scroll
<style>:root{--tab-width: 500px; --tab-height:300px; --tab-padding:20px; --tab-margin:20px} .tab{display:inline-block; box-sizing:border-box;background:#000000; padding: var(--tab-padding); width:var(--tab-width); height: var(--tab-height); margin-right:var(--tab-margin); position:relative} #tabswrapper{width:var(--tab-width); height: var(--tab-height); overflow:hidden; position:relative} #tabmover{width:9999px;position:relative; left:0px; transition: all 2s}</style>

<a href="javascript:;" onclick="document.getElementById('tabmover').style.left = '0px' ">One</a> <a href="javascript:;" onclick = "document.getElementById('tabmover').style.left = 'calc( 0px - var(--tab-width) - var(--tab-margin))'">Two</a> <a href="javascript:;" onclick="document.getElementById('tabmover').style.left = 'calc( 0px - 2* var(--tab-width) - 2*var(--tab-margin))'">Three</a> <a href="javascript:;" onclick="document.getElementById('tabmover').style.left = 'calc( 0px - 3*var(--tab-width)  - 3*var(--tab-margin))'">Four</a>  <a href="javascript:;" onclick="document.getElementById('tabmover').style.left = 'calc( 0px - 4*var(--tab-width)  - 4*var(--tab-margin))'">Five</a> 


<div id="tabswrapper"><div id="tabmover"><div class="tab">Uno</div><div class="tab">Dos</div><div class="tab">Tres</div><div class="tab">AYYYYY</div><div class="tab">Five</div></div></div>


Vertical Scroll
<style>:root{--tab-width: 500px; --tab-height:300px; --tab-padding:20px; --tab-margin:20px} .tab{display:block;box-sizing:border-box;background:#000000; padding: var(--tab-padding); width:var(--tab-width); height: var(--tab-height); margin-bottom:var(--tab-margin); position:relative} #tabswrapper{width:var(--tab-width); height: var(--tab-height); overflow:hidden; position:relative} #tabmover{height:9999px;position:relative; top:0px; transition: all 2s}</style>

<a href="javascript:;" onclick="document.getElementById('tabmover').style.top = '0px' ">One</a> <a href="javascript:;" onclick = "document.getElementById('tabmover').style.top = 'calc( 0px - var(--tab-height) - var(--tab-margin))'">Two</a> <a href="javascript:;" onclick="document.getElementById('tabmover').style.top = 'calc( 0px - 2* var(--tab-height) - 2*var(--tab-margin))'">Three</a> <a href="javascript:;" onclick="document.getElementById('tabmover').style.top = 'calc( 0px - 3*var(--tab-height)  - 3*var(--tab-margin))'">Four</a>  <a href="javascript:;" onclick="document.getElementById('tabmover').style.top = 'calc( 0px - 4*var(--tab-height)  - 4*var(--tab-margin))'">Five</a> 


<div id="tabswrapper"><div id="tabmover"><div class="tab">Uno</div><div class="tab">Dos</div><div class="tab">Tres</div><div class="tab">AYYYYY</div><div class="tab">Five</div></div></div>


Fading Tabs


(OP)
<style>.hidden{display: none;} #links a {display: inline; color: #2a93ff;/*your link color here*/} #box{background-color: #c5e0ff; /*your bg color here*/ border: 1px solid #141421; /*your border color here*/ color: #141421; /*your text color here*/ height: 240px; width: 290px; padding: 10px;}/*css3 animations*/@keyframes fadeout{0%{opacity:1;}100%{opacity:0;}} @keyframes fadein{0%{opacity:0;}100%{opacity:1;}} </style>

<div id="maincontainer"><div id="links"><a href="javascript:;" onmousedown="setTimeout(function(){document.getElementById('textcon').style.animation='fadeout 0.5s ease'; setTimeout(function () {document.getElementById('section0').innerHTML=document.getElementById('section1').innerHTML;document.getElementById('textcon').style.animation='fadein 0.5s ease';}, 500);}, 500);">Tab 1</a> <a href="javascript:;" onmousedown="setTimeout(function(){document.getElementById('textcon').style.animation='fadeout 0.5s ease'; setTimeout(function () {document.getElementById('section0').innerHTML=document.getElementById('section2').innerHTML;document.getElementById('textcon').style.animation='fadein 0.5s ease';}, 500);}, 500);">Tab 2</a> <a href="javascript:;" onmousedown="setTimeout(function(){document.getElementById('textcon').style.animation='fadeout 0.5s ease'; setTimeout(function () {document.getElementById('section0').innerHTML=document.getElementById('section3').innerHTML;document.getElementById('textcon').style.animation='fadein 0.5s ease';}, 500);}, 500);" >Tab 3</a> <a href="javascript:;" onmousedown="setTimeout(function(){document.getElementById('textcon').style.animation='fadeout 0.5s ease'; setTimeout(function () {document.getElementById('section0').innerHTML=document.getElementById('section4').innerHTML;document.getElementById('textcon').style.animation='fadein 0.5s ease';}, 500);}, 500);">Tab 4</a> <a href="javascript:;" onmousedown="setTimeout(function(){document.getElementById('textcon').style.animation='fadeout 0.5s ease'; setTimeout(function () {document.getElementById('section0').innerHTML=document.getElementById('section5').innerHTML;document.getElementById('textcon').style.animation='fadein 0.5s ease';}, 500);}, 500);">Tab 5</a></div><div id="box"><div id="textcon"><!--this box is what causes the text to fade in and out. Anything pasted into the sections below (headers, paragraphs, etc) will fade in and out along with it.--><div id="section0"><p>This is the default text that will show up.</p></div></div><div id="section1" class="hidden"><p>This is the first text that will show up. Could be the same as default, could be different. That's up to you.</p></div><div id="section2" class="hidden"><p>This is the second text that will show up.</p></div><div id="section3" class="hidden"><p>This is the third text that will show up.</p></div><div class="hidden" id="section4"><p>This is the fourth text that will show up.</p></div><div class="hidden"  id="section5"><p>This is the fifth text that will show up.</p></div></div></div>



Other Tabs


TBA






Accordions, Flipcards and Other Stuff



Accordion

<div id="accordion"><div class="tab"> <input id="tab-one" type="radio" name="tabs"> <label for="tab-one">Label One</label> <div class="tab-content"> <div class="inviscroll">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, architecto, explicabo perferendis nostrum, maxime impedit atque odit sunt pariatur illo obcaecati soluta molestias iure facere dolorum adipisci eum? Saepe, itaque.

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, architecto, explicabo perferendis nostrum, maxime impedit atque odit sunt pariatur illo obcaecati soluta molestias iure facere dolorum adipisci eum? Saepe, itaque.

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, architecto, explicabo perferendis nostrum, maxime impedit atque odit sunt pariatur illo obcaecati soluta molestias iure facere dolorum adipisci eum? Saepe, itaque.

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, architecto, explicabo perferendis nostrum, maxime impedit atque odit sunt pariatur illo obcaecati soluta molestias iure facere dolorum adipisci eum? Saepe, itaque.</div></div></div><!--


--><div class="tab"> <input id="tab-two" type="radio" name="tabs"> <label for="tab-two">Label Two</label> <div class="tab-content"> <div class="inviscroll">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, architecto, explicabo perferendis nostrum, maxime impedit atque odit sunt pariatur illo obcaecati soluta molestias iure facere dolorum adipisci eum? Saepe, itaque.</div></div></div><!--


--><div class="tab"> <input id="tab-three" type="radio" name="tabs"> <label for="tab-three">Label Three</label> <div class="tab-content"> <div class="inviscroll">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, architecto, explicabo perferendis nostrum, maxime impedit atque odit sunt pariatur illo obcaecati soluta molestias iure facere dolorum adipisci eum? Saepe, itaque.</div></div></div></div>


<style>/* --- MAINFRAME -- */ .tab,#accordion label{position:relative}#accordion label,#accordion label::after{display:block;line-height:3}.tab{width:100%;overflow:hidden}#accordion input{position:absolute;opacity:0;z-index:-1}#accordion label{padding:0 0 0 1em;cursor:pointer}.tab-content{max-height:0;overflow:hidden;-webkit-transition:max-height .5s;-o-transition:max-height .5s;transition:max-height .5s}.tab-content p{margin:1em}#accordion label::after{position:absolute;right:0;top:0;width:3em;height:3em;text-align:center;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s} .inviscroll{width:100%;overflow:auto;}/*

--- MAIN STYLING ---
*/ #accordion{width:600px} #accordion input:checked~.tab-content{max-height:15em} #accordion label{background:#000; color: #fff; font-weight:700;} .tab-content{background:#fff; color:#000;} .inviscroll{width:560px; max-height:10em; padding:20px; padding-right:100px}/*

--- ARROW STYLING ---
*/input[type=radio]+label::after{content:"\25BC"}input[type=radio]:checked+label::after{transform:rotateX(180deg)}</style>


Flipcards

<div class="flip-container" ontouchstart="this.classList.toggle('hover');"><div class="flipper"><div class="front" style="background: url('https://c1.staticflickr.com/3/2939/14175802163_c2ebbaae54_b.jpg') top left"><div class="ftext"><center><h4 style="color: #866">title 1</h4></center></div></div><div class="back"  style="overflow:hidden"><div class="btext" style="overflow:auto; padding-right: 100px; width: 260px; height: 400px">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. 

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. 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.</div>
</div></div></div></div>


<style> .flip-container { perspective: 1000px; } .flip-container:hover .flipper, .flip-container.hover .flipper { -webkit-transform: rotateY(180deg); -moz-transform: rotateY(180deg); transform: rotateY(180deg); } .flip-container, .front, .back { width: 280px;height: 480px;} .flipper { transition: 0.6s; transform-style: preserve-3d; position: relative; } .front, .back { backface-visibility: hidden; -webkit-backface-visibility: hidden; position: absolute; top: 0; left: 0; border-radius:20px; border: 2px solid #000} .front { z-index: 2; transform: rotateY(0deg); background: #000000;} .back { transform: rotateY(180deg); background: #111111; overflow:auto} tbody{border:none} table{width:auto;} .preview{background:none} .ftext, .btext{padding:20px; font: 10px verdana; color: #fff} h4{font-size: 42px; color: #fff}</style>






Google Fonts



https://fonts.google.com/
How To:
Image Tutorial
* Pick the fonts you like using the + button next to the font
* Use the Standard or @import link provided and copy the code

<link href="https://fonts.googleapis.com/css?family=Lato|Open+Sans" rel="stylesheet">

<span style="font:40px Lato">It was going to be a lonely trip back.</span>


Custom Fonts


Credit to C!ssy

http://www.dafont.com/
https://www.fontsquirrel.com/tools/webfont-generator
How To:
Image Tutorial
* Find a font you like and download it
* Upload the font to FontSquirrel's Webfont generator
* Upload the .woff, .woff2 etc files you receive to a file host of your choice, e.g. dropbox.
* Add the following code, replace the URL placeholders with your fonts and 'customFont' with the font name of your choice.

<span style="font:40px 'customFont'">It was going to be a lonely trip back.</span>

<style> @font-face {font-family: 'customFont';src: url('FONTURL.woff2') format('woff2'),url('FONTURL.woff') format('woff');font-weight: normal;font-style: normal;} </style>


Fonts with Background Images


Credit to C!ssy

It was going to be a lonely trip back.

<div style="font:24px Pacifico;background:url('https://68.media.tumblr.com/c4c1e5843e0af3523cb497469f2c95de/tumblr_ooxeme3G7O1uno395o1_540.gif'); background-size:cover background-clip:text; -webkit-background-clip:text; color:transparent">It was going to be a lonely trip back.</div>


Other Text Effects



Glowing Text
Text here
<span style="font:24px Georgia;font-style:italics;color:#ffffff;text-shadow:0 0 5px #ffffff">Text here</span>


Blurry Text
Text here
<span style="font:24px Georgia;font-style:italics;color:transparent;text-shadow:0 0 2px #ffffff">Text here</span>


Outlined Text
Text here
<span style="font:24px Georgia;font-style:italics;color:#ffffff;text-shadow:1px 1px 0 #000000, -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000">Text here</span>






Music Players




How to:
Simply upload the mp3 file to a host such as dropbox or kiwi6 and replace the URL.
<object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_mini.swf" width="100" height="20"> <param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_mini.swf" /> <param name="bgcolor" value="#000000" /> <param name="wmode" value="transparent"><param name="FlashVars" value="mp3=URLHERE" /></object>






Transitions


Transitions create smooth animations between two states of an element. Not every property is animatable, but using "all" generates a catch-all to transition any property that changes.
More detailed information on W3Schools.
General
<style>.something{transition:all 2s}</style>


Link transitions
<style>a:link, a:visited{color:#000000;transition:all 1s;} a:hover{color:#ffffff}</style>


Working with Keyframes
While too big of a topic to cover on here, keyframes are a very powerful tool for creating custom animations. Learn more about animations on W3Schools. animate.css makes use of keyframes. see below.

Gradients
Gradients can get very complex but are very useful even in their more simple application. I recommend looking into the Colorzilla Gradient Generator.
Check out UIGradients and Webgradients for beautiful and convenient premades.
Example: Radial body gradient
<style>body{background: rgb(56,33,20);
background: -moz-radial-gradient(center, ellipse cover, rgba(56,33,20,1) 0%, rgba(20,6,12,1) 100%); background: -webkit-radial-gradient(center, ellipse cover, rgba(56,33,20,1) 0%,rgba(20,6,12,1) 100%); background: radial-gradient(ellipse at center, rgba(56,33,20,1) 0%,rgba(20,6,12,1) 100%);}</style>


animate.css
Using animate.css, one can easily implement more sophisticated animations.
Website
Usage
Link the stylesheet using the code below.
Add the class animated to the element you want to animate as well as the class name of the animation you want. (see website) If you want an infinite animation, also add the class infinite to it.
e.g. <h1 class="animated infinite bounce">Example</h1>

Example


<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">






Quality Of Life



CSS & HTML Comments
Comments are used for text that is displayed in the source code, but not in the browser. This can be especially useful if you have larger amounts of content that you want to separate, but would be influenced by line breaks.

HTML
<!-- In HTML, comments are defined using these arrows. They can be single or multi-line. -->

CSS
Comments in CSS are often used to separate blocks of code. Since you cannot use line breaks in CSS on TEFc, they can immensely improve readability.

/* IN CSS, comments are written between a forward slash and asterisk. They can be single or multi-line. */

External CSS
External CSS has multiple advantages over inline CSS, one of them being that you're getting rid of a huge wall of text inside your own blog. The other big advantage is that you can format your CSS however you like, it doesn't all have to be written in one line, which majorly improves readability.
For a more detailed explanation on its usage, check out AlisonRobin's guide on external CSS and the W3 Article.

<link rel="stylesheet" type="text/css" href="URL">






Individual Codes


This section is unaltered from the first CSS Reference.

No top navigation bar



No TEFc Logo



No Sidebar



Centered blog
(only works in conjunction with blog width)



Blog width



Blog top to bottom 'flush'



No comment background



No comment borders



'spaced' comments



scrolling comments



centered comments



No Blog Title



No Signatures



No User images (comments)



No User images + date (blog)



Centered 'Add new comment' links



Details



No 'Preview' styling



No Title leaf



No "breadcrumb" link



No reads + no "username's blog"



No sidebar bullet points



'Edit' and 'Reply' styling



No blue line



No black line



No white line with tables



Textarea styling



Update box styling



Text



General text



Comment text



All links



All links on hover



Blog links



Blog links on hover



Sidebar links



Sidebar links on hover



Page number links + hover



"New" text



Blog Title



Sidebar Titles #1



Sidebar Titles #2







Thank you very much for this

Thank you very much for this <3
Starling's picture

Yeeees! Thankyou!

Yeeees! Thankyou!

.

.

Thank you !

Thank you !
Ourania's picture

*flops down here* Thank you!

*flops down here* Thank you!
Haru's picture

This is an awesome reference,

This is an awesome reference, I've been trying to find a couple of these codes for ages! Thank you ♥
1Antidote's picture

thank you, this is really

thank you, this is really useful~
Aivilo's picture

\o/ I /\ Yay!

\o/
I
/\
Yay!

Thanks for this, &hearts;.

Thanks for this, ♥.
Waning-Sun's picture

Thank you for this!

Thank you for this!
Avatar by Meadow. Siggy © Shey & Squeegie
Keyblade's picture

You're so kind to make this

You're so kind to make this for everyone. Thank you ♥

Thank you SO much!

Thank you SO much!
Reyy's picture

t.

t.
wocio's picture

This is awesome, thank you!

This is awesome, thank you! Smiling
Kohva's picture

Sorry for that, but I had to.



Sorry for that, but I had to. Almost my actual reaction to this blog.
Unplugged's picture

Aivilo: o7 Thanks so much

Aivilo: o7

Thanks so much guys! If there's some other specific code you need just ask! I will add it to the list Smiling
WonderfullySarcastic's picture

Unplugged, have you ever been

Unplugged, have you ever been told how amazing you are? Of course you have! Because you are ever so amazing ;u; <3
#1354
.
Dampir's picture

You are dear ? Thank you!

You are dear ♥ Thank you!
Calinka's picture

Excellent, inspiring me.

Excellent, inspiring me. Thanks a lot! (x

Thank you! *__*

Thank you! *__*
DinahMoon's picture

(No subject)

<3
Meadows's picture

This is absolutely fantastic,

This is absolutely fantastic, thank you <3! Should we credit you for the base?
Unplugged's picture

Meadow: Absolutely not, no.

Meadow: Absolutely not, no. Smiling

I also added the code for comment text colors under "Text". Figured it might be useful to have that at hand too.

(No subject)

<3

Thank you, Tuo and Kohva!

Hadou's picture

gah, this is perfect! thank

gah, this is perfect!
thank you so much for making this ouo
Skitties's picture

So very useful! Tracking for

So very useful! Tracking for reference.

Signature by Roo ♥
Mjrn's picture

Thank you so much.

Thank you so much.
Account previously Mjrn, returned to Veedeer.
Poppyflower's picture

Tracking! Thank you so much

Tracking! Thank you so much ♥
~Poppy~
Profile picture by ahimsa ♥


Pixel Wis by squeegie~

tracktracktrack thanks for

tracktracktrack

thanks for this, your posts are always so helpful!
Mothlett's picture

This is awesome ; A ;

This is awesome ; A ; ♥
Unplugged's picture

I added a random test div +

I added a random test div + table to copypaste and some text-shadow effects. Smiling

To do:
- border-radius
- box-shadow
Mis's picture

This is -amazingly-

This is -amazingly- practical. Thank you so much for doing this! ♥
Unplugged's picture

Thanks everyone! added some

Thanks everyone! added some info on box-shadows under "effects".

Sorry for not responding individually but I do appreciate all the responses! It's very encouraging to see.
Reyy's picture

Thanks for the template. It's

Thanks for the template. It's made me really proud of R's biography.
arme's picture

thanks~ =)

thanks~
=)
Melusine's picture

you are perfect ; u ; this is

you are perfect ; u ; this is so handy thank you so much!
RikkaChan's picture

Thanks for this!

Thanks for this!
Unplugged's picture

Thanks so much guys :}

Thanks so much guys :}
Aquilo's picture

Well I'll be! Thanks,

Well I'll be!
Thanks, definitely tracking this and saving it for later. c:
Player & Character Hub
Discord: Gulonine#4267

Oh, tracking. Been gone for

Oh, tracking.

Been gone for an age and when I got back, there's a whole new generation of beautiful CSS, haha.
Unplugged's picture

Pandoras-- I know right!! I

Pandoras-- I know right!! I come back, it's like, glowy fade-y animations everywhere! '_'

Speaking of which, I still need to note transitions here.
Poppy's picture

I just have to bump this

I just have to bump this
din's picture

ooh, wow yes plz. thank you

ooh, wow yes plz. thank you so much
Clare's picture

looove. &hearts;

looove. ♥
Iaurdagnire's picture

>>

>>



<<




This is all so handy. Tracking 5eva
Unplugged's picture

added code for overlapping

added code for overlapping images under "layout"

STILL haven't noted transitions!

-Bookmarks-

-Bookmarks-
goodvibration's picture

Ohhh thanks so much Unplugged

Ohhh thanks so much Unplugged for this!
Osmotious's picture

tracking this im sure going

tracking this im sure going to use it as a reference
add me on discord: Krisaur#9391
OrinocoFlow's picture

I can't remember if I tracked

I can't remember if I tracked this
You do not have a soul. You ARE a soul. You have a body.
~ C.S. Lewis