Ultimate Coding Resource - V.1

JINIPPYBASILE

Info


Created
2 months, 5 days ago
Creator
JINIPPYBASILE
Favorites
1199
Trade Listing
Free

Profile


Please send a comment if you would like something added to this coding reference! I want this to be the most complete coding guide possible.

Ultimate Coding Reference (HTML)

So basically, when I started coding, what really helped me was a lot of coding directories and forum questions that really taught me a lot about HTML coding on Toyhou.se. A lot of these guides have interesting tidbits of information, but since they are really spread apart, it's hard to easily refer to them.

Also, there are not a lot of guides out there for all the amazing code things you can do on TH! I thougth that perhaps, I can complie a code "masterlist", per se, so that all the HTML stuff that you can do on TH is easily accessible through a single point .
This is made for myself as I often like to refer to guides as I code so I can easily access certain stuff, but everyone is free to use this!

This guide is free to use and can be used by anyone! If you would like to support my coding/art work on TH, it would mean so much to me! Check out the link below for some of my coding work :D I have also added in some links to other sources that helped me learn to code- go check them out!! Also great thanks to people such as Aurorean, Elithian, H0NEYP1E, NebulaNumbat, and more for making previous guides on what was possible with Toyhou.se HTML! I learned so much from all of your vuides, and I hope to that this masterlist helps pay hommage to all your efforts!

This isn't a tutorial on how to learn to code, this is just a place where all the stuff you can do to code is compiled. Perhaps I will make a 100% beginner tutorial to get started on hobby coding in the future when my skills are further developed.

Update/addition log
26/02/2024, 9:00 PM PST: Minor fixes to code
26/02/2024, 6:45 PM PST: Coding masterlist V.1 is released publically, added table of contents
Additional resources/links
---

CLASSES

This basically tells the code what kind of thing you're making.

Cards
Card
<div class="card p-2"> Card </div>

Card with padding
<div class="card p-2"> Card with padding </div>

Card with non-rounded borders
<div class="card p-2 rounded-0">Card with non-rounded borders </div>

Primary card
<div class="card p-2 rounded-0"> Primary card </div>

#B00A65 Card
<div class="card p-2 card-outline-primary" style="border:4px solid #B00A65;"> #B00A65card </div>

Primary outline card
<div class="card p-2 rounded-0"> Primary outline card </div>

Card with #B00A65 color border and padding
<div class="card p-2 card-outline-primary" style="border:4px solid #B00A65;"> Card with ##B00A65 color border and padding </div>
Buttons

Primary button
<a class="btn btn-primary"> Primary button </a>

#B00A65 button
<a class="btn btn-primary" style="background-color: #B00A65;"> #B00A65 button </a>

Primary outline button
<a class="btn btn-outline-primary"> Primary outline button </a>

#B00A65 outline button
<a class="btn btn-outline-secondary" style="background-color: #B00A65;"> #B00A65 outline button </a>
Badges

Primary badge
<div class="badge badge badge-pill"> Primary badge </div>

Primary pill badge
<div class="badge badge-primary badge-pill"> Primary pill badge </div>

#B00A65 badge
<div class="badge badge-primary" style="background-color: #B00A65;"> #B00A65 badge </div>

#B00A65 badge
<div class="badge badge badge-pill" style="background-color: #B00A65;"> #B00A65 badge </div>
Loading bars

Progress bar (0%)
<div class="progress my-2 "><div class="progress-bar bg-warning" role="progressbar" aria-valuenow="0" aria-valuemin ="0" aria-valuemax="100" style="width:0%;height:16px"></div></div>

Progress bar (50%)
<div class="progress my-2 "> <div class="progress-bar bg-warning" role="progressbar" aria-valuenow="50" aria-valuemin ="0" aria-valuemax="100" style="width:50%;height:16px"> </div> </div>

Progress bar (100%)
<div class="progress my-2 "> <div class="progress-bar bg-warning" role="progressbar" aria-valuenow="100" aria-valuemin ="0" aria-valuemax="100" style="width:100%;height:16px"> </div> </div>

Note: If you want to change the percentage, just change the style='width: _____%;" to whatever numerical value you want.
Decimal values (ex. 10.7%, 56.9%,) work too!


Progress bar with text inside
50%
<div class="progress my-2"><div class="progress-bar bg-warning" role="progressbar" aria-valuenow="50" aria-valuemin ="0" aria-valuemax="100" style="width:50%;height:16px">50%</div></div> #B00A65 progress bar (50%)
<div class="progress my-2"> <div class="progress-bar" role="progressbar" aria-valuenow="50" aria-valuemin ="0" aria-valuemax="100" style="width:50%;height:16px;background-color:#B00A65;"> </div> </div>

Animated progress bar (50%)
<div class="progress my-2 rounded-0"> <div class="progress-bar bg-dark progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="50" aria-valuemin ="0" aria-valuemax="100" style="width:50%;height:16px"> </div></div>
Word ------ Word

Solid line
Category

Example
<div class="row no-gutters mt-n1"> <div class="col-auto ">Category </div> <div class="col mx-1"> <hr class="bg-transparent" style="border-width: 2px 0 0 0; border-style: solid; border-color: #607faa; opacity: .5;"> </div> <div class="col-auto">Example </div> </div>

