Forum Moderators: not2easy
One client for his restaurant wants menu entries. A
case in point: "Hamburger" [not underlined] then at the far end, "$5.95" [not underlined]; next line, leading spaces, [underlined] "add cheese" [not underlined], spaces [underlined], "$1.00" [not underlined].
Other client wants a "legal document" such as "Witness" [not underlined], spaces [underlined] "Date" [not underlined], spaces [underlined].
Yes, either could be border-bottom unstead of underlines.
I can't figure out how to Google-search this, or how even to describe this accurately. (I hope I have done so here!) Both are done on fixed-width divs. Is such a thing EVEN POSSIBLE?
css..
/* using a bottom border */
.uline {border-bottom:1px solid #000000}
/* just the text underlined */
.textuline {text-decoration:underline}
html..
<ul>
<li>not underlined</li>
<li class="uline">underlined</li>
<li class="textuline">text underlined</li>
<li class="uline"> </li>
</ul>
Does that make sense?
sQ
I just noticed that, it seemed to be a "pattern" between sites and among lines within sites, and was trying my dangdest to finger out the html/css for it.
Looks as if, you're suggesting, an in-line ul for each item line, que no? list-item for the hamburger, border-bottomed non-breaking space for the second list item, then list-item for the price.
I'll give it a shot.
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2">Hamburgers</td>
<td width="33%"> </td>
<td width="33%">$5.95</td>
</tr>
<tr>
<td style="border-bottom:1px solid #000" width="15%"> </td>
<td width="18%">add cheese</td>
<td style="border-bottom:1px solid #000"> </td>
<td>$1.00</td>
</tr>
</table>