Locked lesson.
About this lesson
Using images for borders instead of lines.
Exercise files
Download this lesson’s related exercise files.
Border Images.docx58.9 KB Border Images - Solution.docx
59 KB
Quick reference
Border Images
We can use images to make borders.
When to use
Any time you want to make a border with an image, use this.
Instructions
#borderimage {
border: 10px solid transparent;
padding: 15px;
-webkit-border-image: url(border.png) 30 round;
-o-border-image: url(border.png) 30 round;
border-image: url(border.png) 30 round;
}
Hints & tips
- Border images are a little weird.
- They can be repeating (round) or stretched (stretch).
- Webkit is for specific browsers
- o-border is for safari
- border-image is for the opera web browser
Lesson notes are only available for subscribers.