Course Content

  • Lecture-6-border
  • Lecture-6-border-image
  • Lecture-6-outline

Course Content


In CSS, the border property allows us to set the width and color of the border around an element.

The outline property allows us to set the thickness of a line that is drawn around an element.

The CSS border property is used to define an element's border properties. The CSS outline, on the other hand, does not take up any space and, if enabled, is displayed around the border. It accepts offset. Furthermore, we are unable to specify whether or not individual sides should be outlined.

The width, line style, and colour of an element's outline are defined by the CSS outline property. It's a shorthand property for the CSS attributes outline-width, outline-style, and outline-color.

The border of an element is formed within it, whereas the outline is created outside of it. As a result, the border is calculated using the element's width and height, while the outline draws outside the element.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere