I’m trying to CSS style some HTML to look like the following image. I’ve decided to use a definition list with some classes to do this.

I’m trying to
- move the price to immediately follow the dt tag and
- remove the default
ddstyling so that it is all the way to the left.
Here is my HTML:
<dl>
<dt>Classic Italian Hoagie</dt>
<dd class="price">$8</dd>
<dd class="desc">Pepperoni, salimi, capicola, banana peppers, romaine, tomatoes, provolone & housemade olive oil & herb vinaigrette on a hoagie bun</dd>
</dl>
To answer the first part of your question, floating the
dtand the.priceto the left will line them up next to one another.You can then get the other
ddtags toclear:leftwhich solves your problem.Working example
As for your second question, I don’t see any default styling causing margins on the
dd. It looks as required for me but if not you can always put amargin-left:0;on thedd.