CSS implementation to div4 corner plus fillet picture

Source: Internet
Author: User
Tags relative

First look at the CSS style:

. border{background: #ffecf9; border:1px solid #ffd3ec; width:500px; position:relative;}

. lt{Background:url (... /images/border_lt.gif) No-repeat; left:0; top:0; Position:absolute; width:7px; HEIGHT:7PX;}
. rt{Background:url (... /images/border_rt.gif) No-repeat;  right:0; top:0; Position:absolute; width:7px; HEIGHT:7PX;}
. lb{Background:url (... /images/border_lb.gif) No-repeat; left:0; bottom:0; Position:absolute; width:7px; HEIGHT:7PX;}
. rb{Background:url (... /images/border_rb.gif) No-repeat; right:0; bottom:0; Position:absolute; width:7px; HEIGHT:7PX;}


. content{}

Code:





this is content.

The style of the Border_lt.gif 4 pictures is a div 4 fillet picture, need to cut out their own complete, size, depending on the situation
The position is absolutely controlled by left, top, right, and bottom.

Description

1, relative positioning of the border layer, width and height to define at least one, if not defined, Firefox can be normal display, but IE will have a lot of problems

2. lb{Background:url (... /images/border_lb.gif) No-repeat; left:0; bottom:0; Position:absolute; width:7px; HEIGHT:7PX;}
Here, the definition of location, ie may be a little bit different, for IE special settings, examples are as follows:

. lb{Background:url (... /images/border_lb.gif) No-repeat; Left:-1px!important; left:-5px; Bottom:-1px!important; bottom:-5px; }

Depending on the circumstances

This article links http://www.cxybl.com/html/wyzz/CSS/20120610/29269.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.