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{}


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.


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

Alibaba Cloud 10 Year Anniversary

With You, We are Shaping a Digital World, 2009-2019

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.