ordered list fonts

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ken Innes

    ordered list fonts

    Apparently, surrounding an ordered list by a font command is illegal.
    So how do I specify the font style and size for the list elements?
    Putting font tags on each list item works, except that the list
    numbers don't display in that font.

    Invalid, but it works on all (most?) browsers:

    <font face="Arial" size=2>
    <ol>
    <li>List Item A<br>
    <li>List Item B<br>
    </ol>
    </font>

    Valid, but the list numbers aren't displayed in the font:

    <ol>
    <li><font face="Arial" size=2>List Item A</font><br>
    <li><font face="Arial" size=2>List Item B</font><br>
    </ol>
  • Kris

    #2
    Re: ordered list fonts

    In article <70452692.03081 91130.1f3040c3@ posting.google. com>,
    primehalo@hotma il.com (Ken Innes) wrote:
    [color=blue]
    > I do use CSS, but I want the page to look good without it too.[/color]

    The nature of CSS is that the user has control. If he does not like what
    you like as the author, he disables it and it will look different. One
    step further and he applies his own stylesheet to override yours.

    Basically, you should stick to CSS for presentation. All other is
    off-limits (and most of the time invalid as well) when it comes to
    presentational fluff.

    --
    Kris
    kristiaan@xs4al l.netherlands (nl)
    "We called him Tortoise because he taught us" said the Mock Turtle.

    Comment

    • Jukka K. Korpela

      #3
      Re: ordered list fonts

      primehalo@hotma il.com (Ken Innes) wrote:
      [color=blue]
      > I can put the font tags between <li></li>, but it says putting them
      > between <ol></ol> is invalid.[/color]

      What "it"? And what does your message relate to? Please learn to quote
      properly. Upside-down fullquoting sends the message that you have not
      actually cared to read what you quote and to indicate what you are
      commenting on.
      [color=blue]
      > Does this basically mean that,
      > according to W3C, it is absolutely impossible to change the font of
      > ordered list numbers without using Cascading Style Sheets?[/color]

      Yes. Besides, CSS is not guaranteed to affect the numbers either.
      It is just one possible interpretation that font-size affects the
      numbers (though a natural one).
      [color=blue]
      > I do like CSS, but I want my page to look good without them too.[/color]

      You presumably have not understood what CSS, and you keep repeating
      that.
      [color=blue]
      > This seems unnecessarily limiting.[/color]

      Actually, HTML should have _no_ markup for presentational issues. It
      just crept in.
      [color=blue]
      > And both of the "invalid" ways of
      > doing it will work on all browsers I've tried (IE, Netscape,
      > Mozilla, Opera).[/color]

      Consider it an error that will hopefully be fixed soon.
      [color=blue]
      > <font face="Arial" size=2>[/color]

      Your real problem is probably your fixed idea of making the list appear
      in smaller font - namely smaller than the user has chosedn.

      --
      Yucca, http://www.cs.tut.fi/~jkorpela/
      Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

      Comment

      • Stan Brown

        #4
        Re: ordered list fonts

        Please don't post upside down, and please do trim your quotes.


        In article <70452692.03081 91142.7cbe26ac@ posting.google. com> in
        comp.infosystem s.www.authoring.html, Ken Innes
        <primehalo@hotm ail.com> wrote:[color=blue]
        >I can put the font tags between <li></li>, but it says putting them
        >between <ol></ol> is invalid.[/color]

        Pretty much anything _except_ <li> is invalid as a direct child of
        <ol>.
        [color=blue]
        >Does this basically mean that, according
        >to W3C, it is absolutely impossible to change the font of ordered list
        >numbers without using Cascading Style Sheets?[/color]

        Yes. (Was my earlier answer, which you quoted, _really_ that
        obscure?)

        --
        Stan Brown, Oak Road Systems, Cortland County, New York, USA

        HTML 4.01 spec: http://www.w3.org/TR/html401/
        validator: http://validator.w3.org/
        CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
        validator: http://jigsaw.w3.org/css-validator/

        Comment

        • Beauregard T. Shagnasty

          #5
          Re: ordered list fonts

          Ken Innes pounced upon this pigeonhole and pronounced:

          I said this:[color=blue][color=green]
          > > Discover CSS.
          > >
          > > In the <head> or your style sheet:
          > >
          > > <style type="text/css">
          > > li { font-family: arial, sans-serif }
          > > <style
          > >
          > > The HTML:
          > >
          > > <ol>
          > > <li>List Item A</li>
          > > <li>List Item B</li>
          > > </ol>
          > >
          > > Close the item with </li>, not <br>.[/color][/color]
          [color=blue]
          > I do use CSS, but I want the page to look good without it too.[/color]

          Chances are any visitors that don't see your CSS will not make use of your
          <font> tags either, as they would likely be using text browsers.

          Have you tried the above?

          --
          -bts
          -This space intentionally left blank.

          Comment

          Working...