8.4. CSS3 border

发布时间 :2024-01-14 23:00:06 UTC      

8.4.1. CSS3 border

With CSS3, you can create rounded borders, add shadow boxes, and act as a border image without using a design program such as Photoshop.

In this chapter, you will learn about the following border properties:

  • Border-radius

  • Box-shadow

  • Border-image

8.4.2. CSS3 fillet

Adding rounded corners to CSS2 is tricky. We have to use different images in every corner.

In CSS3, it is easy to create fillets.

In CSS3 border-radius properties are used to create fillets:

This is a rounded border!

Example

Add a fillet element to div:

div
{
border:2px solid;
border-radius:25px;
}

8.4.3. CSS3 box shadow

In CSS3 box-shadow property is used to add shadows:

Example

In div add in box-shadow attribute

div
{
box-shadow: 10px 10px 5px #888888;
}

8.4.4. CSS3 border picture

With CSS3 border-image property, you can use the image to create a border:

border-image property allows you to specify a picture as a border! The original image used to create the border above:

In div use the picture to create a border in:

Image0

Example

Create a frame using a picture in div

div
{
border-image:url(border.png) 30 30 round;
-webkit-border-image:url(border.png) 30 30 round; /\* Safari 5 and older
\*/
-o-border-image:url(border.png) 30 30 round; /\* Opera \*/
}

8.4.5. New Border Properties

Attribute

Description

CSS

Border-image

Sets shorthand properties for all border images.

3

Border-radius

One is used to set all four borders; shorthand properties of the radius attribute

3

Box-shadow

Shadow attached to one or more drop-down boxes

3

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.