Re: A question about css

Discussion in 'HTML' started by richard, Mar 8, 2010.

  1. richard

    richard Guest

    On Mon, 8 Mar 2010 06:55:30 +0100, Paul wrote:

    > In my website I have tables with lots of cells like this sample:
    > <td width="20%"><center><font size="2" face="Verdana">
    > <a href="http://www.mywebsite.com/my-html-pages/page01.html">
    > <img src="http://www.mywebsite.com/images/image01.jpg"
    > title="description of image"><br>
    > Description-of-this-cell
    > </a>
    > </td>
    >
    > So there are many instructions inside the cell like this
    >
    > <td width="20%"><center><font size="2" face="Verdana">
    >
    > that are identical to those written in all the other cells. And I know that
    > this is wrong.
    >
    > Can you please suggest me a css sample to write these instructions only one
    > time for all cells? Thank you.
    > Paul


    In the head section above the "body".

    <style type="text/css">

    td.cellstyle="font-size:200; font-family:Verdana; text-align:center;"

    </style>

    In the body

    <table>
    <tr>
    <td class=cellstyle>yada yada</td>
    </tr>
    </table>

    Plenty of css tutorials available 24/7 on the internet. Suggest you learn
    how to use css properly.
    richard, Mar 8, 2010
    #1
    1. Advertising

  2. richard

    C A Upsdell Guest

    On 2010-03-08 1:21, richard wrote:
    > On Mon, 8 Mar 2010 06:55:30 +0100, Paul wrote:
    >
    >> In my website I have tables with lots of cells like this sample:
    >> <td width="20%"><center><font size="2" face="Verdana">
    >> <a href="http://www.mywebsite.com/my-html-pages/page01.html">
    >> <img src="http://www.mywebsite.com/images/image01.jpg"
    >> title="description of image"><br>
    >> Description-of-this-cell
    >> </a>
    >> </td>
    >>
    >> So there are many instructions inside the cell like this
    >>
    >> <td width="20%"><center><font size="2" face="Verdana">
    >>
    >> that are identical to those written in all the other cells. And I know that
    >> this is wrong.
    >>
    >> Can you please suggest me a css sample to write these instructions only one
    >> time for all cells? Thank you.
    >> Paul

    >
    > In the head section above the "body".
    >
    > <style type="text/css">
    >
    > td.cellstyle="font-size:200; font-family:Verdana; text-align:center;"
    >
    > </style>
    >
    > In the body
    >
    > <table>
    > <tr>
    > <td class=cellstyle>yada yada</td>
    > </tr>
    > </table>
    >
    > Plenty of css tutorials available 24/7 on the internet. Suggest you learn
    > how to use css properly.


    I suggest that *you* learn CSS too. There are at least 3 errors in your
    code, one serious shortcoming, and one serious inefficiency.
    C A Upsdell, Mar 8, 2010
    #2
    1. Advertising

  3. richard

    rf Guest

    "C A Upsdell" <> wrote in message
    news:hn25fs$cg0$-september.org...
    > On 2010-03-08 1:21, richard wrote:
    >> On Mon, 8 Mar 2010 06:55:30 +0100, Paul wrote:
    >>
    >>> In my website I have tables with lots of cells like this sample:
    >>> <td width="20%"><center><font size="2" face="Verdana">
    >>> <a href="http://www.mywebsite.com/my-html-pages/page01.html">
    >>> <img src="http://www.mywebsite.com/images/image01.jpg"
    >>> title="description of image"><br>
    >>> Description-of-this-cell
    >>> </a>
    >>> </td>
    >>>
    >>> So there are many instructions inside the cell like this
    >>>
    >>> <td width="20%"><center><font size="2" face="Verdana">
    >>>
    >>> that are identical to those written in all the other cells. And I know
    >>> that
    >>> this is wrong.
    >>>
    >>> Can you please suggest me a css sample to write these instructions only
    >>> one
    >>> time for all cells? Thank you.
    >>> Paul

    >>
    >> In the head section above the "body".
    >>
    >> <style type="text/css">
    >>
    >> td.cellstyle="font-size:200; font-family:Verdana; text-align:center;"
    >>
    >> </style>
    >>
    >> In the body
    >>
    >> <table>
    >> <tr>
    >> <td class=cellstyle>yada yada</td>
    >> </tr>
    >> </table>
    >>
    >> Plenty of css tutorials available 24/7 on the internet. Suggest you learn
    >> how to use css properly.

    >
    > I suggest that *you* learn CSS too. There are at least 3 errors in your
    > code, one serious shortcoming, and one serious inefficiency.


    I thought we drummed RtS out of here a couple of days ago when he was
    talking about attributes inside style sections and demonstrated his
    ignorance about the word deprecated.

    The idiot is simply incapable of learning. Anything.
    rf, Mar 8, 2010
    #3
  4. richard

    richard Guest

    On Mon, 08 Mar 2010 01:29:24 -0500, C A Upsdell wrote:

    > On 2010-03-08 1:21, richard wrote:
    >> On Mon, 8 Mar 2010 06:55:30 +0100, Paul wrote:
    >>
    >>> In my website I have tables with lots of cells like this sample:
    >>> <td width="20%"><center><font size="2" face="Verdana">
    >>> <a href="http://www.mywebsite.com/my-html-pages/page01.html">
    >>> <img src="http://www.mywebsite.com/images/image01.jpg"
    >>> title="description of image"><br>
    >>> Description-of-this-cell
    >>> </a>
    >>> </td>
    >>>
    >>> So there are many instructions inside the cell like this
    >>>
    >>> <td width="20%"><center><font size="2" face="Verdana">
    >>>
    >>> that are identical to those written in all the other cells. And I know that
    >>> this is wrong.
    >>>
    >>> Can you please suggest me a css sample to write these instructions only one
    >>> time for all cells? Thank you.
    >>> Paul

    >>
    >> In the head section above the "body".
    >>
    >> <style type="text/css">
    >>
    >> td.cellstyle="font-size:200; font-family:Verdana; text-align:center;"
    >>
    >> </style>
    >>
    >> In the body
    >>
    >> <table>
    >> <tr>
    >> <td class=cellstyle>yada yada</td>
    >> </tr>
    >> </table>
    >>
    >> Plenty of css tutorials available 24/7 on the internet. Suggest you learn
    >> how to use css properly.

    >
    > I suggest that *you* learn CSS too. There are at least 3 errors in your
    > code, one serious shortcoming, and one serious inefficiency.



    Why don't you show me your profound superior knowledge and explain
    precisely how I am wrong?
    granted, I did make one mistake with the equal sign after td.cellstyle but
    it would appear that Paul caught onto that mistake quickly.
    richard, Mar 8, 2010
    #4
  5. richard

    richard Guest

    On Mon, 08 Mar 2010 06:38:22 GMT, rf wrote:

    > "C A Upsdell" <> wrote in message
    > news:hn25fs$cg0$-september.org...
    >> On 2010-03-08 1:21, richard wrote:
    >>> On Mon, 8 Mar 2010 06:55:30 +0100, Paul wrote:
    >>>
    >>>> In my website I have tables with lots of cells like this sample:
    >>>> <td width="20%"><center><font size="2" face="Verdana">
    >>>> <a href="http://www.mywebsite.com/my-html-pages/page01.html">
    >>>> <img src="http://www.mywebsite.com/images/image01.jpg"
    >>>> title="description of image"><br>
    >>>> Description-of-this-cell
    >>>> </a>
    >>>> </td>
    >>>>
    >>>> So there are many instructions inside the cell like this
    >>>>
    >>>> <td width="20%"><center><font size="2" face="Verdana">
    >>>>
    >>>> that are identical to those written in all the other cells. And I know
    >>>> that
    >>>> this is wrong.
    >>>>
    >>>> Can you please suggest me a css sample to write these instructions only
    >>>> one
    >>>> time for all cells? Thank you.
    >>>> Paul
    >>>
    >>> In the head section above the "body".
    >>>
    >>> <style type="text/css">
    >>>
    >>> td.cellstyle="font-size:200; font-family:Verdana; text-align:center;"
    >>>
    >>> </style>
    >>>
    >>> In the body
    >>>
    >>> <table>
    >>> <tr>
    >>> <td class=cellstyle>yada yada</td>
    >>> </tr>
    >>> </table>
    >>>
    >>> Plenty of css tutorials available 24/7 on the internet. Suggest you learn
    >>> how to use css properly.

    >>
    >> I suggest that *you* learn CSS too. There are at least 3 errors in your
    >> code, one serious shortcoming, and one serious inefficiency.

    >
    > I thought we drummed RtS out of here a couple of days ago when he was
    > talking about attributes inside style sections and demonstrated his
    > ignorance about the word deprecated.
    >
    > The idiot is simply incapable of learning. Anything.


    As if you know it all right?
    Then if you would, mister expert, please define "deprecated".
    On the very page that was linked to, it clearly stated that these
    attributes were to be avoided in use in favor of proper css.

    In this particular case, the poster was wanting to know how to do the same
    thing using CSS. So where exactly am I wrong? Be specific.
    richard, Mar 8, 2010
    #5
  6. richard

    rf Guest

    "richard" <> wrote in message
    news:79913mqijz0k.v72ww3yo5ytq$...
    > On Mon, 08 Mar 2010 06:38:22 GMT, rf wrote:
    >


    >> The idiot is simply incapable of learning. Anything.

    >
    > As if you know it all right?


    Yes, I do.

    > Then if you would, mister expert, please define "deprecated".


    Should not use, not must not use. If you had any idea at all about how to
    read the reccommendations you might know this.

    > On the very page that was linked to, it clearly stated that these
    > attributes were to be avoided in use in favor of proper css.


    Should != must.

    > In this particular case, the poster was wanting to know how to do the same
    > thing using CSS. So where exactly am I wrong? Be specific.


    Covered elsewhere.

    Just **** off RtS, you have no place in these technical groups, which cover
    matters that you have absolutely no chance of comprehending.
    rf, Mar 8, 2010
    #6
  7. richard

    rf Guest

    "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:
    >>> On Mon, 8 Mar 2010 06:55:30 +0100, Paul wrote:
    >>>
    >>>> In my website I have tables with lots of cells like this sample:
    >>>> <td width="20%"><center><font size="2" face="Verdana">
    >>>> <a href="http://www.mywebsite.com/my-html-pages/page01.html">
    >>>> <img src="http://www.mywebsite.com/images/image01.jpg"
    >>>> title="description of image"><br>
    >>>> Description-of-this-cell
    >>>> </a>
    >>>> </td>
    >>>>
    >>>> So there are many instructions inside the cell like this
    >>>>
    >>>> <td width="20%"><center><font size="2" face="Verdana">
    >>>>
    >>>> that are identical to those written in all the other cells. And I
    >>>> know that
    >>>> this is wrong.
    >>>>
    >>>> Can you please suggest me a css sample to write these instructions only
    >>>> one
    >>>> time for all cells? Thank you.
    >>>> Paul
    >>>
    >>> In the head section above the "body".
    >>>
    >>> <style type="text/css">
    >>>
    >>> td.cellstyle="font-size:200; font-family:Verdana; text-align:center;"
    >>>
    >>> </style>
    >>>
    >>> In the body
    >>>
    >>> <table>
    >>> <tr>
    >>> <td class=cellstyle>yada yada</td>
    >>> </tr>
    >>> </table>
    >>>
    >>> Plenty of css tutorials available 24/7 on the internet. Suggest you
    >>> learn
    >>> how to use css properly.

    >>
    >> I suggest that *you* learn CSS too. There are at least 3 errors in your
    >> code, one serious shortcoming, and one serious inefficiency.

    >
    >
    > Why don't you show me your profound superior knowledge and explain
    > precisely how I am wrong?


    RtS, you are always profoundly and usually completely wrong.

    > granted, I did make one mistake with the equal sign after td.cellstyle but
    > it would appear that Paul caught onto that mistake quickly.


    So, you had to have the OP, a rank beginner by the tone of his post, correct
    the one totally bloody obvious error YOU had found in your post.

    What about the fact that the property/value pairs in CSS rules are enclosed
    in {...}, not "...". Missed that one, didn't you.

    What about the fact that your font size has no units, which is invalid
    unless the property value is 0. One can only assume that in your totally
    limited experience you must have decided that the font elements attribute
    size='2' must somehow, in some arcane mannar, translate to a CSS property
    value of 200%, and that you really really meant to write font-size: 200%;.
    Missed that one didn't you.

    And how bloody many times has Verdana been decried here and elsewhere, but
    you would have notice that from over there in your trucking group.

    And where did you mention the width of the OP's cell. Missed that one,
    didn't you. To bloody st00pid to remember what was in the beginning of a
    line of code once you read to the end of it.

    I won't mention the other couple of problems with your "CSS" and the quotes
    are totally intentional. This is, probably too subtle for your level of
    stupidity though.
    rf, Mar 8, 2010
    #7
  8. richard

    Roy A. Guest

    On 8 Mar, 07:49, "Paul" <> wrote:
    > "C A Upsdell" <> ha scritto nel messaggionews:hn25fs$cg0$-september.org...
    >
    > > On 2010-03-08 1:21, richard wrote:
    > >> On Mon, 8 Mar 2010 06:55:30 +0100, Paul wrote:

    >
    > >> Plenty of css tutorials available 24/7 on the internet. Suggest you learn
    > >> how to use css properly.

    >
    > > I suggest that *you* learn CSS too.  There are at least 3 errors in your
    > > code, one serious shortcoming, and one serious inefficiency.

    >
    > Thank you for your  suggestions.
    > I have modificed the codes in this way and now it seems to be OK
    >
    > td.cellstyle {
    > font-size: 12; font-family: Verdana; text-align: center;


    Glad you got rid of the equal sign.

    You need a unit for you font-size, e.g. 'em', 'px' or '%'. The value
    12 don't mean anything.
    <http://www.w3.org/TR/CSS2/fonts.html#propdef-font-size>

    You should avoid 'Verdana' for body text. That's because Verdana looks
    bigger than it is. If the users don't have Verdana on their computers,
    the fonts they use would look smaller than you think.

    You should also specify some fall back if the users don't have your
    chosen font on their computer, e.g.:

    'font-family: Arial, Helvetica, Verdana, "Bitstream Vera Sans", sans-
    serif;'

    If all data cells in your tables have are the same you could set a
    class on your table instead:

    ..tablestyle td {

    font-size: 12px; font-family: font-family: Arial, Helvetica,
    Verdana, "Bitstream Vera Sans", sans-serif; text-align: center;

    }
    Roy A., Mar 8, 2010
    #8
  9. richard

    richard Guest

    On Mon, 08 Mar 2010 08:15:24 GMT, rf wrote:

    > "richard" <> wrote in message
    > news:79913mqijz0k.v72ww3yo5ytq$...
    >> On Mon, 08 Mar 2010 06:38:22 GMT, rf wrote:
    >>

    >
    >>> The idiot is simply incapable of learning. Anything.

    >>
    >> As if you know it all right?

    >
    > Yes, I do.
    >
    >> Then if you would, mister expert, please define "deprecated".

    >
    > Should not use, not must not use. If you had any idea at all about how to
    > read the reccommendations you might know this.
    >
    >> On the very page that was linked to, it clearly stated that these
    >> attributes were to be avoided in use in favor of proper css.

    >
    > Should != must.
    >
    >> In this particular case, the poster was wanting to know how to do the same
    >> thing using CSS. So where exactly am I wrong? Be specific.

    >
    > Covered elsewhere.
    >
    > Just **** off RtS, you have no place in these technical groups, which cover
    > matters that you have absolutely no chance of comprehending.


    IOW, you can't find any fault with what I suggested. Just using the time as
    a means to bash for the sake of bashing.
    richard, Mar 8, 2010
    #9
  10. richard

    richard Guest

    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:
    >>>> On Mon, 8 Mar 2010 06:55:30 +0100, Paul wrote:
    >>>>
    >>>>> In my website I have tables with lots of cells like this sample:
    >>>>> <td width="20%"><center><font size="2" face="Verdana">
    >>>>> <a href="http://www.mywebsite.com/my-html-pages/page01.html">
    >>>>> <img src="http://www.mywebsite.com/images/image01.jpg"
    >>>>> title="description of image"><br>
    >>>>> Description-of-this-cell
    >>>>> </a>
    >>>>> </td>
    >>>>>
    >>>>> So there are many instructions inside the cell like this
    >>>>>
    >>>>> <td width="20%"><center><font size="2" face="Verdana">
    >>>>>
    >>>>> that are identical to those written in all the other cells. And I
    >>>>> know that
    >>>>> this is wrong.
    >>>>>
    >>>>> Can you please suggest me a css sample to write these instructions only
    >>>>> one
    >>>>> time for all cells? Thank you.
    >>>>> Paul
    >>>>
    >>>> In the head section above the "body".
    >>>>
    >>>> <style type="text/css">
    >>>>
    >>>> td.cellstyle="font-size:200; font-family:Verdana; text-align:center;"
    >>>>
    >>>> </style>
    >>>>
    >>>> In the body
    >>>>
    >>>> <table>
    >>>> <tr>
    >>>> <td class=cellstyle>yada yada</td>
    >>>> </tr>
    >>>> </table>
    >>>>
    >>>> Plenty of css tutorials available 24/7 on the internet. Suggest you
    >>>> learn
    >>>> how to use css properly.
    >>>
    >>> I suggest that *you* learn CSS too. There are at least 3 errors in your
    >>> code, one serious shortcoming, and one serious inefficiency.

    >>
    >>
    >> Why don't you show me your profound superior knowledge and explain
    >> precisely how I am wrong?

    >
    > RtS, you are always profoundly and usually completely wrong.
    >
    >> granted, I did make one mistake with the equal sign after td.cellstyle but
    >> it would appear that Paul caught onto that mistake quickly.

    >
    > So, you had to have the OP, a rank beginner by the tone of his post, correct
    > the one totally bloody obvious error YOU had found in your post.
    >
    > What about the fact that the property/value pairs in CSS rules are enclosed
    > in {...}, not "...". Missed that one, didn't you.
    >
    > What about the fact that your font size has no units, which is invalid
    > unless the property value is 0. One can only assume that in your totally
    > limited experience you must have decided that the font elements attribute
    > size='2' must somehow, in some arcane mannar, translate to a CSS property
    > value of 200%, and that you really really meant to write font-size: 200%;.
    > Missed that one didn't you.
    >
    > And how bloody many times has Verdana been decried here and elsewhere, but
    > you would have notice that from over there in your trucking group.
    >
    > And where did you mention the width of the OP's cell. Missed that one,
    > didn't you. To bloody st00pid to remember what was in the beginning of a
    > line of code once you read to the end of it.
    >
    > I won't mention the other couple of problems with your "CSS" and the quotes
    > are totally intentional. This is, probably too subtle for your level of
    > stupidity though.


    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".
    richard, Mar 8, 2010
    #10
  11. richard

    Doug Miller Guest

    In article <mgn7ai1jpucf$>, wrote:
    >What? You've never heard of the font sizing using numbers alone as in the
    >"200" I showed?


    That's not valid CSS.

    >As you know, there are 8 levels of text size. In CSS these 8 levels are
    >represented by the numbers 100,200,300..........800.


    Wrong.
    http://www.w3schools.com/css/pr_font_font-size.asp

    >There is nothing else to include such as em, px, or %.


    Wrong again.

    >THe OP was using size="2". The valid numbers for "size" are 1 through 8.


    Those are valid values for the size attribute of the <font> element in *HTML*.
    They are *not* valid values for the the font-size property in CSS.

    >Migration into CSS just changed this value to include "00".


    Wrong yet again.
    Doug Miller, Mar 8, 2010
    #11
  12. richard

    Gus Richter Guest

    On 3/8/2010 1:25 PM, Doug Miller wrote:
    > In article<mgn7ai1jpucf$>, wrote:
    >> What? You've never heard of the font sizing using numbers alone as in the
    >> "200" I showed?

    >
    > That's not valid CSS.
    >
    >> As you know, there are 8 levels of text size. In CSS these 8 levels are
    >> represented by the numbers 100,200,300..........800.

    >
    > Wrong.
    > http://www.w3schools.com/css/pr_font_font-size.asp
    >
    >> There is nothing else to include such as em, px, or %.

    >
    > Wrong again.
    >
    >> THe OP was using size="2". The valid numbers for "size" are 1 through 8.

    >
    > Those are valid values for the size attribute of the<font> element in *HTML*.
    > They are *not* valid values for the the font-size property in CSS.
    >
    >> Migration into CSS just changed this value to include "00".

    >
    > Wrong yet again.



    Please don't quote any source other than W3C as a voice of authority.
    The source you quoted has been known to make mistakes and/or omit
    things, although I have not, nor will I, go and check in this instance.
    For this instance you should use this as a reference:

    <http://www.w3.org/TR/CSS21/fonts.html#propdef-font-size>

    From the horse's mouth, so to speak - the whole enchilada - and from
    where your source will take its information.

    --
    Gus
    After Monday and Tuesday even the calendar says
    W T F ............
    Gus Richter, Mar 8, 2010
    #12
  13. richard

    richard Guest

    On Mon, 08 Mar 2010 18:25:28 GMT, Doug Miller wrote:

    > In article <mgn7ai1jpucf$>, wrote:
    >>What? You've never heard of the font sizing using numbers alone as in the
    >>"200" I showed?

    >
    > That's not valid CSS.
    >
    >>As you know, there are 8 levels of text size. In CSS these 8 levels are
    >>represented by the numbers 100,200,300..........800.

    >
    > Wrong.
    > http://www.w3schools.com/css/pr_font_font-size.asp
    >
    >>There is nothing else to include such as em, px, or %.

    >
    > Wrong again.
    >
    >>THe OP was using size="2". The valid numbers for "size" are 1 through 8.

    >
    > Those are valid values for the size attribute of the <font> element in *HTML*.
    > They are *not* valid values for the the font-size property in CSS.
    >
    >>Migration into CSS just changed this value to include "00".

    >
    > Wrong yet again.


    http://www.w3schools.com/css/css_font.asp

    Have a look here.
    Scroll to the bottom and look at font-weight.
    Where I show font-size, it should be font-weight.
    with the actual values ranging from 100 to 900.
    richard, Mar 8, 2010
    #13
  14. 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#propdef-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
    Jonathan N. Little, Mar 8, 2010
    #14
  15. Doug Miller wrote:

    > That's not valid CSS.
    > Wrong.
    > Wrong again.
    > They are *not* valid values
    > Wrong yet again.


    <lol> That's a typical response to an RtS post!

    --
    -bts
    -Could. Not. Resist.
    Beauregard T. Shagnasty, Mar 8, 2010
    #15
  16. richard

    dorayme Guest

    In article <hn3isr$rdq$-september.org>,
    "Jonathan N. Little" <> wrote:

    > 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.


    Which is OK if you are sure you are happy to allow user
    preference if they have not got your favourite font...

    --
    dorayme
    dorayme, Mar 8, 2010
    #16
  17. richard

    dorayme Guest

    In article <hn3isr$rdq$-september.org>,
    "Jonathan N. Little" <> wrote:

    > 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


    If you quoted more of the context, you would have found a 4th for
    your little diagram. Why do things by three quarter measure?

    --
    dorayme
    dorayme, Mar 8, 2010
    #17
  18. dorayme wrote:
    > In article<hn3isr$rdq$-september.org>,
    > "Jonathan N. Little"<> wrote:
    >
    >> 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

    >
    > If you quoted more of the context, you would have found a 4th for
    > your little diagram. Why do things by three quarter measure?
    >


    Not sure what you mean, but within the quoted section there is a 4th,
    the quotes.

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Mar 8, 2010
    #18
  19. dorayme wrote:
    > In article<hn3isr$rdq$-september.org>,
    > "Jonathan N. Little"<> wrote:
    >
    >> 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.

    >
    > Which is OK if you are sure you are happy to allow user
    > preference if they have not got your favourite font...
    >


    You have no choice, if they do not have the font that you specify it
    will *not* display (font embedding not ready for prime-time). My point
    was by not defining a generic family in this instance would mean a
    substitution would be more divergent since it would shift from a
    sans-serif font to a serif one. Better to at least define a fallback
    generic family so the substitution would be of the same type.

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Mar 8, 2010
    #19
  20. richard

    rf Guest

    "richard" <> wrote in message
    news:mgn7ai1jpucf$...
    > On Mon, 08 Mar 2010 08:15:30 GMT, rf wrote:

    stupidity though.

    > 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".


    What a load of complete rats droppings.

    Please cite, from the W3 recomendations, a page that supports even *ONE* of
    the above moronic statements. Especially that one in the last line. Must
    come right out of your own tiny head, or perhaps your arse.




    Waiting...




    Didn't think you could, you blithering idiot.
    rf, Mar 8, 2010
    #20
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric
    Replies:
    4
    Views:
    713
    clintonG
    Dec 24, 2004
  2. tom watson

    print.css and screen.css

    tom watson, Sep 9, 2003, in forum: HTML
    Replies:
    1
    Views:
    464
    Jukka K. Korpela
    Sep 9, 2003
  3. Replies:
    6
    Views:
    549
    Jonathan N. Little
    Mar 18, 2006
  4. AF
    Replies:
    17
    Views:
    599
    Nije Nego
    Aug 9, 2006
  5. richard
    Replies:
    12
    Views:
    753
    dorayme
    Mar 9, 2010
Loading...

Share This Page