|
Posted by Chris F.A. Johnson on 09/27/38 11:52
On 2006-07-09, mouse@house.spam wrote:
> I require some HTML which will draw a rectangular box with some small
> text in it (e.g. an email message which is being quoted apart from the
> rest of the text). The box should have a thin black boundary, and a
> light grey background to make the text distinctive from what it
> outside the box.
<div style="border: 1pt solid black;
padding: 1em;
background-color: #dddddd;
color: black;
width: 80%;
margin: auto;">
Text here.
</div>
> I would guess that a <TABLE> would have to be used with one entry and
> some form of table entry background colour selection would be
> necessary. Can people offer wise words on the tags and design choices
> for such an element? Or are there examples on the web which come to
> mind, so I can steal their code? Thank you.
--
Chris F.A. Johnson, author <http://cfaj.freeshell.org>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
[Back to original message]
|