title: Text isn't wrapping inside UL LI A
body: <p>I have an XSLT script to output a simple vertical menu, however on a couple of my links the text is not wrapping and I have no idea why!</p>
  
  <p>Have tried to put a DIV inside the link, as well as a <p> to contain the text but to no avail. </p>
  
  <p>Anybody had this kind of issue before?</p>
  
  <p>XSLT:</p>
  
  <pre><code>    &lt;xsl:template match="/"&gt;
  
    &lt;xsl:variable name="items" select="$currentPage/ancestor-or-self::* [@isDoc and @level = 2]/* [@isDoc and string(umbracoNaviHide) != '1']"/&gt;
  
  &lt;!-- The fun starts here --&gt;
    &lt;div id="subnavtitle"&gt;
    &lt;xsl:value-of select="$currentPage/@nodeName" /&gt;
    &lt;/div&gt;
  &lt;xsl:if test="count($items) &amp;gt; 0"&gt;
  &lt;ul&gt;
  &lt;xsl:for-each select="$items"&gt;
    &lt;li&gt;
  
      &lt;xsl:if test="@id = $currentPage/@id"&gt;
          &lt;xsl:attribute name="class"&gt;current&lt;/xsl:attribute&gt;
        &lt;/xsl:if&gt;
      &lt;xsl:if test="@id = $currentPage/../@id"&gt;
          &lt;xsl:attribute name="class"&gt;current&lt;/xsl:attribute&gt;
        &lt;/xsl:if&gt;
      &lt;a href="{umbraco.library:NiceUrl(@id)}" &gt;
        &lt;p style="width: 100px;"&gt;
          &lt;xsl:value-of select="translate(@nodeName,' ',' ')"/&gt;
          &lt;/p&gt;
      &lt;/a&gt;
  
    &lt;/li&gt;
  &lt;/xsl:for-each&gt;
  &lt;/ul&gt;
      &lt;/xsl:if&gt;
  
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>#subNavigation {
    padding-top: 10px;
    padding-right: 10px;
    padding-left: 10px;
    font-weight: bold;
    font-size: 12px;
    background-size: 100% auto;
    margin: 0px;
  
  }
  #subNavigation ul {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
  }
  #subNavigation ul:after {
    content: ".";
    display: block;
    font-size: 0;
    height: 0;
    clear: both;
    visibility: hidden;
  }
  * html #subNavigation ul {
    zoom: 1;
  }
  *:first-child + html #subNavigation ul {
    zoom: 1;
  }
  #subNavigation ul li {
    list-style-image: none;
    list-style-type: none;
    margin-left: 0px;
    white-space: nowrap;
    display: inline;
    float: left;
      background: url(Designit_Green/images/nav.png) repeat-x;
    margin-bottom: 10px;
    width: 150px;
  }
  
  #subNavigation li.current {
    background: #FFF url(Designit_Green/images/nav-item-activeXXX.png) left top repeat-x;
  }
  #subNavigation li.current a:hover {
    background: #FFF url(Designit_Green/images/nav-item-activeXXX.png) left top repeat-x;
  }
  #subNavigation li.current a {
    color: #333;
  }
  #subNavigation li:last-child {
    border: none;
  }
  #subNavigation a:link, #subNavigation a:visited {
    padding-left: 15px;
    padding-right: 0px;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #FFF;
    display: block;
    text-decoration: none;
  
  } 
  </code></pre>
  
  <p>You can take a look at the result here: <a href="http://bellstest.info/bar-restaurant.aspx" rel="noreferrer">http://bellstest.info/bar-restaurant.aspx</a>
  The Issue is with the left hand navigation.</p>