Css sliding door technology, css sliding door

Source: Internet
Author: User

Css sliding door technology, css sliding door

The double sliding door effect is still quite common, but it is easy to understand:


The two doors are like the effect of overlapping two block-level elements. See the following code:


# Mydoor ul li a: hover {color: # fff; // sets the background black background: url(hover.gif); // sets the background image. The image surrounding the image should be transparent, in this way, the background can be set out}
The changes on the left side are as follows:



/** Change the content under connection a to the block level; give the right a width */# Mydoor ul li a B {display: block; // set it to the block element padding: 0 14px 0 0; // set the right margin to 14 pixels}/** move to the upper right corner */# Mydoor ul li a: hover B {color: # fff; // set the background black background: url(hover.gif) no-repeat right top; // set the background image, right aligned}

Effect after editing


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.