OK so far? Now let's start adding some text to your table.

Step 3

First we'll insert the header. In the first section you have already added the code:

<td style="border: 1px solid #000000; background-color: #ffffff; width: 560px; vertical-align: middle: text-align: center; line-height: 0px;" colspan="4"></td>

Now copy and paste the following code between the "4"></td> tags:

<span style="font-family: arial; color: #000000; font-size: 12pt; text-transform: capitalize;"><strong>your heading goes here</strong></span>

Using the attribute text-transform: capitalize; will make each word start with a capital letter and save having to use the shift key to capitalize each word. You can also use the attribute text-transform: uppercase; if you want all capital letters.

Preview and you should see this:

Happy so far? Save as draft and on to step four, inserting the sub heads.



Join the Discussion
Write something…
Recent messages
JeffBoivin Premium
Great great tutorial ! I bookmarked for futur use, thanks for sharing your knowledge, Cheers, Jeff
Reply
Ventures2000 Premium
Just starred it for when I'm ready, thanks
Reply
Harrysastar2 Premium
Thanks Robert, whenever you're ready give me a shout if your need any help.
Reply
Mike-Writes Premium
Thanks for the excellent tutorial, Harry.
Reply
Harrysastar2 Premium
Hi Mike, thanks for the comment, hope you find the training useful.
Reply
Mark Tait Premium
Hi Harry - very comprehensive, well done on a great tutorial.

Tables baffle a lot of people - I've seen a lot of questions here about them - and without a plugin, going into HTML for some people can be very daunting.You've clearly explained tables in a very easy way to understand.

If I could add one thing, where you have "width: 123px;" - that can be changed to a percentage - so your table becomes a little bit responsive. eg. "width: 40%;" - then the table will adapt as much as possible to the size of screen it's being viewed on.

All the best, Mark
Reply
Harrysastar2 Premium
Thanks Mark, much appreciated.
Reply
jvranjes Premium
Mark, I started using tables after one of your replies to my question, where you gave the basic structure, and I have them now in every post. Very useful for comparison.
Reply
Mark Tait Premium
Cheers Jovo - that's very humbling!

All the best, Mark
Reply
jvranjes Premium
To you too.
Reply
jvranjes Premium
This is a great training. I was thinking of doing it myself, but you did it far better than I could. Many thanks.
Reply
Harrysastar2 Premium
Hi Jovo,thanks for the reply, hope you find it useful.
Reply
Top