Dotted line
Category

Example
<div class="row no-gutters mt-n1"> <div class="col-auto ">Category </div> <div class="col mx-1"> <hr class="bg-transparent" style="border-width: 2px 0 0 0; border-style: dotted; border-color: #607faa; opacity: .5;"> </div> <div class="col-auto">Example </div> </div>
Icons

Note: You can find coool icons at fontawsome.com.


Solid icon <i class="fa-solid fa-heart"></i>

Regular icon <i class="fa-regular fa-heart"></i>

Light icon <i class="fa-light fa-heart"></i>

Duotone icon <i class="fa-duotone fa-heart"></i>

Thin icon <i class="fa-thin fa-heart"></i>

Brand icon <i class="fa-brands fa-discord"></i>

Sizes of icons
<i class="fas fa-square fa-xs"></i>
<i class="fas fa-square fa-sm"></i>
<i class="fas fa-square fa-lg"></i>
<i class="fas fa-square fa-2x</i>
<i class="fas fa-square fa-4x"></i>
<i class="fas fa-square fa-8x"></i>
<i class="fas fa-square fa-10x"></i>
<span style="font-size:0.7rem"><i class="fas fa-square"></i></span>

Note: The last one corresponds to the font size you use, make sure to edit the style="font-size: __rem;" accordingly!


Icons as a bullet
  • This list has a FA icon as bullet.
  • Multiple FA icons can be used in the same list.
  • You can also use non-FA characters in this code!
<ul class="fa-ul">
<li><span class="fa-li"><i class="fal fa-square"></i></span>This list has a FA icon as bullet.</li>
<li><span class="fa-li"><i class="fal fa-circle"></i></span>Multiple FA icons can be used in the same list.</li>
<li><span class="fa-li">✓</span>You can also use non-FA characters in this code!</li>
</ul>

Rotating icons

<i class="fa-regular fa-cheese-swiss"></i>
<i class="fa-regular fa-cheese-swiss fa-rotate-90"></i>
<i class="fa-regular fa-cheese-swiss fa-rotate-180"></i>
<i class="fa-regular fa-cheese-swiss fa-rotate-270"></i>
<i class="fa-regular fa-cheese-swiss fa-flip-horizontal"></i>
<i class="fa-regular fa-cheese-swiss fa-flip-vertical"></i>
<i class="fa-regular fa-cheese-swiss fa-flip-both"></i> </div>

Animated icons icons
Spin

<i class="fas fa-cheese fa-spin"></i>

Pulse

<i class="fas fa-cheese fa-pulse"></i>

Beat

<i class="fas fa-cheese fa-beat"></i>

Fade

<i class="fas fa-cheese fa-fade"></i>

Beat-fade

<i class="fas fa-cheese fa-beat-fade"></i>

Bounce

<i class="fas fa-cheese fa-bounce"></i>

Flip

<i class="fas fa-cheese fa-flip"></i>

Shake

<i class="fas fa-cheese fa-shake"></i>

Stacking icons on top of each other

<span class="fa-stack fa-2x">
<i class="fa-solid fa-circle fa-stack-2x"></i>
<i class="fa-regular fa-cheese-swiss fa-stack-1x fa-inverse"></i>
</span>
<span class="fa-stack fa-2x">
<i class="fa-solid fa-circle fa-stack-2x" style="color:rgb(230,230,230)"></i>
<i class="fa-regular fa-cheese-swiss fa-stack-1x fa-inverse" style="color:rgb(0,0,0)"></i>
</span>
Mx-auto

card that uses mx-auto
<div class="card mx-auto">card that uses mx-auto </div>

Card that uses mx-auto for text

<div class="card"> <p class="mx-auto">Card that uses mx-auto for text </p> </div>

Note: play around with mx-___ values to change the margins of the text/cards!


Padding

Card with no padding
<div class="card p-0"> Card with p-1 padding </div>

Card with p-1 padding
<div class="card p-1"> Card with p-1 padding </div>

Card with p-2 padding
<div class="card p-2"> Card with p-2 padding </div>

Card with p-3 padding
<div class="card p-3"> Card with p-3 padding </div>

Card with p-4 padding
<div class="card p-4"> Card with p-4 padding </div>

Card with p-5 padding
<div class="card p-5"> Card with p-5 padding </div>
Margins

Card with mb-0 margin
Bottom element
<div class="card p-1 mb-0"> Card with mb-0 margin</div> <div class="card p-1 "> Bottom element</div>
Card with mb-1 margin
Bottom element
<div class="card p-1 mb-1 "> Card with mb-1 margin</div> <div class="card p-1 "> Bottom element</div>

Card with mb-2 margin
Bottom element
<div class="card p-1 mb-2"> Card with mb-2 margin</div> <div class="card p-1"> Bottom element</div>
Card with mb-3 margin
Bottom element
<div class="card p-1 mb-3 "> Card with mb-3 margin</div> <div class="card p-1 "> Bottom element</div>

