Difference between revisions of "Css tools exemples"

From Bad Kitty Games Wiki
Jump to navigation Jump to search
Line 65: Line 65:
 
=== HC main box styling ===  
 
=== HC main box styling ===  
  
<h2 style="padding:0.2em 0.4em; margin:0 0 10px 0; border:1px solid #cca6d1; background:#6f027c; color:#fff; font-size:120%; font-weight:bold; text-align:left; text-shadow: black 0.1em 0.1em 0.2em; text-align: center;" >TOO BE SIMPLIFIED</h2>
+
<h2 class="HeadingBox" >Standard box</h2>
  
Code, This monstrosity:
+
Code: <nowiki><h2 class="HeadingBox" >Text</h2></nowiki>
<br>
+
Centered: <nowiki><h2 class="HeadingBox centered_text" >Text</h2></nowiki>
<nowiki><h2 style="padding:0.2em 0.4em; margin:0 0 10px 0; border:1px solid #cca6d1; background:#6f027c; color:#fff; font-size:120%; font-weight:bold; text-align:left; text-shadow: black 0.1em 0.1em 0.2em; text-align: center;" >TOO BE SIMPLIFIED</h2></nowiki>
 

Revision as of 13:44, 15 November 2019

Notes:

  • Div = all uses containers, think of it as a basic box. yes, you can put a box in a box in a box...
  • P = Paragraph. Its a box who is specified too contain text. This is what you want too use too separate texts
  • br = adds a blank space. it is how you create space when you can't use padding (space inside a box) and margin (space outside a box)


To make requests, go too this page discussion tab here


Text Shadow

spooky!

Code: <p class="shadow"> spooky! <p>

Box

Box test!

code: <div class="box"> <p>Box test!</p> </div>

Box shadow

Box test!

Code: <div class="box box_shadow"> <p>Box test!</p> </div>

Center text

Box test!

Code: <div class="box centered_text"> <p>Box test!</p> </div>

Round box

Box test!

Code: <div class="round_box centered_text"> <p>Box test!</p> </div>

Inverted

Box test!

Code: <div class="box centered_text inverted"> <p>Box test!</p> </div>

HC main box styling

Standard box

Code: <h2 class="HeadingBox" >Text</h2> Centered: <h2 class="HeadingBox centered_text" >Text</h2>