codingtcher.com
Theme Night
Home
Login

Css Borders

Home » Css » Css Borders

CSS Table Borders

table, th, td {
  border: 1px solid;
}

CSS Border

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

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.

border css

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

css border

#example {
    border-bottom: 2px solid #ccc;
}
Source: stackoverflow.com

how to add border in css

.div1{
	border: 10px;
    border-color: #000000;
    border-style: solid;
}

Css Related Post