Card with mb-4 margin
Bottom element
<div class="card p-1 mb-4 "> Card with mb-4 margin</div> <div class="card p-1 "> Bottom element</div>
Card with mb-5 margin
Bottom element
<div class="card p-1 mb-5"> Card with mb-5 margin</div> <div class="card p-1 "> Bottom element</div>
Rows

Row with gutters
Content
Content
<div class="row">
<div class="card p-1 col-6"> Content</div>
<div class="card p-1 col-6"> Content</div>
</div>

Row with no gutters
Content
Content
<div class="row no-gutters">
<div class="card p-1 col-6">Content</div>
<div class="card p-1 col-6">Content</div>
</div>
Columns

Note: If the sum of the columns in a row exceeds 12, the column will spill over into another row.
Also, columns may work weird on mobile, so refer to mobile/tablet friendliness sections for that kind of info.


col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-1
col-2
col-2
col-2
col-2
col-2
col-2
col-3
col-3
col-3
col-3
col-4
col-4
col-4
col-6
col-6
col-12
<div class="card col-1 p-1">col-1</div>
<div class="card col-2 p-1"> col-2</div>
<div class="card col-3 p-1"> col-3</div>
<div class="card col-4 p-1"> col-4</div>
<div class="card col-6 p-1"> col-6</div>
<div class="card col-12 p-1"> col-12</div>

col-1
col-11
<div class="row no-gutters">
<div class="card col-1 p-1">col-1 </div>
<div class="card col-11 p-1">col-11 </div>
</div>

col-2
col-10
<div class="row no-gutters">
<div class="card col-2 p-1">col-2 </div>
<div class="card col-10 p-1">col-10 </div>
</div>

col-3
col-9
<div class="card col-3 p-1">col-3</div>
<div class="card col-9 p-1">col-9</div>

col-4
col-8
<div class="card col-4 p-1">col-4 </div>
<div class="card col-8 p-1">col-8 </div>

col-5
col-7
<div class="card col-5 p-1">col-5 </div>
<div class="card col-7 p-1">col-7 </div>
Mobile + tablet friendliness

Note: If col-md-x and col-y are present, this means that col-md-x corresponds to the column on computer and col-y corresponds to the column on mobile.
If col-md-x and col-lg-y and col-z are present, this means that col-md-x refers to the column on tablet, col-lg-y refers to the column on computer, and col-z on mobile.


col-md-6 will be col-12 on mobile and col-6 on desktop

<div class="row no-gutters">
<div class="col-md-6 p-1">
<div class="bg-faded p-3">
<p align="center">col-md-6 will be col-12 on mobile and col-6 on desktop</p>
</div>
</div>
</div>

col-md-6 col-lg-8 col-4 will be col-6 on a tablet, col-8 on a desktop, and col-4 on mobile

<div class="row no-gutters">
<div class="col-md-6 col-4 p-1">
<div class="bg-faded p-3 h-100">
<p align="center">col-md-6 col-lg-8 col-4 will be col-6 on a tablet, col-8 on a desktop, and col-4 on mobile </p>
Justify content

Justify-content-around
Value 1 Value 2
Value 1 Value 2 Value 3
Value 1 Value 2 Value 3 Value 4
Value 1 Value 2 Value 3 Value 4 Value 5
<div class="d-flex justify-content-around">
<span>Value 1</span>
<span>Value 2</span>
<span>Value 3</span>
<span>Value 4</span>
<span>Value 5</span>
</div>

Justify-content-between
Value 1 Value 2
Value 1 Value 2 Value 3
Value 1 Value 2 Value 3 Value 4
Value 1 Value 2 Value 3 Value 4 Value 5
<div class="d-flex justify-content-between">
<span>Value 1 </span>
<span>Value 2 </span>
<span>Value 3 </span>
<span>Value 4 </span>
<span>Value 5 </span>
</div>
Tabs (vertical and horizontal)

Horizontal tabs
Text1
Text2
Text3
<ul class="nav nav-tabs card-header-tabs row mb-1">
<li class="col-md-4 mb-1"><a class="btn bg-faded btn-block btn-outline-secondary active" data-toggle="tab" href="#reg1">Tab1</a></li>
<li class="col-md-4 mb-1"><a class="btn bg-faded btn-block btn-outline-secondary" data-toggle="tab" href="#reg2">Tab2</a></li>
<li class="col-md-4 mb-1"><a class="btn bg-faded btn-block btn-outline-secondary" data-toggle="tab" href="#reg3">Tab3</a></li>
</ul>

<div class="tab-content">
<div class="tab-pane fade active show" id="reg1">
<div class="card p-3">
<div class="p-3">Text1 </div>
</div>
</div>

<div class="tab-pane fade" id="reg2">
<div class="card p-3">
<div class="p-3">Text2 </div>
</div>
</div>

<div class="tab-pane fade" id="reg3">
<div class="card p-3">
<div class="p-3">Text3 </div>
</div>
</div>
</div>

