• Small caps won’t work

    Author
    Topic
    #428224

    Hi

    I’m going mad here. My HTML file contains this:

    
    
    
    
        <td class=
    Viewing 2 reply threads
    Author
    Replies
    • #994371

      You’re in the correct forum… it’s CSS, and that’s decidedly a web design thing. smile

      It’s possible that your chosen font does not support small caps, although I’ve never heard of such a thing. Have you tried alternate fonts to see if they render properly? And which browser platforms have you tested this in/on?

    • #994376

      I did a quick test with your exact code. Oddly, it renders perfect SmallCaps outside of the table. There’s something unique (odd) about that style working inside the table cell. I didn’t have time to play around with assigning the style to the TD class… You may want to try that.

      • #994377

        Hi Mark

        Yes, I’m getting the same results. Curiously (apparently) identical code is working in other documents, which proves it’s not the platform and (I think) not the font. But obviously there IS a difference.

        During the weekend (it’s nearly 5pm on a Friday here in New Zealand) I’ll try stripping one of the “working” documents down to the bare essentials and see if I can get to the bottom of it.

        PS: I just discover that inadvertently clicking the Escape key deletes everything you’ve patiently entered into the WOPR message box.  It’s definitely Friday.

        Thanks
        Dale

        • #994473

          Dale

          Late in the day, but time zones have got in the way, you can do it this way:

          small caps with css
          small caps without css

          using this as your style sheet:

          td{ font-family : “Arial, Helvetica, sans-serif”;}

          td.caps {
          font-variant: small-caps
          }

          Obviously use the names you prefer but these are my preferred shortened descriptors. grin

    • #994669

      I’ve finally found the problem. Look carefully at the following code and spot the offending characters:

              
                  <td class=
      • #994678

        Oy, all the quotes look the same to me here, but that would certainly do it! Glad you found the problem.

      • #994761

        Oh geez! That’s what I get for copying and pasting into my test example…

        Glad you got it fixed.

    Viewing 2 reply threads
    Reply To: Small caps won’t work

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: