Search code examples
htmlcssalignment

CSS - display two text blocks on the same line


How can I position two text blocks on the same line, one to the left and the one to the right, without using floats?

Like this:

Bla bla                   5
Whatever                 25
Boo                      12

Each line is a list item - <LI>


Solution

  • You could use tables. Also, you could use absolute positioning and setting the same value for top and bottom to each ul object