Vertical tabs
Text1
Text2
Text3
<div class="row no-gutters">
<div class="col-md-3 px-3 mb-3">
<ul class="nav nav-tabs row card-header-tabs">
<li class="col-12 mb-1"><a class="btn bg-faded btn-block btn-outline-secondary active" data-toggle="tab" href="#vert1">Tab1</a></li>
<li class="col-12 mb-1"><a class="btn bg-faded btn-block btn-outline-secondary" data-toggle="tab" href="#vert2">Tab2</a></li>
<li class="col-12 mb-1"><a class="btn bg-faded btn-block btn-outline-secondary" data-toggle="tab" href="#vert3">Tab3</a></li>

</ul>
</div>

<div class="col-md-9">
<div class="tab-content">
<div class="tab-pane fade active show" id="vert1">
<div class="card p-3">
<div class="p-3">Text1</div>
</div>
</div>

<div class="tab-pane fade" id="vert2">
<div class="card p-3">
<div class="p-3">Text2</div>
</div>
</div>

<div class="tab-pane fade" id="vert3">
<div class="card p-3">
<div class="p-3">Text3</div>
</div>
</div>

</div>
</div>
</div>
</div>
Collapsing text

Note: Rename the id to something specific for multiple collapses all at once, or the collapses will not show properly.


Toggle above collapse
Toggle above collapse text
<a href="#topcollapse" data-toggle="collapse">Toggle above collapse</a>
<div id="topcollapse" class="collapse">
Toggle above collapse text
</div>

Toggle underneath collapse text
Toggle underneath collapse
<div id="bottomcollapse" class="collapse">
Toggle underneath collapse text </div>
<a href="#bottomcollapse" data-toggle="collapse">Toggle underneath collapse</a>

Text between toggle and collapse
Text between the toggle and the collapse
Text of the collapse
<a href="#betweencollapse" data-toggle="collapse">Text between toggle and collapse</a>
<div>Text between the toggle and the collapse</div>
<div id="betweencollapse" class="collapse">
Text of the collapse
</div>
Carousels

Image carousel <div id="carousel1" class="carousel slide mx-auto p-1" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<div style="background-image:url(Link to photo);height:400px;background-position:center center;background-size:cover"></div>
</div>
<div class="carousel-item">
<div style="background-image:url(Link to photo);height:400px;background-position:center center;background-size:cover"></div>
</div>
<div class="carousel-item">
<div style="background-image:url(Link to photo);height:400px;background-position:center center;background-size:cover"></div>
</div>
</div>
</div>
Carousel with Controls <div id="carousel2" class="carousel slide mx-auto p-1" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<div style="background-image:url(Link to photo);height:400px;background-position:center center;background-size:cover"></div>
</div>
<div class="carousel-item">
<div style="background-image:url(Link to photo);height:400px;background-position:center center;background-size:cover"></div>
</div>
<div class="carousel-item">
<div style="background-image:url(Link to photo);height:400px;background-position:center center;background-size:cover"></div>
</div>
</div>
<a class="carousel-control-prev" href="#carousel2" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carousel2" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>


Carousel with indicators and controls <div id="carousel3" class="carousel slide mx-auto p-1" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carousel3" data-slide-to="0" class="active"></li>
<li data-target="#carousel3" data-slide-to="1"></li>
<li data-target="#carousel3" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<div style="background-image:url(Link to photo);height:400px;background-position:center center;background-size:cover"></div>
</div>
<div class="carousel-item">
<div style="background-image:url(Link to photo);height:400px;background-position:center center;background-size:cover"></div>
</div>
<div class="carousel-item">
<div style="background-image:url(Link to photo);height:400px;background-position:center center;background-size:cover"></div>
</div>
</div>
<a class="carousel-control-prev" href="#carousel3" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carousel3" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">Next</span>
</a>
</div>
Carousel with textbox <div id="carousel4" class="carousel slide mx-auto p-1" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<div style="background-image:url(Link to photo);height:400px;background-position:center center;background-size:cover"></div>
<div class="carousel-caption d-none d-md-block">
<div class="p-1" style="background-color:rgba(250,250,250,0.5);color:rgb(0,0,0)"><p> <span style="font-size:3rem">Title</span>
<br>Caption text</p></div>
</div>
</div>
<div class="carousel-item">
<div style="background-image:url(Link to photo);height:400px;background-position:center center;background-size:cover"></div>
<div class="carousel-caption d-none d-md-block">
<div class="p-1" style="background-color:rgba(250,250,250,0.5);color:rgb(0,0,0)"><p> <span style="font-size:3rem">Title</span>
<br>Caption text</p></div>
</div>
</div>
<div class="carousel-item">
<div style="background-image:url(Link to photo);height:400px;background-position:center center;background-size:cover"></div>
<div class="carousel-caption d-none d-md-block">
<div class="p-1" style="background-color:rgba(250,250,250,0.5);color:rgb(0,0,0)"><p> <span style="font-size:3rem">Title</span>
<br>Caption text</p></div>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#carousel4" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carousel4" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
Accordions


Note: By removing the 'show' part from "class="collapse show"", all collapses start out closed.


