SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast jnbdz's Avatar
    Join Date
    Apr 2005
    Location
    Montreal
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    non-breaking space

    Hi, I making a Website in french and we are using special characters like ( « ). The problem is that in between that special character and the word I put a non-breaking space and I have added in css text-align:justify;, and it breaks between the special character and the word when the phrase is done.

    So my question is how can I stop it from breaking. Thanks allot in advance.

    Here is the code:

    HTML Code:
    <p style="text-align: justify;">Saviez-vous que l&rsquo;expression &laquo;&nbsp;G-string&nbsp;&raquo; a pour origine une &oelig;uvre de Jean-S&eacute;bastien Bach&nbsp;? Que &laquo;&nbsp;m&eacute;moire-cache&nbsp;&raquo; utilis&eacute; en informatique vient d&rsquo;un ancien mot des coureurs des bois import&eacute; dans la langue anglaise&nbsp;? Que &laquo;&nbsp;caucus&nbsp;&raquo; n&rsquo;est pas latin mais algonquin ? Que les mots &laquo;&nbsp;canceller&nbsp;&raquo; &laquo;&nbsp;mappe&nbsp;&raquo; et &laquo;&nbsp;barguigner&nbsp;&raquo; ne sont pas des anglicismes, mais parfaitement fran&ccedil;ais&nbsp;?&nbsp;Que signifient &laquo;&nbsp;interboliser&nbsp;&raquo;, &laquo;&nbsp;cobir&nbsp;&raquo;, &laquo;&nbsp;d&eacute;biscailler&nbsp;&raquo;, &laquo;&nbsp;&eacute;barouir&nbsp;&raquo;&nbsp;? Pourquoi dit-on &laquo;&nbsp;frencher&nbsp;&raquo;&nbsp;? Pourquoi refuser &laquo;&nbsp;cheap&nbsp;&raquo; alors qu&rsquo;il n&rsquo;existe aucun mot &eacute;quivalent en fran&ccedil;ais&nbsp;?</p>
    Last edited by jnbdz; Oct 31, 2008 at 14:49.

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Browsers aren't really allowed to break lines at anything but white space characters (space, tab, line feed, carraige return), but IE and Opera do break lines at certain punctuation characters. There's really nothing we can do about it, I'm afraid.
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

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