The Artima Developer Community
Sponsored Link

Web Buzz Forum
CSS3 Border properties

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Lee v

Posts: 403
Nickname: a1plus19
Registered: Apr, 2011

Lee - helping out tech stuff.
CSS3 Border properties Posted: May 29, 2011 2:25 AM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Lee v.
Original Post: CSS3 Border properties
Feed Title: IT Jungles
Feed URL: http://www.itjungles.com/rss
Feed Description: Learn all tech stuff at ITJungles.com
Latest Web Buzz Posts
Latest Web Buzz Posts by Lee v
Latest Posts From IT Jungles

Advertisement

In CSS 1, CSS 2, each time you want to create a rounded way button, create shadows for the box .. ect, you first have to design in Photoshop or other design software and use an image as a border

With CSS3, you can create them in easy way !

In this lesson today you will learn about the following border properties:

  • border-radius

  • border-image

  • box-shadow

Note:

Internet Explorer 9 supports some of the new border properties.

Opera supports the new border properties.

Firefox requires the prefix -moz- for border-image.

Chrome and Safari requires the prefix -webkit- for border-image.

Safari also needs the prefix -webkit- for box-shadow.

I. CSS3 Rounded Corners

In CSS3, the border-radius property is used to create rounded corners

Example:

.itjungles{

border:3px solid;
border-radius:15px;
-moz-border-radius:15px; /* Firefox 3.6 and earlier */

}

Result:

border_rounded


II. CSS3 Box Shadow

In CSS3, the box-shadow property is used to add shadow to boxes

Example:

.itjungles{

-moz-box-shadow: 5px 10px 10px #333; /* Firefox 3.6 and earlier */
-webkit-box-shadow: 10px 10px 5px #333; /* Safari */

}

Result:

border_shadow

III. CSS3 Border Image

In  CSS3 border-image property you can use an image to create a border

Example:

Itjungles{

-moz-border-image: url('/border.png') 20 20 round; /* Firefox */

-webkit-border-image: url('/border.png') 20 20 round; /* Safari and Chrome */

border-image: url('/border.png') 20 20 round;

}

Result:

The original image

border

border_image

Did you like this tip? {fblike}

Now, are you ready to learn and pratice with CSS3? Let's enjoy it

 

Read: CSS3 Border properties

Topic: Hasselblad’s 200 MegaPixel H4D-200MS Camera Now Shipping for $45,000 Previous Topic   Next Topic Topic: ASUS Eee Pad Slider Coming Soon, Price yet to be Known

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use