Thanks guys for the great responses
Being a 'neewbi' at RB, html, CSS, JavaScript I'm sure you can easily see how one can get easily confused.
After a little more experimenting and 'rossconz' and 'davos1' examples I see how the style must be included in the 'object'.
Now for what started all this.
I've been working though some examples in the RB help files on Tables and 'sqlite'. After viewing the source HTML that RB creates on tables and 'sqlite' tables you see some interesting stuff.
Take for example this one in the Help file under 'Tables'
'present some options
dim options$(1, 2)
options$(0, 0) = "Regular"
options$(0, 1) = "Latte"
options$(0, 2) = "Espresso"
options$(1, 0) = "Classic drip"
options$(1, 1) = "Coffee and frothy milk"
options$(1, 2) = "Concentrated coffee goodness"
table #menu, options$()
#menu columnnames("Drink type,Description")
#menu caption("Coffee menu")
#menu link("Drink type", "[order]")
'set a background color (light blue) to the caption
cssclass "caption", "{ background: #CCF }"
cssclass "table", "{ border: 3px ridge #DDF ; border-spacing: 4px }"
cssclass "tr", "{ background: #CCF }"
render #menu
wait
[order]
print "You ordered "; options$(0, RowIndex-1)
wait
The above RB code produces the below HTML.
<table>
<caption >Coffee menu</caption>
<tr>
<th>Drink type</th><th>Description</th>
</tr>
<span class="row-odd">
<tr>
<td><a href="?_s=sval1_k=kval2">Regular</a></td>
<td>Classic drip</td>
</tr>
</span>
<tr>
<td><a href="?_s=sval3_k=kval4">Latte</a></td>
<td>Coffee and frothy milk</td>
</tr>
<span class="row-odd">
<tr>
<td><a href="?_s=sval5_k=kval6">Espresso</a></td>
<td>Concentrated coffee goodness</td>
</tr>
</span>
</table>
Notice that every other Table row is given a 'class' of 'row-odd'. This concept is a great idea but the 'span class= row-odd' is useless because it has 'no' effect what-so-ever on the Elements it encases.
SO being a 'neewbi' I assumed I was in error. But after further review I believe RB is in error.
Corrrect me if I'm wrong but this should be parsed as:
<tr class = 'row-odd'>
<td>1</td>
<td>2</td>
</tr>
and not as.
<span class='row-odd'>
<tr>
<td>1</td>
<td>2</td>
</tr>
</span>
also when you crreate a 'sqlite' table the 'output HTML' from RB changes slightly as shown below.
<table>
<caption>My sqlite database</caption>
<tr>
<th>Name</th>
<th>Location</th>
</tr>
<tr>
<span class="row-odd">
<td>Person A</td>
<td>USA</td>
</span>
</tr>
</table>
Notice how the rendered HTML for the 'sql table' is different from the 'Table' rendered above? The <span class=> is now a 'child of the <tr> but has no usefull on its children.
It appears that 'both' tables are parsed incorrectly by RB as both 'span elements' will have no effect on the objects.
PLEASE correct me if I am WRONG with the above statements.This is where this 'neewbi' got confused. What is the purpose of the 'span' element that RB creates?
Thanks guys for the help.
Respectfully,
Core