Posted by Keina's HTML Guide

Keina [Not Active] (#50109)

Lone Wanderer
View Forum Posts


Posted on
2017-08-29 16:09:16

Hiya and welcome to my HTML Guide!
I hope to solve some questions I've gotten and seen recently!
If what I have posted here doesn't answer your question, feel free to post a reply here or shoot me a PM. :)

Please be sure to remove any *'s, replace #'s with actual numbers and replace any #HEXCODE with a color code when you're using this code!

Index:
- General HTML
- Lists
- Tables
- Div Boxes
- Misc. code




General HTML
Here I'll teach you the basics of HTML!


<*i*>Text<*/*i>
Italicized text example.

<*b*>Text<*/*b>
Bolded text example.

<*u*>Text<*/*u>
Underlined text example.

<*font size="#"*>Text<*/*font>
Font size 2 text example.
Remember, this can only go up to 7.

<*font color="#HEXCODE"*>Text<*/*font>
OR
<*font color="Color Type"*>Text<*/*font>
Font color text example.
Things that could go for Color Type is like: Red, Green, Blue, Yellow, etc.

<*span style="background-color:#HEXCODE;"*>Text<*/*span>
OR
<*span style="background-color:Color Type;"*>Text<*/*span>
Highlighted Text example.
Things that could go for Color Type is like: Red, Green, Blue, Yellow, etc.

<*center*>Text<*/*center>
OR
<*p style="text-align:center;"*>Text<*/*p>
This will center your text.

<*img src="URL"*>
Replace URL with a direct link to the image when you have it hosted on an external site.
Make sure it's a direct link to the image and not the page the image is hosted on.


<*a href="URL"*><*img src="URL"*><*/*a>
This will make the image clickable when a user clicks the image.
Be sure to replace URL with a direct link with the image you want to use and a URL to a site/webpage/topic/post/etc.


<*img src="URL"* title="TEXT"*>
This will give text when you hover over the image.
Remember that Internet Explorer uses the alt tag for some reason but the title tag works on all browsers BUT Internet Explorer.


<*a href="URL"*>Text<*/*a>
Clicky Link example.

<*strike*>Text<*/*strike>
Strike Out text example.

<*blockquote*>Text<*/*blockquote>
Block quote example.


<*hr*>
This will add a thin bar across the entire width of a post/div/den description/etc. Used generally as a divider between sections.

[*spoiler*]Text[*/*spoiler]
Text here. This will only appear after hitting the Toggle Spoiler button.


Headers

<*h1*>Text<*/*h1>

Header 1 text example.



<*h2*>Text<*/*h2>

Header 2 text example.



<*h3*>Text<*/*h3>

Header 3 text example




Lists

Lists are fairly simple to code.

Organized List

Organized List Name
<*ol*><*li*>List Item 1<*/*li>
<*li*>List Item 2<*/*li>
<*li*>List Item 3<*/*li><*/*ol>

Example Organized List
  1. Example 1

  2. Example 2

  3. Example 3


The <*ol*> tag stands for Organized List while the tags <*li*> stands for List Item. If you'd like more list items just add more <*li*> tags inside the <*/*ol> tag and label it. The numbers are added automatically in this case so no need to worry about putting numbers in.

Unorganized List

Unorganized List Name
<*ul*><*li*>List Item 1<*/*li>
<*li*>List Item 2<*/*li>
<*li*>List Item 3<*/*li><*/*ul>

Example Unorganized List
  • Item 1

  • Item 2

  • Item 3


The tag <*ul*> stands for Unorganized List in this case. Just like before, <*li*> stands for List Item. Just add more <*li*> tags inside the <*/*ul> tag if you'd like more than three items. Bullet points are added automatically so do not worry over that.


Tables
Tables tend to be VERY picky and tend to break easily if the code is incorrect. Feel free to PM me any questions when it comes to using tables or just leave a reply here.

<*table style="width:#px;border:#px solid;"*><*tr*><*th*>Header Text<*/*th><*/*tr><*tr*><*td*>Content Text<*/*td><*/*tr><*/*table>

Header Example
Content Example


You can have a Table with two headers and two contents. Just copy and paste the bolded code above to get it.
Remember to keep it inside the <*/*table> tag when you're copying and pasting the code.

Header 1 Example
Content 1 Example
Header 2 Example
Content 2 Example



Div Boxes
Due to the recent coding change that has happened, div boxes work a little differently now.

Scrolling Div Box with Background color
<*div style="width:#px;height:#px;background:#HEXCODE;border:#px solid;"* class="scrollBox"*>Text<*/*div>

Regular Div Box
<*div style="width:#px;height:#px;"* class="scrollBox"*>Text<*/*div>

Side by Side Div Boxes
<*div style="width:800px;"*>
<*div style="width:#px;height:#px;float:left;background:#HEXCODE;border:#px solid;"* class="scrollBox"*>Text1<*/*div><*div style="width:#px;height:#px;float:right;background:#HEXCODE;border:#px solid;"* class="scrollBox"*>Text2<*/*div>
<*/*div>
It is vital that you do not add any spaces inbetween the two div boxes you type inside of or else they'll not be lined up correctly.

Expandable Div Box
This has to be done in CSS to accomplish this. If you do not have a CSS or are using a Premade CSS by another user, I cannot help you with this. Premade CSS users have to ask the one who made it to add it in for you so you can accomplish this.

CSS:
.name {
height: #px;
padding: #px;
overflow: hidden;
margin-bottom: 10px;
transition: height #s;
}

.name:hover {
height: #px;
overflow: auto;
}

HTML:
<*div style="width:#px;background:#HEXCODE;border:#px solid;"* class="name"*>Text<*/*div>

You can change out name for just about anything your heart desires as long as both the CSS and HTML names match.

Floating Corner Div Box
This also has to be done in CSS. Here's a Guide with it premade for anyone who wants it.

CSS(For floating left corner box):
.name {
position: fixed;
bottom: 0;
left: 0;
}

HTML:
<*div style="width:#px;height:#px;background:#HEXCODE;border:#px solid;"* class="name"*>Text<*/*div>

Same thing applies here with the Expandable Div Boxes, just change the name to whatever you'd like as long as they all match.


CSS

Rounded corners on Div Boxes:
.name {
border-radius: #px;
}

Custom Scroll Bars:
::-webkit-scrollbar {
width: 10px;
}

::-webkit-scrollbar-track {
background: #HEXCODE;
border-radius: #px;
}

::-webkit-scrollbar-thumb {
background: #HEXCODE;
border-radius: #px;
}

::-webkit-scrollbar-thumb:hover {
background: #HEXCODE;
border-radius: #px;
}

Please note that this will not display on Firefox and IE browsers, so any players who use those as their preferred browser will not be able to see the special scroll bars.


Misc. Code
Any code that doesn't fit into any of the categories will be here!

CSS Linking Code
<*link rel="stylesheet"* type="text/css"* href="URL"* */*>
Be sure to replace the URL with a direct link to your CSS.

<*body bgcolor="#HEXCODE"*>Text<*/*body>
This will change the color of the background.


I hope it solves your questions about HTML!
If you ever have any questions or want me to help you code something just feel free to send me a PM or just reply to this thread and I'll get to it when I can!




Hrt Icon 12 players like this post! Like?

Edited on 01/04/19 @ 12:51:47 by Keina (#50109)

Keina [Not Active] (#50109)

Lone Wanderer
View Forum Posts


Posted on
2018-07-17 09:17:09
Oh! I must've missed that code.

Thank you for reminding me of it. Lol I'll be sure to add it in now.



Hrt Icon 0 players like this post! Like?

Bear (#151907)

Bone Collector
View Forum Posts


Posted on
2018-07-17 21:10:22
Many people forget it actually :D



Hrt Icon 0 players like this post! Like?

Owl™ (#93801)

Astral
View Forum Posts


Posted on
2018-08-21 23:16:42
I keep failing with the scroll boxes. :(



Hrt Icon 0 players like this post! Like?

Keina [Not Active] (#50109)

Lone Wanderer
View Forum Posts


Posted on
2018-08-22 06:43:14
Hello Owl!

What's the issue you're having with the scroll boxes? If you need any help with the code, you're more than welcome to either send me a message or just leave a post here on the thread about the issue. :)



Hrt Icon 0 players like this post! Like?

Owl™ (#93801)

Astral
View Forum Posts


Posted on
2018-08-22 07:30:28
I figured it out. I skimmed over on the "remove the *" part like a smart person I'm good now, this thread has helped. Thank you!



Hrt Icon 0 players like this post! Like?

Keina [Not Active] (#50109)

Lone Wanderer
View Forum Posts


Posted on
2018-08-22 07:41:11
Ah, no worries!

Glad to hear that you figured it out, Owl!



Hrt Icon 0 players like this post! Like?

STRANGE
Kimanjano|Ferus|20M (#106412)


View Forum Posts


Posted on
2018-08-26 11:27:54
Hey! I was hoping to get some help for this thing: https://www.lioden.com/topic.php?id=304429327453 I want to get rid of that space before the table but I truly dont know how to fix it, maybe you can help me? Thanks in advance for your time



Hrt Icon 0 players like this post! Like?

STRANGE
Kimanjano|Ferus|20M (#106412)


View Forum Posts


Posted on
2018-08-26 14:15:24
I resolved, thank you anyways!



Hrt Icon 0 players like this post! Like?

Adella The Hungry (#112740)

Usual
View Forum Posts


Posted on
2018-10-28 15:07:12
I am A little confused about text boxes....

I tried doing some on my den page, And they did not turn out
As you can see https://www.lioden.com/territory.php

I love Your text boxes...
How do I get those?
I want mine a grey color background though



Hrt Icon 0 players like this post! Like?


Edited on 28/10/18 @ 15:09:55 by Adella (#112740)

Keina [Not Active] (#50109)

Lone Wanderer
View Forum Posts


Posted on
2018-10-28 18:02:10
Hiya Adella!

To get the grey background, this is what you're code would have to look similar to:
<*div style="width:#px;height:#px;background:#HEXCODE;border:#px solid;"* class="scrollBox"*>Text<*/*div>

The bolded section is what will need to get added to your current div boxes and as long as you change the #HEXCODE part to an actual color code like #000000.

I hope it helps!



Hrt Icon 0 players like this post! Like?


Edited on 28/10/18 @ 18:02:29 by Ghoulishly Keina (#50109)

CloudedArts (#156907)

Cursed
View Forum Posts


Posted on
2018-11-06 19:50:05
Thanks so much for this! It helps



Hrt Icon 0 players like this post! Like?

Lexx (#156135)

Impeccable
View Forum Posts


Posted on
2018-11-10 14:41:36
How would I change the color of the Lioden symbol? (Top left)



Hrt Icon 0 players like this post! Like?

Keina [Not Active] (#50109)

Lone Wanderer
View Forum Posts


Posted on
2018-11-11 08:29:51
Heyo Lexx!

You will have to recolor the image in a program that allows photo manipulation to tweek the colors then once that's done, save the image and upload it to a site like Imgur. Once it's uploaded, right click on the image and copy the image location.

You can use the following CSS code to replace the image:

body > div.container.main > div:nth-child(1) > nav > div.navbar-header > a > img {
content: url('IMAGE URL');
}

Replace IMAGE URL with a direct link to the recolored version of the Lioden Logo.

Hopefully this helps!



Hrt Icon 0 players like this post! Like?

Lexx (#156135)

Impeccable
View Forum Posts


Posted on
2018-11-11 08:31:43
Oh, Alright. Thank you!



Hrt Icon 0 players like this post! Like?

Lexx (#156135)

Impeccable
View Forum Posts


Posted on
2018-11-14 12:07:57
hey lol me again ha ha

so I have this for the image,
body > div.container.main > div:nth-child(1) > nav > div.navbar-header > a > img {
content: url('https://i.imgur.com/S5sExtT.png')

but it won't work? Like, it'll just be text in my territory. Did I do something wrong?



Hrt Icon 0 players like this post! Like?







Memory Used: 633.61 KB - Queries: 0 - Query Time: 0.00000 - Total Time: 0.00516s