CSS Tutorial
CSS Advanced
CSS3 Tutorial
CSS Responsive
CSS References
CSS tools
CSS Resources
Selected Reading
- CSS - Scrollbars
- CSS - Dimension
- CSS - Outlines
- CSS - Cursors
- CSS - Padding
- CSS - Lists
- CSS - Margins
- CSS - Borders
- CSS - Tables
- CSS - Links
- CSS - Images
- CSS - Text
- CSS - Fonts
- CSS - Backgrounds
- CSS - Colors
- CSS - Measurement Units
- CSS - Inclusion
- CSS - Syntax
- CSS - Introduction
- CSS - Home
CSS Advanced
- CSS - Validations
- CSS - Layouts
- CSS - Printing
- CSS - Aural Media
- CSS - Paged Media
- CSS - Media Types
- CSS - Text Effects
- CSS - @ Rules
- CSS - Pseudo Elements
- CSS - Pseudo Classes
- CSS - Layers
- CSS - Positioning
- CSS - Visibility
CSS3 Tutorial
- CSS3 - Box Sizing
- CSS3 - User Interface
- CSS3 - Multi columns
- CSS3 - Animation
- CSS3 - 3d transform
- CSS3 - 2d transform
- CSS3 - Web font
- CSS3 - Text
- CSS3 - Shadow
- CSS3 - Gradients
- CSS3 - Color
- CSS3 - Multi Background
- CSS3 - Border Images
- CSS3 - Rounded Corner
- CSS3 - Tutorial
CSS Responsive
CSS References
- CSS - Animation
- CSS - Units
- CSS - Web safe fonts
- CSS - Web browser References
- CSS - Color References
- CSS - References
- CSS - Quick Guide
- CSS - Questions and Answers
CSS tools
CSS Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
CSS3 - Border Images
CSS3 - Border Image
CSS Border image property is used to add image boarder to some elements.you don t need to use any HTML code to call boarder image.A sample syntax of boarder image is as follows −
#borderimg { border: 10px sopd transparent; padding: 15px; }
The most commonly used values are shown below −
Sr.No. | Value & Description |
---|---|
1 | border-image-source Used to set the image path |
2 | border-image-spce Used to spce the boarder image |
3 | border-image-width Used to set the boarder image width |
4 | border-image-repeat Used to set the boarder image as rounded, repeated and stretched |
Example
Following is the example which demonstrates to set image as a border for elements.
<html> <head> <style> #borderimg1 { border: 10px sopd transparent; padding: 15px; border-image-source: url(/css/images/border.png); border-image-repeat: round; border-image-spce: 30; border-image-width: 10px; } #borderimg2 { border: 10px sopd transparent; padding: 15px; border-image-source: url(/css/images/border.png); border-image-repeat: round; border-image-spce: 30; border-image-width: 20px; } #borderimg3 { border: 10px sopd transparent; padding: 15px; border-image-source: url(/css/images/border.png); border-image-repeat: round; border-image-spce: 30; border-image-width: 30px; } </style> </head> <body> <p id = "borderimg1">This is image boarder example.</p> <p id = "borderimg2">This is image boarder example.</p> <p id = "borderimg3">This is image boarder example.</p> </body> </html>
It will produce the following result −
Advertisements