Projection method from Clagnut

Source: Internet
Author: User

<!DOCTYPE HTML><HTMLLang= "en"><Head>    <MetaCharSet= "UTF-8">    <title>Projection method from Clagnut</title>    <style>. Img-wrapper{background:URL (img/shadow.gif) No-repeat Bottom Right;float: Left;Line-height:0px;        }. Img-wrapper img{Background-color:#fff;Border:1px solid #a9a9a9;padding:4px;position:relative; Left:-5px;Top:-5px;        }    </style></Head><Body><Divclass= "Img-wrapper">    <imgsrc= "Img/dunstan.jpg"alt= "Dunstan Orchard"/></Div></Body></HTML>

The idea is to use a negative left and top value, so that the picture is shifted up and down, making the projection appear.

And a clever place to use line-height:0 is to make the projection overlap with the border, so the projection does not appear below the border.

Projection method from Clagnut

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.