-1

On the right side, (under Pastas), you can see a standard collection of <li>s within a <ul>.

<ul></ul>
  <li>item</li>
  <li>item</li>
  <li>item</li>
<ul></ul>

On the left side (Pizzas), I put two <p>s in each <li>, so I could get the left-float and right-float effect.

<ul></ul>
  <li><p>item</p><p>price</p></li>
  <li><p>item</p><p>price</p></li>
  <li><p>item</p><p>price</p></li>
<ul></ul>

Obviously the presence of the <p> tags has spaced the lines too far apart.

So what is the right way to fix this?

Do I have to make a new div column just for the prices?

Thanks

here

user229044
  • 232,980
  • 40
  • 330
  • 338
dwilbank
  • 2,470
  • 2
  • 26
  • 37

1 Answers1

2

Use DIV instead - or try something like this:

<p>Classic - Pepperoni, Olives, Onions <span class="text-orientation-right-css">11.99</span></p>

You should also have a look at bootstrap, blueprint or 960gs. Perfect frameworks for non-html/css guys :)

Thomas Schwärzl
  • 9,518
  • 6
  • 43
  • 69
  • why not just `
  • Classic....11.99
  • `? does this work? – Thomas Schwärzl Jan 26 '14 at 08:13
  • 1
    The class in the span wasn't being respected at all. When I changed everything to two divs, it worked perfectly. – dwilbank Jan 26 '14 at 08:15