Headlines with Graphic Backgrounds in DHTML


King Henry
Success Will Bring Honour

If we are mark'd to die, we are enow to do our country loss; and if to live, the fewer men, the greater share of honour.


The header shown above sets a background image into the H1 tag. The code below shows how this is done.

<HTML>
<HEAD>
<TITLE>Headlines with Graphic Backgrounds</TITLE>

<STYLE TYPE="text/css">
	H1 { background: white url(../graphics/header.gif) no-repeat; font: bold 18pt helvetica, sans-serif; color: #FFFFC0; height: 150px; width: 800px; padding: 10px; }
	.para { font: normal 14pt times, sans-serif; left-margin: 25px; width: 600; }
</STYLE>

</HEAD>
<BODY>

<A HREF="../dhtmlidx.html">Dynamic HTML Index</A><BR><BR>

<H1>King Henry<BR>Success Will Bring Honour</H1>

<P CLASS="para">If we are mark'd to die, we are enow to do our country loss; and if to live, the fewer men, the greater share of honour.</P>