CSS Sliding Door Technology [from network]

Source: Internet
Author: User

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>

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.