Posted by [ Maestro's Den Styling Tutorial ]

Maestro (#2108)

Usual
View Forum Posts


Posted on
2013-05-20 04:56:27

Maestro's Den Styling Tutorial
Introduction
_______________________________________________________



Hello! So I herd u lyk mudkipz? Just joking, but rather, I heard you wanted to know how to customise your dens! Yes, I'm revealing the secrets of our trade ^-^

I hope you appreciate this tutorial considering the amount of effort, frustration and time I put into it XD It took me a while to make sure the codes were displayed rather than demonstrated ;-; (as in adding asterisks in the right places... why can't <*co*de*><*/co*de*> be enabled .___.)

This thread was slightly rushed since my bum hurts from sitting too long- I'm going to need some caffeine in my system so I'm going to go make some tea ^-^

Sorry if there are mistakes- please point them out! I'm not a fan of proof-reading XD I'm also not very good at explaining (I fail at even defining a simple word haha).
If you don't understand anything or want help, don't hesitate to post a reply or hit me with a message ^o^
Also sorry if I don't completely explain something, I just wanted to hurry up and post this thread to satisfy those who want to discover the world of CSS and I can't do all of it in one sitting- I will of course edit and improve :D


.



Territory Description
_________________________________________________________________________________________



First off, we will customize your free area called the 'Territory Description'.
NOTE: Please ignore asterisks * as I only put them in to SHOW you the code, rather than show what it does!

1. Simple boxes
Some of you like boxes. We know you do ^-^.
To do this, we use HTML. HTML are tags you use which include these arrows <>. For a box, we use 'div' tags. HTML tags are basically like brackets... open <*di*v*> and close <*/di*v*> just like open ( and close )!

To style a tag, you would add style="" within the opening tag, for example, <*di*v* style="">Content in box here<*/di*v*>
The style links to CSS...

To define the width and height, you would make it like so: <*di*v* style="width:400px;height:400px;">Content in box here<*/di*v*>
It doesn't matter which goes first, just as long it's there! Remember that speech marks 'backet' the CSS coding and after each statement, you must add a semi-colon ; to tell the computer that it ends there!
The structure for CSS is basically: element: style ; You must remember both the colon and semi-colon! :)

With this, you can add more and more, for example
border:1px solid #000000;
color:#000000; (colour links to text colour)
background-color:#FFFFFF;
Etc!

If you want your box to have a scrollbar once full, just add
overflow:auto;

2. Boxes next to each other
Urgh. For this, you can use tables... or just use the CSS property float:left;
For a table generator, click here!

To use the float:left;, it's just as simple as:
<*di*v* style="width:200px;height:200px;float:left;">Content in box here<*/di*v*><*di*v* style="width:200px;height:200px;float:left;">Content in box here<*/di*v*>
And here it is demonstrated:
Content in box here
Content in box here


Unlike other elements, you can't center divs using regular <*cent*er><*/cent*er> tags :C I know, sad right?
But all you need to do is bracket your entire coding with:
<*di*v* style="margin:0 auto;">Your box coding whatever stuff here<*/di*v*>
:3

3. Regular Ol' Stylin'
Check out Kay's awesome thread on styling text, using images, and tables :D

4. Positioning
You want to position something specifically...

~ If you scroll down, the object scrolls along
.....Use position:fixed;
~ Exactly at the top right (feel free to change numbers to make it at a different area)!!
.....Use top:0px;left:0px;
~ A little above the object (change it to bottom, left or right)
.....Use padding-top:5px; or margin-top:5px;

.



Default Edit
____________________________________________________




Ahh, now onto editing the default bits that you can't change by using the territory description box.
For this recipe, you will need:
1x CSS file hosted on an external website
Use dropbox for this unless you have a website of your own you can upload to :3

Now, this is going to be quite difficult for CSS beginners, so bear with me!
This code is the basic template and that's all you need in your CSS file...
.top {
background: #682400;
color: #BCA296;
text-align: center;
font-weight: bold;
padding: 6px 5px;
text-transform: uppercase;
}
.right {
padding: 6px;
background: #9d3700;
}

.right_cub {
padding: 6px;
background: #9d3700;
font-size: 12px;
color: #541D00;
}
.bottom {
background: #682400;
color: #BCA296;
text-align: center;
font-weight: bold;
padding: 6px 5px;
}

.left {
padding: 6px;
font-weight: bold;
background: #842E00;
}

th {
background-color:#FFFFFF;
color:#818181;
font-family:georgia;
letter-spacing:-2px;
}

table {
border-spacing:0;
text-align: left;
font-size: 13px;
margin: 0 auto;
margin-top: 25px;
font-size: 13px;
border-collapse: collapse;
}

.table a:link, .table a:active, .table a:visited, .right a:link, .right a:active, .right a:visited, .bottom a:link, .bottom a:active, .bottom a:visited {
color: #e6a53f;
text-shadow: 1px 1px 2px #3B1800;
text-decoration: none;
}

.table a:hover, .right a:hover, .bottom a:hover {
color: #fff;
text-shadow: 1px 1px 2px #3B1800;
}

th {
background: #3B1800;
font-family: "Quando", tahoma, arial, helvetica;
color: #E9E6DB;
padding: 6px;
text-indent: 10px;
text-align: left;
}


With this, all you need to do is edit font, colour, size, and padding if you wish!
For HTML colour hex codes, use this awesome site.
Then, add
2vvp92e.png
to your territory description ^-^

CONGRATULATIONS if you read this pile of boring rubbish aha. Oh, and kudos to you if you noticed I kept fluctuating from 'color' and 'colour'- I'm from the UK so I use 'colour' but in coding, you HAVE to use 'color'... boohoo, I find that slightly biased aha- just joking.


.



Hrt Icon 1 player likes this post! Like?

Edited on 20/05/13 by Maestro (#2108)

Arcador [#11436] (#11436)

Majestic
View Forum Posts


Posted on
2013-05-20 05:10:07
Ah! Thanks so much for making this! :D I'll try CSS out! ;P



Hrt Icon 0 players like this post! Like?

Maestro (#2108)

Usual
View Forum Posts


Posted on
2013-05-20 05:29:20
You're welcome ^-^ :D



Hrt Icon 0 players like this post! Like?

Toxic Temptation (#6598)

Wonder On Four Paws
View Forum Posts


Posted on
2013-05-20 05:32:51
DUDE, I think I love you.

No seriously this is amazing :D

Thank you so much, I have some html/css knowledge but I always need a base code.



Hrt Icon 0 players like this post! Like?

Maestro (#2108)

Usual
View Forum Posts


Posted on
2013-05-20 05:38:14
Haha, I totally appreciate your compliment :) More like dudette though jk.
Keke, I learnt somewhere, so I want to kickstart the knowledge of many to-be coders as well as help out fellow coders!

I used to only be able to edit, but after a while, I learnt how to create from scratch.



Hrt Icon 0 players like this post! Like?

Musical (#7822)

Usual
View Forum Posts


Posted on
2013-05-20 05:38:52
-applaud-



Hrt Icon 0 players like this post! Like?

Rindoe (#11670)

King of the Jungle
View Forum Posts


Posted on
2013-05-25 01:03:06
Thank you! I appreciate your hard work :D



Hrt Icon 0 players like this post! Like?

Clay 🐓 (#20064)

Usual
View Forum Posts


Posted on
2013-05-25 01:03:10
Very cool! Thank you for this thread! :)



Hrt Icon 0 players like this post! Like?

Maestro (#2108)

Usual
View Forum Posts


Posted on
2013-05-25 01:10:30
^-^ Haha, glad you guys like it :)



Hrt Icon 0 players like this post! Like?

Rindoe (#11670)

King of the Jungle
View Forum Posts


Posted on
2013-05-27 00:24:42
I love you, Maestro, thank you! I've done it :D. Now I'm going to correct my first CSS baby...



Hrt Icon 0 players like this post! Like?

KatieEve | Clean
Sutekh (#37458)

Resurgent
View Forum Posts


Posted on
2014-08-07 06:47:00
I use it all the time now!!! xD



Hrt Icon 0 players like this post! Like?


Edited on 11/08/14 by ~Amber~ (#37458)

Kristall (#24826)

King of the Jungle
View Forum Posts


Posted on
2014-08-09 03:54:35
You are awesome! Thanks for making this :3



Hrt Icon 0 players like this post! Like?

Valerie (#42718)

Merciful
View Forum Posts


Posted on
2014-09-19 17:48:30
Thanks for the tutorial! Would pastebin links work in place of dropbox?



Hrt Icon 0 players like this post! Like?


Edited on 20/09/14 by Valen (#42718)

ashlynr (#38199)

Vicious
View Forum Posts


Posted on
2014-09-24 12:59:34
How do you add pictures to your css



Hrt Icon 0 players like this post! Like?

Icestar (#72469)

Blessed
View Forum Posts


Posted on
2015-12-09 11:08:58
That's awesome :) but how do you make the css work from dropbox...?



Hrt Icon 0 players like this post! Like?

Tor (#75716)

Good Natured
View Forum Posts


Posted on
2016-05-10 10:29:56
Hey this was super cool! I actually got my page boxes in a way I like them now and I can do it again in the future if I need ta move things around.
Thank you for posting this :D



Hrt Icon 0 players like this post! Like?







Memory Used: 633.04 KB - Queries: 0 - Query Time: 0.00000 - Total Time: 0.00380s