<div class="accordion md-accordion" id="allclosed" role="tablist" aria-multiselectable="true">
<div>
<div class="card p-3 mb-2" role="tab" id="headingclosed1">
<a data-toggle="collapse" data-parent="#allclosed" href="#allclosed1" aria-expanded="false" aria-controls="allclosed1">
<div class="mb-0">
Solo accordion
</div>
</a>
</div>
<div id="allclosed1" class="collapse" role="tabpanel" aria-labelledby="headingclosed1" data-parent="#allclosed">
<div class="card-body p-3">
Content
</div>
</div>
</div>
</div>
</div>


Initially loaded text in the first accordion collapse
Text in the second accordion collapse
Text in the third accordion collapse
<div class="accordion md-accordion" id="accordion" role="tablist" aria-multiselectable="true">
<div>
<div class="card p-3 mb-2" role="tab" id="heading1">
<a data-toggle="collapse" data-parent="#accordion" href="#accordion1" aria-expanded="true" aria-controls="accordion1">
<div class="mb-0">
First accordion
</div>
</a>
</div>
<div id="accordion1" class="collapse show" role="tabpanel" aria-labelledby="heading1" data-parent="#accordion">

<div class="card-body p-3"> Initially loaded text in the first accordion collapse
</div>
</div>
</div>
<div>

<div class="card p-3 mb-2" role="tab" id="heading2"> <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#accordion2" aria-expanded="false" aria-controls="accordion2">
<div class="mb-0">
Second accordion
</div>
</a>
</div>
<div id="accordion2" class="collapse" role="tabpanel" aria-labelledby="heading2" data-parent="#accordion">
<div class="card-body p-3">
Text in the second accordion collapse
</div>
</div>
</div>
<div>
<div class="card p-3 mb-2" role="tab" id="heading3">
<a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#accordion3" aria-expanded="false" aria-controls="accordion3">
<div class="mb-0">
Third Accordion
</div>
</a>
</div>
<div id="accordion3" class="collapse" role="tabpanel" aria-labelledby="heading3" data-parent="#accordion">
<div class="card-body p-3">
Text in the third accordion collapse
</div>
</div>
</div>
</div>
Tooltipster

Text with a tooltip.

<p>Text with <span class="tooltipster" title="This is the text of the tooltip">a tooltip.</span> </p>

Note: I am not sure how to add 100% working tooltipsters to images, cards, etc. but will do so when I am more confident!

---

STYLE

This basically tells the code how to personalize + make your code look pretty.

Colors

Note: There are two ways of getting custom colors on TH: through the rgba system and through hex codes.


rgba(176,11,105) card

<div class="card p-2" style="background-color:rgba(176,11,105)">rgba(176,11,105) card</div>

#B00A65 card

<div class="card p-2" style="background-color:#B00A65">#B00A65 card</div>
Bootstrap Colors

Note: Bootstrap colors are basically all the preset colors use can use in TH. Bootstrap colors vary depending on the theme one uses.


Primary card

<div class="card card-primary col-md-6 col-12 p-2"> Primary card </div>
Info card

<div class="card card-info col-md-6 col-12 p-2"> Info card </div>

Success card

<div class="card card-success col-md-6 col-12 p-2"> Success card </div>
Warning card

<div class="card card-warning col-md-6 col-12 p-2"> Warning card</div>

Danger card

<div class="card card-danger col-md-6 col-12 p-2"> Danger card </div>
Regular card (for comparison)

<div class="card col-md-6 col-12 p-2"> Regular card </div>

Table for all comparisons for bootstrap colors depending on theme (credit to SparklyCodes):

Default theme 27719098_FGh1xMVk8d1pfws.png?1658021852
Night theme 27719129_dWF3MssZ6oO2yCp.png?1658021852
pink is the best color sorry i don't make the rules 27719183_k83qA2aOEZDgG8P.png?1658021852
what?? teal is clearly the superior color 27719197_y5Cf9EW7hwGxkqN.png?1658021852
According to all known laws of aviation, there is no way a bee should be able to fly. Its wings are too small to get its fat little body off the ground. The bee, of course, flies anyway. Because bees don't care what humans think is impossible. 27719235_H75GNCMERWR9Jo9.png?1658021852
Pink Velvet Snake 27719258_rFhZ9elzeLqRoYL.png?1658021852
Opacity

Note: Opacity can only be achieved through using rgba by adding a, namely opacity, value to the color. The opacity can range from 0-1, with 0 being completely transparent to 1 being not transparent at all.


Card with 50% opacity
<div class="card p-2" style="background-color:rgba(235,235,235,0.5)"> Card with 50% opacity </div>

Card with 50% opacity and background

<div class="card p-2" style="background-image:url(Link to photo)">
<div class="card p-2" style="background-color:rgba(235,235,235,0.5)"> Card with 50% opacity and background</div>
</div>

Height and width

Card with 100px height
<div class="card p-2" style="height:100px;">Card with 100px height</div>

Card with 100px width
<div class="card p-2" style="width:100px;">Card with 100px width</div>

Note: Max-height sets up a maximum height for the card, so if the maximum is not met, it will automatically just set it to the smallest value possible.


Card with a max 100px height
<div class="card p-2" style="max-height:100px;">Card with 100px height</div>

Card with a max 100px width
<div class="card p-2" style="max-width:100px;">Card with 100px width</div>
Overflow-y/Overflow-x

