richard wrote:
> On Mon, 08 Mar 2010 08:15:30 GMT, rf wrote:
>
>> "richard"<> wrote in message
>> news:7wd4x5qq8f8p$....
>>> On Mon, 08 Mar 2010 01:29:24 -0500, C A Upsdell wrote:
>>>
>>>> On 2010-03-08 1:21, richard wrote:
>>>>> td.cellstyle="font-size:200; font-family:Verdana; text-align:center;"
^ ^^^ ^^^^^^^
1 2 3
> What? You've never heard of the font sizing using numbers alone as in the
> "200" I showed?
> As you know, there are 8 levels of text size. In CSS these 8 levels are
> represented by the numbers 100,200,300..........800.
> There is nothing else to include such as em, px, or %.
> THe OP was using size="2". The valid numbers for "size" are 1 through 8.
> Migration into CSS just changed this value to include "00".
> So as not to confuse the number notation used like with "H2".
No, incorrect, you are confusing property font-size with font-weight.
http://www.w3.org/TR/CSS2/fonts.html...ef-font-weight
Unfortunately your advise us usually so riddled with errors that your
posts are more detrimental for newbies than helpful. Since you asked for
specifics on your errors more than once, here.
Noted errors above:
1) Proper syntax is: selector { property: value; property: value; ... }
2) Property font-size valid values are either named values:
xx-small, x-small, small, medium, large, x-large, xx-large
or numeric that requires units, e.g., 1.5em;
3) Property font-family although not error per se, listing a font
family name without also listing a generic family as a fallback
is very bad practice and is discouraged. As the W3 puts it:
"Style sheet designers are encouraged to offer a generic font family as
a last alternative."
In your example if a visitor did not have Verdana on their systems,
without the generic sans-serif specified then the browser default would
be used which is a serif times font switching from sans-serif to serif.
Lastly, although you could style table cells with a class on TD
elements, but if all the cells of a TABLE are to have the same style,
creating a class for the table using a descendant selector would be a
more efficient rule and save adding CLASS attributes to each TD element.
table.someStyle td { ... }
<table class="someStyle">
<tr><td>1</td><td>2</td><td>3</td></tr>
....
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com