A list layout CSS code that uses a picture to make a div background

Source: Internet
Author: User

Ideas:

1. Because it is a vertical list, the outer layer is relatively positioned so that it does not overlap together relative

2. Absolute the inside with absolute position, cover the picture above

3. Here is a little trick, I have a special effect, text erect, and rotate to the right 90 degrees (WebKit core) width:20px; font-size:20px; -webkit-transform:rotate (90DEG);

<div style="position:relative; max-width:560px; min-height:115px ;">"/resources/images/hongbao_ky.png"style="width:100%; max-width:560px; min-height:115px ;"/><div style="position:absolute; color: #ffffff; top:8%; left:3% ;"><div style="width:20px; font-size:20px;-webkit-transform:rotate (90deg);">2016.1. -</div></div><div style="position:absolute; left:20%; top:0; color: #211b1a;"> -&nbsp;&nbsp;&nbsp;&nbsp; Voucher 12312312

A list layout CSS code that uses a picture to make a div background

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.