[T8] Background-color on Tables

❊ Visual Illusions ❊ ║ A Portfolio ║ Layout Suggestions Open ║ New - Wish On The Same Sky
Please Subscribe to read the full chapter
 

  HOME  I  LAYOUTS  I  FANFICTIONS  I  REQUEST SHOP  

 

Background-color on Tables (August 6, 2018)

 

 

In this tutorial, I will be going over how to add background colors on tables.

 

Step 1

Click on the table icon on the editor (it's beside the image and insert horizontal line icons; the 15th icon from the top source line; has a solid gray line and two rows of 3 boxes each). Set your table properties as you wish.

For this tutorial, I will set mine to 3 rows, 2 columns, 1 border size and 300 width. 

Like this:

           


Step 2

Now, find the codes to the layout by clicking 'Source' at the top. It should look something like this:

<table border="1" cellpadding="1" cellspacing="1" style="width:300px;">
    <tbody>
        <tr>
            <td> </td>
            <td> </td>
        </tr>
        <tr>
            <td> </td>
            <td> </td>
        </tr>
        <tr>
            <td> </td>
            <td> </td>
        </tr>
    </tbody>
</table>

 

Step 3

If you want to make both the top row colored black (because the border is black on default), find the code to the first row and add the code 'background-color:black'.

Note: Every row is divided by the <tr> </tr> tag while each column is marked by a <td> </td> tag.

<table border="1" cellpadding="1" cellspacing="1" style="width:300px;">
    <tbody>
        <tr style="background-color:black;">
            <td> </td>
            <td> </td>
        </tr>
        <tr>
            <td> </td>
            <td> </td>
        </tr>
        <tr>
            <td> </td>
            <td> </td>
        </tr>
    </tbody>
</table>

 

So once that's added, it should look like this:

      

 

Step 4

If you want to make the first column colored black, then use the same background-color code but instead, use it on the columns tag.

<table border="1" cellpadding="1" cellspacing="1" style="width:300px;">
    <tbody>
        <tr>
            <td style="background-color:black;"> </td>
            <td> </td>
        &
Please Subscribe to read the full chapter
Like this story? Give it an Upvote!
Thank you!
ann1914
[VI] If I accept your personalized request, please use it. Please bear in mind that I took my time to do them. No one likes their time to be wasted so don't request for things you're not even going to use. I completed your request so give me signs that you used it. It's that simple. Thank you.

Comments

You must be logged in to comment
NewDawnRP
#1
I bought the layout CMBB after you commented on my blog question! Thank you so so much for your help, I finally understand! I'll be using it well, thank you again! Your tutorial really helped me make it work, now I can get to creating :D
IgobyJazz
#2
Hello there!
I wanted to let you know that I will be using the layout: Gamer Data [r] home
rojeulite
#3
will be using the mock twitter layouts!! thank you so much for the work, it's exactly what i needed! ; u ; <333
yeomra
#4
Hi, just wanted to let you know I'll be using the mock instagram layouts! Thank you for your amazing codes!!
wonpokemon
#5
Hi! Just wanted to drop by and say that i used the mock twitter and instragram layouts here:
https://www.asianfanfics.com/blog/view/213249
If you're curious! They came in handy and very nice. Thank you so much for all your hard work, Ann!!!
Indubutably
#6
Chapter 20: hello!! will be using the mock up fb layout, thank you so much !!
spacehub
#7
hello! will be using the tumblr mock up! your work is amzing btw <3
PenguinLOvers772
#8
Hi~ im new here and wondering if you're still accepting request for layouts? anyway your works are real cool 🥰🥰
okey-dokeyo
#9
Chapter 20: hi!! i'm an idiot and bought the tumblr layout thinking it was for blog but when i put the code in, the size is all messed up - which is when i realised i'm dumb and it was a story layout.
is there a way to fix this (ಥ﹏ಥ)