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 :: Horizontal Scrolling Bopostrap CSS 
Css :: scroll bar with 0 width 
Css :: css prevent scrolling behind overlay 
Css :: multiple divs next to each other 
Css :: background-repeat 
Css :: css white-space 
Css :: how to add outline to text in css 
Css :: kommentar css 
Css :: how to call media query inside css class 
Css :: word break css 
Css :: css after 
Css :: cool hover effects css 
Css :: curve bottom of square css 
Css :: change input placeholder text css 
Css :: bootstrap 4 material icon vertical align 
Css :: linear-gradient 
Css :: Disable text selection/highlight 
Css :: background overlay image 
Css :: arrow left css 
Css :: css float top 
Css :: import tailwind 
Css :: last child after css 
Css :: media query for mobile min and max width both 
Css :: css button pressed effect 
Css :: how hide in html 
Css :: glass css 
Css :: how to increase text height css 
Css :: object fit css 
Css :: tile format css 
Css :: background blur css 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =