Click to See Complete Forum and Search --> : Tables or formatting data


binsoft
09-09-2003, 09:28 AM
Hello, I want to display data in a web page in a table format. My first inclination was to use some type of tabbing feature in HTML, but I could not figure this out, so I instead am using a table. Question 1: Is there a tab tag in HTML ?

Question 2: My current HTML table has a raised border. Can I specify no border around the table at all ? Is so, how do I do this?

Question 3: In my table, the text in the heading comes out rather big and goofy looking. How do I control the font of the heading text. Here is my HTML code:

<TABLE BORDER ALIGN=CENTER>
<TR>
<TH>Fruit</TH>
<TH>Vegetables</TH>
<TH>Grains</TH>
</TR>
<TR>
<TD>Apples</TD>
<TD>Spinach</TD>
<TD>Bread</TD>
</TR>
<TR>
<TD>Bananna</TD>
<TD>Tomatoe</TD>
<TD>crackers</TD>
</TR>
</TABLE>

DaveSW
09-09-2003, 09:44 AM
1) <p style="text-indent: 25px;"> Indented text</p>

you could use margin-left instead to move the entire text block to the right.


2) <TABLE BORDER="0" ALIGN="CENTER">


3) In your head section:

<style type="text/css"><!--
th {
font-size: 100%;
}
--> </style>

96turnerri
09-09-2003, 06:12 PM
alternativly for q3 you could add font tags <font> say <font size="10" face="Arial" etc>Bananas</font>

Charles
09-09-2003, 08:23 PM
The FONT element was depricated back in 1997 and with good reason. Use style sheets instead. They are much more powerful and easier and give you a better web page in the end.

96turnerri
09-09-2003, 08:29 PM
true but from the looks of it its a simple site and instead a whole style sheet, easier to use font tag

Charles
09-09-2003, 08:56 PM
In what way is

<th><font size="10" face="Arial" etc>Bananas</font></th>

easier than

<th style="font-size:100%; font-family:Arial, sans-serif">Bananas</th>

or

<th><font size="10" face="Arial" etc>Bananas</font></th>
<th><font size="10" face="Arial" etc>Tomatoe</font></th>
<th><font size="10" face="Arial" etc>crackers</font></th>

easier than

<style type="text/css">
<!--
th {font-size: 100%}
-->
</style>

<th>Bananas</th>
<th>Tomatoes</th>
<th>crackers</th>?

96turnerri
09-09-2003, 08:58 PM
its not easier than one of the ones you used cos u used the same one, i mean its easier than creating a style sheet, if its only a small page or site

pyro
09-10-2003, 07:59 AM
Even if it were easier (which it is not), that is no excuse to use invalid markup. When a tag is depreciated, that means that browsers no longer need to support it. Not sure about you, but I like the though of my site being forward compatable.

96turnerri
09-10-2003, 08:11 AM
ok then..