This is the background image:
Title text
Note: you only need to modify the width attribute in CSS marked by H3, as long as the width does not exceed the total width of the background image.
<! Doctype HTML public "-// W3C // dtd html 4.01 transitional // en"
Http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd>
<HTML xmlns = "http://www.w3.org/1999/xhtml"> <Meta http-equiv = content-language content = en-US>
<Meta content = "mshtml 6.00.5730.13" name = generator>
<Meta http-equiv = Content-Type content = "text/html; charset = UTF-8">
<Style type = text/CSS>
H3 {
Font-size: 13px;
Line-Height: 21px;
Text-align: center;
Width: 200px;/* modify this value to change the width and keep the pattern at both ends */
Background-image: URL (http://learning.artech.cn/uploads/blog-images/bg.gif );
Background-repeat: No-Repeat;
Padding-left: 40px;/* display the left image of the bottom background */
}
SPAN {
Display: block;
Padding-Right: 40px;/* to center the preceding text */
Background-image: URL (http://learning.artech.cn/uploads/blog-images/bg.gif );
Background-repeat: No-Repeat;
Background-position: Right;/* the top background image is displayed from right to left, used to display the right small image */
}
</Style>
</Head>
<Body>
<P> This is the background image: </P>
<H3> <span> title text </span> <P> Note: you only need to modify the width attribute in CSS marked by H3, as long as the width does not exceed the total width of the background image. </P>
</Body>
</Html>