Search
 
SCRIPT & CODE EXAMPLE
 

CSS

CSS Border

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

border properties css

/* 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 :: bootstrap 3 offset 
Css :: equivalent zoom css 
Css :: css thinner hr 
Css :: how to fix the nav bar to the left of the page 
Css :: make button stretch to fit text 
Css :: @font-face multiple font weights 
Css :: Placeholder font-family 
Css :: how to horizontally center in css 
Css :: remove list dots on li 
Css :: rounded gradient border css 
Css :: css selection 
Css :: cursive css 
Css :: background image css stack overflow 
Css :: add line below text css 
Css :: a no underline 
Css :: vertical line between two divs 
Css :: css table cell vertical align 
Css :: css grid repeat 
Css :: move element in front of another css 
Css :: remove scrollbars scroll 
Css :: css align text 
Css :: css text 
Css :: css round element 
Css :: width defined by content css 
Css :: repeating-linear-gradient generator 
Css :: css align bottom of container 
Css :: css using the same background-color as the parent background 
Css :: CSS box-shadow border shadow 
Css :: text-shadow css 
Css :: material icons after css 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =