-2

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
  • 222,134
  • 40
  • 319
  • 330
dwilbank
  • 2,412
  • 2
  • 22
  • 35

1 Answers1

1

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
  • 8,901
  • 6
  • 42
  • 67
  • 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