V5 || Anzie's Code Tutorial For Basic Tables
Jan 1, 2014 11:39:40 GMT -5
Post by анзие (Anz) on Jan 1, 2014 11:39:40 GMT -5
Welcome to Anzie's code tutorial for basic tables! In this tutorial I aim to provide you the means to create your own tables, if you're willing to learn. I'm no expert, personally, but I like to think I know enough to help others.
First things first. How are v5 codes different from v4? The answer is that in v4, coders would use a lot of table elements, whereas in v5 we deal mostly with div elements. What is a div element, you may ask? Well, div elements encapsulate "other page elements and divides the HTML document into sections" and create a container unit (think of a 2-dimension square!).
An example of a div element defining a code would be this:
Keep in mind that if you would like to left-align your text, simply delete the code. It is not necessary to define left-align, as it is the default for the site and I believe Proboards as well.
Another example would be this code:
The above container would not have a background but a border, which I added so you may see the results below:
>> you can use div style to create an entire table. More below.
>> You end all div codes with [/div][/i]
The codes above are simple; defining the height and width of the container is self-explanatory, really. The border code will be explained in part 3, so don't worry yourself too much.
As you by now can tell, div elements are very important in v5 - unless, of course, you'd quite like to use a font code instead.
You no longer need to separate code elements. In V4, I believe you needed to separate the elements for each definition, like so:
That is not necessary in v5! Now, all three are defined by the same overarching element - that is, font.
(There are other ways to adjust your font as well, but those go under the div element; I won't confuse you unless you'd like me to.)
There are two different ways to make tables now.
One will be this code:
which will look like this:
ayyyy
That in itself is a table. Albeit a one-celled table, but still.
This is also a table:
And that should give you:
What's that? You want to design your table? No problem.
Because most of my own tables are using this code, I will be using the div style code over the table code, but I assure you that the basics are still the same - you just need to add in the extra code in the [*table] code
ayyyy
Now, a quickie because it's getting super late here (I'll probably edit and explain some of the confusing ones tomorrow).
These are some codes to add into div style:
That last one kind of needs explaining so this is an example:
without the 'margin-top' code that I added into this table, the textbox will end up like this
Tada! That's it for now. I hope it helps~
C O N T E N T S
0: General overview on how tables are made.
1: Stretching your table
2: Padding vs Blockquote
3: Borders and Border-Radiuses
4: Borders II
5: Overflow/scroll
6: Opacity I/II
7: Tables within Tables
7a: Margins
8a: Simple Presto
8b: Complex Presto (Invisible Presto)
9: Table Placements
1: Stretching your table
2: Padding vs Blockquote
3: Borders and Border-Radiuses
4: Borders II
5: Overflow/scroll
6: Opacity I/II
7: Tables within Tables
7a: Margins
8a: Simple Presto
8b: Complex Presto (Invisible Presto)
9: Table Placements
Part 0: A General Overview on v5
First things first. How are v5 codes different from v4? The answer is that in v4, coders would use a lot of table elements, whereas in v5 we deal mostly with div elements. What is a div element, you may ask? Well, div elements encapsulate "other page elements and divides the HTML document into sections" and create a container unit (think of a 2-dimension square!).
An example of a div element defining a code would be this:
[div align="centerORrightORjustify"]
So the text will look like this.
[div align="center"]So the text will look like this.[/div]
Keep in mind that if you would like to left-align your text, simply delete the code. It is not necessary to define left-align, as it is the default for the site and I believe Proboards as well.
Another example would be this code:
[div style="width:***px;height:***px;border:solid 1px #000;"]
The above container would not have a background but a border, which I added so you may see the results below:
[div style="width:200px;height:100px;border:solid 1px #000;"][/div]
>> you can use div style to create an entire table. More below.
>> You end all div codes with [/div][/i]
The codes above are simple; defining the height and width of the container is self-explanatory, really. The border code will be explained in part 3, so don't worry yourself too much.
As you by now can tell, div elements are very important in v5 - unless, of course, you'd quite like to use a font code instead.
[font face="georgia" size="2" color="#000000"][/font]
You no longer need to separate code elements. In V4, I believe you needed to separate the elements for each definition, like so:
[font="FONT FACE"][color="COLOR"][size="SIZE"]
That is not necessary in v5! Now, all three are defined by the same overarching element - that is, font.
Font face
Font size
Font color
Font size
Font color
(There are other ways to adjust your font as well, but those go under the div element; I won't confuse you unless you'd like me to.)
Note: if you want to align your text, that goes under div style. Also, if your code is for like, background color, remember to put a dash (-) between the words, so it becomes 'background-color'. In the same vein, 'text-align'.
There are two different ways to make tables now.
One will be this code:
[div align="center"][div style="width:350px;height:100px;background-color:#ffffff;border:2px inset;border-radius:10px;text-align:center;padding:10px;"]
[/div][/div]
which will look like this:
ayyyy
That in itself is a table. Albeit a one-celled table, but still.
This is also a table:
[div align="center"][table style="width:350px;height:100px;"][tbody][tr][td style="border:1px inset #ffffff;padding:0px;border-radius:10px;background-color:#000000;text-align:center;padding:10px;"]
ayyy
[/td][/tr][/tbody][/table][/div]
And that should give you:
ayyy |
What's that? You want to design your table? No problem.
Because most of my own tables are using this code, I will be using the div style code over the table code, but I assure you that the basics are still the same - you just need to add in the extra code in the [*table] code
[div align="center"][div style="width:350px;height:100px;overflow:auto;background-color:#ffffff;border:2px inset;border-radius:10px;text-align:center;padding:10px;background-color:#ededed;"]
[font face="georgia" color="#000000"]ayyyy[/font]
[/div][/div]
ayyyy
Now, a quickie because it's getting super late here (I'll probably edit and explain some of the confusing ones tomorrow).
These are some codes to add into div style:
- opacity:0.0-1.0 >> choose a number between 0 and 1
- overflow:auto/scroll/visible >> this is for scrollbars, have a fixed height for this to work
- background-image:url(URL HERE) >> pretty much self explanatory
- padding:0px 0px 0px 0px >> for space between text and the side of the table
- border-radius:10px >> this is for rounded corners - the higher the number, the larger the curve
- margin-top/bottom/left/right: 0px >> to add space between the edge of the table/image and the text box
That last one kind of needs explaining so this is an example:
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum |
without the 'margin-top' code that I added into this table, the textbox will end up like this
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum |
Tada! That's it for now. I hope it helps~