Note: This allows for you to create a scrollable card. However, it is not possible to easily hide the scrollbar without CSS. A specific height/width must be set for this to work!


Card with overflow-y

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec accumsan, ex sit amet rutrum ultrices, ligula diam pellentesque ante, sit amet facilisis metus libero eget purus. Nunc fringilla, lectus ut egestas tristique, eros quam porta dui, quis hendrerit nisi erat et dui. Aenean pulvinar fermentum ligula nec ultrices. Quisque bibendum ut neque et elementum. Duis placerat aliquet rhoncus. Suspendisse pretium tellus et rutrum placerat. Curabitur feugiat nibh non enim condimentum auctor. Aliquam erat volutpat. Phasellus porta vulputate mattis.

<div class="card p-2" style="max-height:100px;overflow-y:auto;">
<p>Card with overflow-y </p>
</div>

Card with overflow-x

Lorem ipsum dolor sit amet, consectetur adipiscing elit. .

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

<div class="card p-2" style="max-width:300px;overflow-x:auto;">
<p>Card with overflow-x </p>
</div>
Position:absolute

Note: Be warned that using position:absolute may lead to wonky layouts on mobile, so make sure to consider this + check for mobile friendliness as you use this!



Card moved by position:absolute (first code)
<div class="card p-2" style="position:absolute;bottom:-0px;right:0px">Card moved by position:absolute </div>

Card moved by position:absolute (second code)
<div class="card p-2" style="position:absolute;top:0px;left:0px">Card moved by position:absolute </div>

Card moved by position:absolute (third code)
<div class="card p-2" style="position:absolute;top:180px;right:0px">Card moved by position:absolute </div>

Note: Position-absolute allows you to also go beyond the scope of the character description and minimally add stuff across the entire screen. For example if you want to put a small icon next to the character's image at the top of the page, you can use the following directions to do so:
<span class="fa-regular fa-cheese-swiss" style="font-size:15px; position:absolute; left: 5rem; top: 1rem;">
</span>

Background images

Card with background image

<div class="card p-2 " style="background-image:url(Link to photo)"> Card with background image<p></p></div>

Note: The following code can be added to the style="______" to further customize the background image. Some can be used at the same.


Background-size:
Auto (default)
background-size:auto
Cover
background-size:cover
Contain
background-size:contain
Specific background size
background-size: 50px

Background-position:
Center
background-position:center
Two directions
background-position:bottom left
Specific background size (percent)
background-position:40% 50%
Specific background size (pixel)
background-position: 50px 50px

Background-attachment:
Scroll
background-attachment:scroll
Fixed
background-attachment:scroll
Local

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

background-attachment:local

Background-repeat:
Repeat
background-repeat:repeat
Repeat-y
background-repeat:repeat-y
Repeat-x
background-repeat:repeat-x
No-repeat
background-repeat:no-repeat
Dropshadow

Card dropshadow

<div class="card" style="max-width:200px; height:150px; background-size:cover; background-position:top center; background-repeat:no-repeat; box-shadow:0 0 1rem #000; background-image:url('Link to photo');"></div>
Image dropshadow image-removebg-preview-5.png <img src="Link to photo" style="filter:drop-shadow(0 0 3px #000);"></div>
Layers/z-index

Note: This allows you to layer elements that normally aren't be layered, some usage/understanding of position:absolute may be necessary. Can be applied to not just cards, but other elements as well! Just add: z-index: ____ to the style="____" aspect of the element. The larger the number, the more on top it will be.


Z-index with Cards
Card 1
Card 2


<div class="card p-2 col-7" style="z-index:0"> Card 1</div> <div class="card p-2 col-6" style="position:absolute;bottom:165px;right:20px; z-index:1"> Card 2</div>
Animation

Note: Somehow you can add some font-awesome class stuff to the class of the thing you want to animate, it works! I am not sure if this works on other sites.


Spinning card
<div class="card col-6 p-3 fa-spin mx-auto"> Spinning card</div>
Pulsing card
<div class="card col-6 p-3 fa-pulse mx-auto"> Pulsing card</div>
Beating card
<div class="card col-6 p-3 fa-beat mx-auto"> Beating card</div>
Fading card
<div class="card col-6 p-3 fa-fade mx-auto"> Fading card</div>
Beating and fading card
<div class="card col-6 p-3 fa-beat-fade mx-auto"> Beating and fading card</div>
Bouncing card
<div class="card col-6 p-3 fa-bounce mx-auto"> Bouncing card</div>
Flipping card
<div class="card col-6 p-3 fa-flip mx-auto"> Flipping card</div>
Shaking card
<div class="card col-6 p-3 fa-shake mx-auto"> Shaking card</div>
Bolding, italics, etc.

This is regular text.

<p>This is regular text.</p>

This is bolded text.

<p><b>This is bolded text.</b></p>

This is italics text.

<p><i>This is italics text.</i></p>

This is underlined text.

<p><u>This is underlined text.</u></p>

This is striked-through text.

<p><s>This is striked-through text.</s></p>

This is subscript text.

<p><sub>This is subscript text.</sub></p>

This is superscript text.

<p><sup>This is superscript text.</sup></p>
Fonts

