My head always starts spinning. There is so much I don't know and/or understand.
But, I was sort of able to do the menu with Tyssen's code. I did an unordered list because some of the later items added to the list are A., B., C., etc. I have a couple of issues. Here's the page.
http://peacefuldriver.net/truethaicss/menu2.htm
You can see that the dotted line goes under the price. I could fix that by setting the "span.price" right position to -50 and the menu width to 75%. I just left it as is here.
In Firefox, the dotted line drops down to the next line and doesn't run across from the item to the price. Neither of those things happen with Tyssen's page.
One other thing. Some of the menu items have one price for say tofu and another for chicken. I couldn't figure out how to get two dotted linesfor one list item when there were two prices. Eg.,
Item 10 Pad Thai
With Tofu......................$7.95
With Chicken..................$8.95
Code:
#contents{
background-color: #E7DB84;
width: 700px;
/*height:100%;*/
text-align: left;
padding: 10px 10px 10px 10px;
}
#menu{
width:100%;
}
#menu ul{
list-style-type: none;
}
#menu li{
width: 100%;
position: relative;
margin-bottom: 1em;
border-bottom: 1px dotted #000;
}
span.item {
position: relative;
bottom: -1px;
padding: 0 1px;
background-color: #E7DB84;
}
span.price {
position: absolute;
right: 0px; bottom: -6px;
}
h2 {
color: #630000;
font-family: "Times New Roman", Times, serif;
font-size: 1em;
font-weight: bold;
margin-bottom: -1.2em;
}
HTML Code:
<div id="contents">
<div id="menu">
Appetizers
<ul>
<li>
<h2>1. Golden Wheel of Shrimp & Ham Delight</h2>
<p><span class="item">Shrimp and ham are chopped and infused with herbs
Comes with plum sauce for dipping. (8 slices)</span><span class="price">$8.50</span></p>
</li>
<li>
<h2>2. Fried Egg Rolls — Golden Kingdom style</h2>
<p><span class="item">The best eggrolls in the world! (2)</span><span class="price"> $3.95</span>
</p>
</li>
<li>
<h2>3. True Thai Vegetable Fried Egg Rolls</h2>
<p><span class="item">Meatless vegetarian egg rolls.(2)</span><span class="price">$3.75 </span>
</p>
</li>
<li>
<h2>4. Original Fresh Thai Spring Rolls</h2>
<p><span class="item">Seasoned pork and jumbo shrimp wrapped in a
delicate rice paper with fresh vegetables and angel
hair noodles. Peanut vinegraitte sauce. (2)</span><span class="price"> $4.95 </span>
</p>
</li>
</ul>
</div><!--menu-->
</div><!--contents-->
</body>
</html>
Bookmarks