Need help formatting my html

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moorcroft
    New Member
    • Mar 2008
    • 57

    Need help formatting my html

    I have the following list items to display details on an application. The item for proposal sometimes has lots of text which goes to a new line. The problem is that the new line always start underneath the label text and doesn't look correct. Is it possible to get the text to wrap around on the right hand side?

    Code:
    <li><div><span>Application Number</span><xsl:value-of select="APPLICATION_NUMBER" /></div></li>
    		<li><div><span>Site Address</span><xsl:value-of select="SITE_ADDRESS" />&nbsp;</div></li>
    		<li><div><span>Application Type</span><xsl:value-of select="APPLICATION_TYPE_DESCRIPTION" />&nbsp;</div></li>
    		<li><div><span>Development Type</span><xsl:value-of select="DEVELOPMENT_TYPES" />&nbsp;</div></li>
    		<li><div><span>Proposal</span><xsl:value-of select="PROPOSAL" />&nbsp;</div></li>
    		<li><div><span>Current Status</span><xsl:value-of select="STATUS_DESCRIPTION" />&nbsp;</div></li>
    Here's a screenshot of what I mean:

    Last edited by moorcroft; Dec 8 '08, 09:55 AM. Reason: added image
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you have tabular data here. use a table.

    (you could (if you don't like tables) float the keyword and put a margin on the text)

    regards

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Please do not post questions in the 'insights' area of our HTML/CSS forum. The 'answers' area is the correct place to post questions.

      Thanks,
      Moderator.

      Comment

      • clain
        New Member
        • Feb 2007
        • 79

        #4
        Use tables.. float can not fix it. you will jump into trouble if you use float. as you already have a text item in left .

        Comment

        • numberwhun
          Recognized Expert Moderator Specialist
          • May 2007
          • 3467

          #5
          If you wanted to stay clear of tables (which would definitely work for your purposes), why not try implementing something similar to a tableless form using only css.

          I don't have a working example, but its always worth a shot if you ask me.

          Regards,

          Jeff

          Comment

          Working...