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 :: how to get text to auto break in a grid 
Css :: function for style your theme wordpress php 
Css :: css stands for 
Css :: glass style css 
Css :: em in css 
Css :: css last child with class 
Css :: li move to left 
Css :: change hover color link in wordpress 
Css :: css loader with gradient 
Css :: modern css fonts 
Css :: tailwind css next 
Css :: select parent element css 
Css :: how blend two backgrounds css and isolate content 
Css :: safari version 10+ media query 
Css :: img grows up onmouseover css 
Css :: css make background image repeat vertically 
Css :: pixel to inches 
Css :: css animation not smooth site:stackoverflow.com 
Css :: lando expose database port 
Css :: highchart add font family 
Css :: CSS The !important 
Css :: css body overflow hidden sidebar scrollbar 
Css :: difference bw box and border box 
Css :: persian green color code 
Css :: sass min max 
Css :: class html css 
Css :: border-width in percentage 
Css :: css attribute selectors 
Css :: how change the text position 
Css :: scss npm 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =