FOLLOW US ON TWITTER



FOLLOW US



img/blogimg/css3.jpg


@coder 903

OUTLINE PROPERTY


2021-11-16 18:31 · 5 min read

The outline is a line around the elements. It is the part of OUTSIDE the borders. The outline property is used to make the element stand out.
 

Outline Property

CSS has the following outline properties:

  • outline-color
  • outline-style
  • outline-width
  • outline-offset
  • outline


{outline-color : orange;}                  

property          value 
 

<!DOCTYPE html>
<html>
<body>
<p style="outline-style:orange;">
TDB Tutorials
</p>
</body>
</html>

 

Outline Styles

If we want to change the style of the outline of an HTML element we can use the CSS3 outline style Property.
 

Example

{outline-style :  solid;}                 

property         value 
 

Other Values

  • dotted - Used to define dotted outline
  • solid - Used to define solid outline
  • dashed - Used to define dashed outline
  • double - Used to define double outline
  • outset - Used to define 3D outset outline.
  • groove - Used to define 3D grooved outline.
  • ridge - Used to define 3D ridged outline.
  • inset - Used to define 3D inset outline.
  • none - Used to define no outline
  • hidden - Used to define the hidden outline
<!DOCTYPE html>
<html>
<head>
<style>
.tdb-school{
background-color:white;
padding:10px 35px;
border-style:dotted;
border-radius:5px}
</style>
</head>

<!--Body-->
<body>
<button type="submit" class="tdb-school">
button border properties
</button>
</body>
</html>

 

Outline Shorthand Property

If you don't want to write different CSS rules for Outline property then you can use Outline Shorthand property.

{outline  :  color style width}                

property        value 
 

<!DOCTYPE html>
<html>
<!--Body-->
<body>
<button type="submit" class="tdb-school"
style="outline:orange dotted 5px;
padding:10px 35px;border:solid red 5px">
button outline property
</button>
</body>
</html>
TAGS:






POST COMMENTS
No Comment

Please login to post comment




POPULAR POSTS

best free web hosting services...
what is new in miui 11?...
free website ssl security using cloudfla...
do you want to make money online?...
CSS3 @IMPORT RULES...
What is HTML Anchor Tag and Hyperlinks?...
How to host a web page in 10 minutes....
CSS3 RESPONSIVE UI...
Tables HTML...
CSS3 FUNCTIONS...
How to use CSS3 Overflow Property?...
CSS3 FILTERS...


RECENT COMMENTS

2022-03-05 11:05
By coder on XAMPP - MySQL shutdown unexpectedly | How to fix MySQL crash unexpectedly
2021-10-12 12:34
By abnongoke on do you want to make money online?
2021-10-12 12:34
By abnongoke on how to get a free website domain name?
2021-10-12 12:34
By solar panel for shed on what is new in miui 11?
2021-10-12 12:34
By solar panel for shed on best free web hosting services
2021-10-12 12:34
By amos tanui on free website ssl security using cloudflare


SOCIAL SHARE



FOLLOW US ON TWITTER



FOLLOW US ON FACEBOOK



FOLLOW US







Recent Blogs



Contact Us

Subscribe Our News-Letter



Kashipur, 244713
Uttarakhand, India



© www.prodevskill.com 2023. All Rights Reserved. Powered by Pro Developer