Search
 
SCRIPT & CODE EXAMPLE
 

CSS

CSS Border

p {
  border: 2px solid red;
  border-radius: 5px;
}
Comment

css border properties

/* Border-Color: Used to set the color of an element's border. */
border-color: black;

/* Border-Style: Allows you to set the style of a border - none, dotted, dashed, solid, or double. */
border-style: dotted;

/* Border-Radius: Allows you to add rounded corners to */
border-radius: 15px;

/* Border-Width: Used to set the width of an element's border. */
border-width: 20%

/* Border: Shorthand Property */
border: 10px, red, double;
Comment

border css

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 css

.borderstyles{
	border-style: none;
    border-style: hidden;
    border-style: dotted;
    border-style: dashed;
    border-style: solid;
    border-style: double;
    border-style: groove;
    border-style: inset;
    border-style: ridge;
    border-style: outset;
    border-style: initial;
    border-style: inherit;
}
Comment

border css

.your-class-name{
	border: 1px solid red;
} 
// border: 'width', 'style', 'color'

width:
size: px, pt, cm, em, etc.

style:
dotted, dashed, solid, double, groove, ridge, inset, outset, none, hidden

color:
red, #000, rgb(255,0,255), etc.
Comment

border css

      	                		  			Margin
			_____________________________________________________________________
			|   		 					Border								|	
			|			 ____________________________________________			|
  	  		|			 |					Padding 				|			|
	        |   		 |				_________________			|			|
	Margin	|	Border	 |	Padding		|	Content		|	Padding	| Border	|	Margin	
    	    |    		 |				_________________			|			|
   		    |   		 |					Padding					|			|
     		|    		 |__________________________________________|			|
        	|    		 					Border								|
        	|___________________________________________________________________|	
             								Margin							
																							
Comment

css border

#example {
    border-bottom: 2px solid #ccc;
}
Comment

PREVIOUS NEXT
Code Example
Css :: css position sticky 
Css :: 3d button 
Css :: import css in another css file 
Css :: css good black color 
Css :: how to change selection color 
Css :: not hover css 
Css :: html disable spin buttons on input type number 
Css :: image right css 
Css :: html list over three columns 
Css :: css inline text color 
Css :: autocomplete background color css 
Css :: how to center a inline block element 
Css :: how to center table text in html 
Css :: vertical align span tailwindscss 
Css :: transform scale 
Css :: media query for mobile landscape only 
Css :: Applying an ellipsis with css 
Css :: css show scrollbar if overflow 
Css :: css blink animation 
Css :: css animation stop 
Css :: css center alignment 
Css :: text shadow neon 
Css :: style highlight css 
Css :: css animate border bottom on hover 
Css :: regex remove css comment 
Css :: change link color in wordpress 
Css :: #f2f2f2 in rgba 
Css :: how to change button gradient 
Css :: use css in cshtml 
Css :: css hover but no click 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =