Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css border shorthand

#selector{
    /*The format is border:width style color;*/
    border:2px solid grey;
}
Comment

border css shorthand

p {
  border-style: solid;
  border-color: red;
  border-width: 5px;
}
/* You can also write above code in one line   */
p {
  border: 5px solid red;
}
Comment

border shorthand CSS

border: 1px solid #000;
Comment

border style shorthand

a quick note on border-style shorthand:

  border-style: none none dotted; --> this means: 
  
   One value: it applies the same style to all four sides.
   Two values: applies to top and bottom, the second to the left and right.
   Three values: applies to the top, the second to the left and right, the third to the bottom.
   Four values: applies to all four sides following clockwise.
Comment

CSS Border - Shorthand Property

p {
  border: 5px solid red;
}
Comment

what is border a shorthand for

border: border-width border-style border-color;
Comment

PREVIOUS NEXT
Code Example
Css :: how create checkbox ui like disabled checkbox using css 
Css :: fonmt family css 
Css :: inline pseudo element 
Css :: centering using flexbox 
Css :: get ssl certificate command line 
Css :: center image in css 
Css :: Bootstrap Carousel Custom Width 
Css :: how to remove underline from hyperlink css 
Css :: move header down css 
Css :: git font 
Css :: how to change link color hover button text 
Css :: url css 
Css :: mb in bootstrap 
Css :: font stack css 
Css :: difference between pseudo elements and pseudo classes 
Css :: what is the best way to center a div 
Css :: center div 
Css :: grid template 
Css :: terminal search file contents 
Css :: ellipsis 
Css :: remove 000webhost ads 
Css :: make footer stick to bottom without overlap over other elements 
Css :: css table flex 
Css :: firefox-scroll-css 
Css :: scrollheight 
Css :: how to back animation in css 
Css :: css stands for 
Css :: Set the style for links to pages you have visited to any color. 
Css :: gradient css 
Css :: z-index on position absolute 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =