Posted by Css tutorial

. (#385124)

Nice Guy
View Forum Posts


Posted on
2022-11-18 15:36:15
Hello! welcome to my css tutorial i will only be going over the basics and some other stuff here, i wont explain how to do boxes as i myself dont know how to. iam only posting this as i realized that theres no real tutorial that explains ALL of this stuff without you needing to click trough 69 tutorials to find 1 single part

what is a hex code?
a hex code is a six digit code that somehow is a color, for example #000000 is black while #FFFFFF is white, these codes are very important in css. you need them most of the time for this.

What you will need for css making :

-wordpad or any other writing app (should automatically be on your pc)
- coolors (website)
- a working imagine size changer or whatever it is called (i like to use this one, feel free to use others too)
-dropbox
- a working keyboard
- a computer / laptop

At first, take a look at this
this is a free to use example of css made by me :) simply copy and paste the whole code into wordpad or whatever you are using for this.

The background

the background is one of the most important parts, its extremly important to have in css to make it pretty. its the first two parts of the css you see, both titled media. before you can simply paste any picture into there and make it your background, check if the pic is the following :
1. 1900 x 1080 pixels or more
2. if not use the link i included in the what you need and change it to perfect size, you need to upload it to imgur or deviant art tho, as it will break otherwise (i forgot to add this at first oof)
3. your pic should include jpg or png at some part of it, doesnt always need to be the end some have it in the middle of the link and it still works

then simply copy the image adress into there where currently have the imgur link at the almost complete top of the code! remove the whole link and put yours in (make sure the '' are still there and your link is in the middle of the two)
now you have a background yay!

next part is the Lioden logo
it doesnt really care how big the replacement you use it, but its best if its around the same size as the lioden logo (around 192x120 pixels if i remember right)
go here for f2u pixels for replacements!


now, open coolors in another tab and choose a palette that you like, every where where theres standing #hexcode (aka numbers sometimes mixed with letters) its a hex code, change these with the codes you want to use but leave the # at the front.

track, handle and handle on hover

it is the thingy on the complete right side of your screen, the one you can drag around and all, track is the light gray almost white part, handle is the slighty dark grey and handle on hover is when you hover over the handle and it get slighty darker.

col and div container main

idk what col md is, so i like to keep it as none, container main tho is the main box thingy, plenty of people have it half visible , u CANNOT use hex codes if u want to make the main container only half visible, you need to use rgba, use this website and leave the 0.5 at the end i have in my code, theres a 1 in the end at the rgba thing, its the visibility. in order to simply have it 1 color with 100% visibility you need to remove the whole rgba part and change it with a #hexcode

navbar, navbar li a and navbar li a hover
navbar is the part that says "den , crossroads, hoard" etc. navbar li a is the font color and navbar li a hover is when you hover over the navbar (NOT THE FONT COLOR!).

breadcrumb
its the part that says "bookmark" and all that.

feature
this is the part, when theres a event and theres a special thingy, for example in october when you can carve a pumpkin, this it the background for it.

topbar
this is the complete top of your den, the one where it says "welcome back ....!"

sidebar
this is ONE HALF of your sidebar, basically the part around the chat.

panel
the white part on top of the grey sidebar, feel free to experiment with this :)

chat odd and even
these are the two parts of the chat, the gray and the white color

h1
this is the thing that says (name)'s pride

h3 to right cub
all of these are your kings profile and stats and lioness counter and all of that, best if you make these all one single color.

cave grid and beetle grid
im pretty sure we all know what this is, the cave and beetle boxes, the little bit of color under the font.

a link a visited a hover
i like to keep link and visited on white, best idea in my opinion. i always change the hover part tho, adds a little bit of color. btw these are when you get links and all that.

from alert danger to progress bar

the alerts are all when you have stuff like "lion is gonna leave cuz of starving or low mood!" warnings.
the selects are for the complete lowest part of the den, where you can change stuff and all that.
the progress is the side of your screen where it shows energy and all of that.

the breadcrumb after is my "signature" please keep this part on! i wanna know who makes css with my template oh and if you dont mind, please tell me if you make some css with this template! i wanna see :O

in order to have a custom cursor simply go here choose a cursor you like, then copy and paste the universal css anywhere into the code

ALMOST FORGOT THE MOST IMPORTANT MOVE!
save the thingy on wordpad or whatever you are using and put .css after it, this turns it into a css file, upload it to dropbox. copy the link of the css and then do this:

<*link rel="*stylesheet" type="text/css" href="include dropbox code here, change the www with a dl*" /*>
(remove the *)

. in order to have a custom font, switch out every "urale" in the css with a font . go to google fonts, look for a font, scroll down. there should be a blue little + in a circle. then go to the little 3 boxes and a + on the right, you should see the font you just selected there. import the font WITHOUT the style at the end and bottom, import it to the extreme top of the code. then simply put the font family : font everywhere you want a special font!

in order to have custom cave pictures, use this code:

a[href$="cave.php?id=insert cave id here"] > div.cave-grid > img {
background: url('insert picture url here') !important;
padding-left: 100%;
height: 120px;
}

its best to make the replacement 290x120 pixels :D

now, i hope you have a great night/day and i hope you learned something from this. anymore questions? shoot me a pm and imma answer as soon as possible



Hrt Icon 3 players like this post! Like?

Edited on 28/01/23 @ 16:07:50 by Bayern (#385124)

CloverRing (#374737)

Special Snowflake
View Forum Posts


Posted on
2022-11-18 15:37:52
Bookmarked! Looks great and easy to understand, though I have some background! Any beginners have any thoughts?



Hrt Icon 0 players like this post! Like?

Anne ❦ G4
Corrupted BP (#383256)

Merciful
View Forum Posts


Posted on
2022-11-25 15:05:21
For sure bookmarking this page! Explains everything i needed to know :)



Hrt Icon 0 players like this post! Like?

Gaz[11BO g1 primal
mod rlc] (#296040)


View Forum Posts


Posted on
2023-03-31 17:24:26
So I'm using this, but it only works on the computer, not a phone (at least according to my friend)- any tips?



Hrt Icon 0 players like this post! Like?

. (#385124)

Nice Guy
View Forum Posts


Posted on
2023-04-01 00:44:28
terribly sorry this is due to my code being a bit outdated... im going to update the template asap



Hrt Icon 0 players like this post! Like?

RoseyPosey (#323669)

Amiable
View Forum Posts


Posted on
2023-06-12 02:19:09
scuse me, how do i replace the lioden logo?
i'm a bit confused.



Hrt Icon 0 players like this post! Like?

. (#385124)

Nice Guy
View Forum Posts


Posted on
2023-06-15 07:21:43
Its the long navbar-header Code piece:

 
div.container.main>div:nth-child(1)>nav>div.navbar-header>a>img {

    content: url('yoururl');

And then you have to put your url there



Hrt Icon 0 players like this post! Like?

Saffron (#440906)

King of the Jungle
View Forum Posts


Posted on
2023-06-19 04:01:37
Thank you, this is just the right amount of meaty to chew on!



Hrt Icon 0 players like this post! Like?

P!NKY|G3 3.2k Mosaic
(Azalea) (#449397)

Indifferent
View Forum Posts


Posted on
2023-11-30 11:04:29
Is there a way to create a css on mobile?



Hrt Icon 0 players like this post! Like?







Memory Used: 629.88 KB - Queries: 0 - Query Time: 0.00000 - Total Time: 0.00529s