[help] Display Information - Left, Right, Middle

Discussion in 'HTML & Website Design' started by Hip Hop, Jan 27, 2013.

  1. #1
    I want to display the information similar to this;

    [​IMG]

    How do I align my text to look like that? Could you provide me with an html code to do so?

    Thank you.
     
    Hip Hop, Jan 27, 2013 IP
  2. Seemydeath

    Seemydeath Member

    Messages:
    86
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #2
    you can do this with a unordered list and some CSS, if you want to stay 'semantic' that is

    <ul id="text_block">
    <li class>Text 1, a bit longer</li>
    <li class>Text 2</li>
    <li class>Text 3</li>
    </ul>

    and the CSS

    ul#text_block {display: table; margin: 0; padding: 5px;}
    ul#text_block li {list-style: none; display: inline; margin: 0 40px 0 0;}

    hope this helps
     
    Seemydeath, Jan 27, 2013 IP