Results 1 to 8 of 8
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Wellington, Wellington, New Zealand
    Posts
    378
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Small caps won't work

    Hi

    I'm going mad here. My HTML file contains this:<pre><html>
    <head>
    <link rel="stylesheet" href="test.css" type="text/css">
    </head>
    <body>
    <table cellspacing="0" cellpadding="5" border="1">
    <tr>
    <td class=

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Small caps won't work

    You're in the correct forum... it's CSS, and that's decidedly a web design thing. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

    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?
    -Mark

  3. #3
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Small caps won't work

    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.

  4. #4
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Wellington, Wellington, New Zealand
    Posts
    378
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Small caps won't work

    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. Damn. It's definitely Friday.

    Thanks
    Dale

  5. #5
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Small caps won't work

    Dale

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

    <html>
    <head>
    <link rel="stylesheet" href="test.css" type="text/css">
    </head>
    <body>
    <table cellspacing="0" cellpadding="5" border="1">
    <tr>
    <td class="caps">small caps with css</td>
    </tr>
    <td> small caps without css</td>
    </table>

    </body>
    </html>

    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. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    Jerry

  6. #6
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Wellington, Wellington, New Zealand
    Posts
    378
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Small caps won't work

    I've finally found the problem. Look carefully at the following code and spot the offending characters:<pre> <table cellspacing="0" cellpadding="5" border="1">
    <tr>
    <td class=

  7. #7
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Small caps won't work

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

  8. #8
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Small caps won't work

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

    Glad you got it fixed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •