whitespace

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • juliette
    New Member
    • Sep 2008
    • 1

    whitespace

    I want two spaces between two words, and doing <pre>the words</pre> changes the font to a font I don't want, and doing &nbsp; makes the space the incorrect size.

    I need the words to be separated by EXACTLY two spaces and WITHOUT changing the font.

    Does anybody know how to do this?
  • David Laakso
    Recognized Expert Contributor
    • Aug 2008
    • 397

    #2
    You can override the default font-family for pre by specifying the specific font you wish to use in the CSS-- providing the end user has it on their system. Exact two-space spacing between words with pre (even using word-spacing), cross-browser and cross-os, is yet another matter. I doubt there's a solution for that one. You are at the whim of the browser and/or os afaik.

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      You could try using the "white-space: pre" style.
      That shouldn't change the font but still render white-spaces in the same manner <pre> would.

      Comment

      • asedt
        New Member
        • Jun 2008
        • 130

        #4
        http://www.htmldog.com/reference/cssproperties/word-spacing/

        This is usefull

        Comment

        Working...