Note: These are the only fonts that are freely used by Toyhou.se, if you want to upload custom fonts you must use CSS.


Universal fonts

Arial

<p style="font-family:arial">Arial</p>

Verdana

<p style="font-family:Verdana">Verdana</p>

Helvetica

<p style="font-family:Helvetica">Helvetica</p>

Tahoma

<p style="font-family:Tahoma">Tahoma</p>

Trebuchet MS

<p style="font-family:Trebuchet MS">Trebuchet MS</p>

Times New Roman

<p style="font-family:Times New Roman">Times New Roman</p>

Georgia

<p style="font-family:Georgia">Georgia</p>

Garamond

<p style="font-family:Garamond">Garamond</p>

Courier New

<p style="font-family:Courier New">Courier New</p>

Brush Script MT

<p style="font-family:Brush Script MT">Brush Script MT</p>
Toyhouse fonts

Andale mono

<p style="font-family:Andale mono">Andale mono</p>

arial black

<p style="font-family:arial black">arial black</p>

book antiqua

<p style="font-family:book antiqua">book antiqua</p>

calibri

<p style="font-family:calibri">calibri</p>

comic sans ms

<p style="font-family:comic sans ms">comic sans ms</p>

impact

<p style="font-family:impact">impact</p>

symbol

<p style="font-family:symbol">symbol</p>

terminal

<p style="font-family:terminal">terminal</p>

Webdings

<p style="font-family:webdings">Webdings</p>

wingdings

<p style="font-family:wingdings">wingdings</p>

Font sizing/spacing

Font size 2rem <span style="font-size:2rem">2rem</span>

32px <span style="font-size:32px">32px</span>

16px <span style="font-size:16px">16px</span>

8px <span style="font-size:8px">8px</span>

smaller <span style="font-size:smaller">smaller</span>

small <span style="font-size:small">small</span>

larger <span style="font-size:larger">larger</span>

large <span style="font-size:large">large</span>


Font weight
lighter
<div style="font-weight:lighter">lighter</div>

normal
<div style="font-weight:normal">normal</div>

bold
<div style="font-weight:bold">bold</div>

100
<div style="font-weight:100">100</div>

200
<div style="font-weight:200">200</div>

300
<div style="font-weight:300">300</div>

400= normal
<div style="font-weight:400">400</div>

500
<div style="font-weight:500">500</div>

600
<div style="font-weight:600">600</div>

700 = bold
<div style="font-weight:700">700</div>

800
<div style="font-weight:800">800</div>

900
<div style="font-weight:900">900</div>

Headings

Heading 1

<h1>Heading 1</h1>

Heading 2

<h2>Heading 2</h2>

Heading 3

<h3>Heading 3</h3>

Heading 4

<h4>Heading 4</h4>

Heading 5
<h5>Heading 5</h5>

Heading 6
<h6>Heading 6</h6>

Font spacing
Normal
<div style="letter-spacing:normal">Normal</div>
0.5px
<div style="letter-spacing:0.5px">0.5px</div>
2.5px
<div style="letter-spacing:1px">2.5px</div>
5px
<div style="letter-spacing:5px">5px</div>
2.5mm
<div style="letter-spacing:2.5mm">2.5mm</div>
1rem
<div style="letter-spacing:1rem">1rem</div>
Font colors (bootstrap, custom, and shadows)

Bootstrap colors text

This is primary text

<p class="text-primary">This is primary text</p>

This is info text

<p class="text-info">This is info text</p>

This is success text

<p class="text-success">This is success text</p>

This is warning text

<p class="text-warning">This is warning text</p>

This is danger text


<p class="text-danger">This is danger text</p>

This is regular color text

<p>This is regular color text</p>

This is secondary text

<p class="text-secondary">This is secondary text</p>

This is muted text

<p class="text-muted">This is muted text</p>

This is dark text

<p class="text-dark">This is dark text</p>

This is light text

<p class="text-light bg-dark" >This is light text</p>

This is custom-colored #B00A65 text.

<p style="color:#B00A65;">This is custom-colored #B00A65 text.</p>

This is transparent text.

<p style="rgba(235,235,235,0)">This is transparent text.</p>

This is text with a text shadow.


<p style="text-shadow:1px 1px 1px #000;">This is text with a text shadow.</p>

Note: For text-shadow, the first px value refers to how much pixels it shifts on the x-axis. The second px value refers to how much pixels it shifts on the y-axis. The thrid px value refers to how much gaussian blur there is.

Border types

Card with solid border
<div class="card p-2" style="border: 5px solid"> Card with solid border</div>

Card with dotted border
<div class="card p-2" style="border: 5px dotted" > Card with dotted border</div>

Card with dashed border
<div class="card p-2" style="border: 5px dashed"> Card with dashed border</div>

Card with groove border
<div class="card p-2" style="border: 5px groove"> Card with groove border</div>

Card with solid border
<div class="card p-2" style="border: 2px double"> Card with solid border</div>
Border-radius

Card with 20px border radius
<div class="card p-2" style="border-radius:20px;">Card with 20px border radius</div>

Card with specified border-radius for each corner
<div class="card p-2" style="border-top-right-radius:5 px;border-top-left-radius:10px;border-bottom-left-radius:15px; border-bottom-right-radius:20px;"> Card with specified border-radius for each corner</div>

Card with 50% border radius
<div class="card p-2" style="border-radius:50%">Card with 50% border radius</div>
---

SOURCES AND HREF

This basically tells the code what kinds of images/sources to link to. It can be both external and internally

Img src

800 <img src="Link to photo">
Alt

Note: Alt text is something that shows up when the website/Toyhou.se somehow can't load your photo. In this case, if the alt is "Image alt", this text will show up if the image does not load.


Image alt <img src="Link to photo" alt="Image alt">
Href (external and internal)

External link to James Bond website <a href="Link to website"> External link to James Bond website </a>

Note: href allows you to link internally, but the element you want to link to must have id =" ______" while the internal link must have href "#________" for this to work.


Internal link to "Accordions" section of this code <a href="#link"> Internal link to "link" section of this code </a>
Music player

Note: Great thanks and kudos to this tutorial made by K90-Nyel ! This is just a basic showcase of the music player, but if you want a more detailed music player tutorial/walkthrough, go check out their tutorial!


Standard music player <audio controls=""><source src=" MP3 link here"></audio>

Looping music player <audio controls="loop"><source src=" MP3 link here"></audio>
---

Miscellaneous

Some miscellaneous stuff that I can't fit anywhere, but is also very useful

Lists

Regular list
  • Item one
  • Item two
  • Item three
<ul>
<li>Item one</li>
<li>Item two</li>
<li>Item three</li>
</ul>

Numbered list
  1. Item one
  2. Item two
  3. Item three
<ol>
<li>Item one</li>
<li>Item two</li>
<li>Item three</li>
</ol>

List with extra information
Item one
- Item one description
Item two
- Item two description
Item three
- Item three description
<dl>
<dt>Item one</dt>
<dd>- Item one description</dd>
<dt>Item two</dt>
<dd>- Item two description</dd>
<dt>Item three</dt>
<dd>- Item three description</dd>
</dl>
Flags

Note: This pride flag tutorial made by VynxCodes is what inspired me to find out that flags can be made using the d-flex linline-rounded-block as a base. You will have to manually edit the flag colors yourself and add the appropriate images if you want to customize it. Pride flags are fully listed in the pride flag tutorial above, but you can repurpose them to make country/any other type of flag!


French flag (example)
 
<div class="rounded d-inline-block" style="background-image:linear-gradient(90deg,#0055A4,#0055A4 33.3%,#fff 33.3%,#fff 66.6%,#EF4135 66.6%);line-height:20px;width:26px;"> </div>

Canada flag (example)
 
<div class="rounded d-inline-block" style="background-image:linear-gradient(90deg,#EF4135,#EF4135 33.3%,#fff 33.3%,#fff 66.6%,#EF4135 66.6%);line-height:20px;width:26px;"><div style="background:url(https://upload.wikimedia.org/wikipedia/commons/thumb/6/66/Flag_of_Canada_%28leaf%29.svg/577px-Flag_of_Canada_%28leaf%29.svg.png) no-repeat center;background-size:38%;"> </div>
Writing code as text

Say that you have this line of code: <div class="card p-2"></div>, but you want to write it as text instead of code when WYSIWYG is turned off.

To do so, replace "<" with &lt;, and ">" with &gt;.

To write the above code snippet as text, it would look something like this: &lt;div class="card p-2"&gt;&lt;/div>,

---

MY TIPS/TRICKS

Some tips and tricks I gained throuougt my coding journey. I will be providing examples + explanations, but I won't add the code itself, as it only really applies to that specific example.

Hiding scroll bars without CSS

Note: Basically what I will be doing to hide the scroll bar without CSS is to first put a card around the card you want to croll, then use position:absolute to orient a card to "hide" the scroll bar. This may look wonky on mobile but with enough patience and testing, it is possible to make it look seamless.
My tip is to choose a card padding that is very large (either p-4 or p-5) so that none of the text gets accidentally covered by the scrollbar-hiding card. Then, in the description of this card that encircles the card you want to scroll, create the card that you want to use to hide the scroll bar. Set it to the appropriate height, and use position-absolute to move it around and hide the scroll bar!


Non-covered scroll bar card
This is a non-covered scroll bar card.

Covered scroll bar card
This is a covered scroll bar card.
Color palette

Note: Basically, to make a hex code color palette for your character, just create one big card and use &ltdiv class="row no-gutters"> to create a row of small cards, then change the background color of each of the cards to the colors of your character.
Don't know what your characater's hex codes are? Use this colorpicking website!


Color palette of Seamaster
Seamaster.jpg
random text
random text
random text
random text
random text
random text
Overlaying 2+ elements

Note: I know there are more sophisticated meethods to go about doing this, but way I do it is I create a p-0 card, set the background to an image, then I add in another p-0 card within this card and set the background to something too. If all works properly, the two elements will overlap without any problem!You can definitely do this 3+ cards, but I have not tested it to see if looks wonky or not.


Overlaying Omega seamaster background + my character Seamaster