GetDotted Domains

Viewing Thread:
"HTML tables"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Mon 04/09/06 at 11:55
"nitrogoat.co.uk"
Posts: 76
Holding data together in a webpage can be a fustrating process. Many people end up with clumps of text spaced randomly around the page in a very messy and eye-painful manner. Tables give you the power to organize the text into columns and rows, and also the opportunity to cutomise the table to suit the layout and colour scheme of you website.
Lets start with a basic table layout:



<table border="2">
<tr>
<td>col.1 row.1</td>
<td>col.2 row.1</td>
</tr>
<tr>
<td>col.1 row.2</td>
<td>col.2 row.2</td>
</tr>
</table>



When you view the webpage you will see a rather mediocre table with descriptions in each cell.
A cell is a portion of the table, separate from the other cells.

Lets take a look at the code:


<table border="2">


This gives the table its border. The border is the white space between the two lines surrounding the table and the individual cells.It can appear confusing as it appears that there are two separate borders at this stage.

<tr> This defines a new row in the table.

<td>
This plants a column in the row in which the code is placed. To place a column in a row you would use this:

<tr><td>this is a column in a row!</td></tr>


Go over this until you understand it and experiment with rows and columns until it is firm in your mind before we continue.


Customising you table:

At the moment you have a small collection of data neatly set out. Tables can be used to control the layout of your whole site when arranged properly! Now, we are going to see to bringing some colour into our table and the various methods.

Giving your table border a colour


<table border="6" bordercolor="red">


Background colour in a table


<table bgcolor="brown">


When using colours in webpages there isnt a great choice of colours when using text such as black, red, green. A better idea is to use "Hex Colours" where instead of words there are codes which relate to a much greater variety of colours.

Background image


<table background="/background.jpg">


Replace "/background.jpg" with the address of the image you wish to use.

Colour fills in individual rows and columns
In a row:

<tr bgcolor="blue">

Use this code where you would normally place:
<tr>


In a column:

<td bgcolor="red">

Adding a background to an individual cell:


<td background="/background2.jpg">


Varying row and column width and height

<tr height="400">
This would set the row height to 400 pixels.

<td height="100" width="80">
This would set the height and width of a column in the row.


Thank you for reading, and i hope this has helped many of you!
Nitro_goat
There have been no replies to this thread yet.
Mon 04/09/06 at 11:55
"nitrogoat.co.uk"
Posts: 76
Holding data together in a webpage can be a fustrating process. Many people end up with clumps of text spaced randomly around the page in a very messy and eye-painful manner. Tables give you the power to organize the text into columns and rows, and also the opportunity to cutomise the table to suit the layout and colour scheme of you website.
Lets start with a basic table layout:



<table border="2">
<tr>
<td>col.1 row.1</td>
<td>col.2 row.1</td>
</tr>
<tr>
<td>col.1 row.2</td>
<td>col.2 row.2</td>
</tr>
</table>



When you view the webpage you will see a rather mediocre table with descriptions in each cell.
A cell is a portion of the table, separate from the other cells.

Lets take a look at the code:


<table border="2">


This gives the table its border. The border is the white space between the two lines surrounding the table and the individual cells.It can appear confusing as it appears that there are two separate borders at this stage.

<tr> This defines a new row in the table.

<td>
This plants a column in the row in which the code is placed. To place a column in a row you would use this:

<tr><td>this is a column in a row!</td></tr>


Go over this until you understand it and experiment with rows and columns until it is firm in your mind before we continue.


Customising you table:

At the moment you have a small collection of data neatly set out. Tables can be used to control the layout of your whole site when arranged properly! Now, we are going to see to bringing some colour into our table and the various methods.

Giving your table border a colour


<table border="6" bordercolor="red">


Background colour in a table


<table bgcolor="brown">


When using colours in webpages there isnt a great choice of colours when using text such as black, red, green. A better idea is to use "Hex Colours" where instead of words there are codes which relate to a much greater variety of colours.

Background image


<table background="/background.jpg">


Replace "/background.jpg" with the address of the image you wish to use.

Colour fills in individual rows and columns
In a row:

<tr bgcolor="blue">

Use this code where you would normally place:
<tr>


In a column:

<td bgcolor="red">

Adding a background to an individual cell:


<td background="/background2.jpg">


Varying row and column width and height

<tr height="400">
This would set the row height to 400 pixels.

<td height="100" width="80">
This would set the height and width of a column in the row.


Thank you for reading, and i hope this has helped many of you!
Nitro_goat

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

10/10
Over the years I've become very jaded after many bad experiences with customer services, you have bucked the trend. Polite and efficient from the Freeola team, well done to all involved.
Many thanks!!
Registered my website with Freeola Sites on Tuesday. Now have full and comprehensive Google coverage for my site. Great stuff!!
John Shepherd

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.