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 in html

The CSS border property defines a border around an HTML element.
Use of CSS border property: 
p {
  border: 2px solid powderblue;
}
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

css border

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

border css

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

PREVIOUS NEXT
Code Example
Css :: how to color links 
Css :: feature detect css 
Css :: scss nesting 
Css :: vertical align h1 inside div 
Css :: details transition css 
Css :: change color select arrow css cf7 
Css :: up arrow css 
Css :: css change background color on hover 
Css :: allfont cdn 
Css :: material design css 
Css :: css rotate 
Css :: style input number css 
Css :: chai assert 
Css :: centrar imagen flexbox 
Css :: operador css contain attr 
Css :: pixel to inches 
Css :: hover 
Css :: advance selectors in css 
Css :: how to make background image NOT scroll with the rest of the page. 
Css :: can i merge background image background-image css 
Css :: radius to imported icons 
Css :: jpa select date format 
Css :: text overlay animation css 
Css :: popsition relative css 
Css :: icon float right side input css 
Css :: adminlte.min.css.map error 
Css :: three dots animation 
Css :: what is display block 
Css :: display flex vertical align center css 
Css :: how to watch sass in multiple pathes 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =