Border Sides

CSS Tutorial


Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

CSS Advanced


Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

CSS Responsive

CSS Grid

Border Sides

Border-Individual Sides

In CSS, there are properties that are used to specify each of the borders (top, right, bottom, and left):

HTML
				
					<h2>Individual Border Sides</h2>
<p>2 different border styles.</p>

				
			
CSS
				
					p {
  border-top-style: dotted;
  border-right-style: solid;
  border-bottom-style: dotted;
  border-left-style: solid;
}

				
			

Output

two different borders

If the border-style property has four values:

  • border-style: dotted solid double dashed;
  • top border is dotted
  • right border is solid
  • bottom border is double
  • left border is dashed

If the border-style property has three values:

  • border-style: dotted solid double;
  • top border is dotted
  • right and left borders are solid
  • the bottom border is double

If the border-style property has two values:

  • border-style: dotted solid;
  • top and bottom borders are dotted
  • right and left borders are solid

If the border-style property has one value:

  • border-style: dotted;
  • all four borders are dotted
HTML
				
					<h2>Individual Border Sides</h2>
<p class="four">4 different border styles.</p>
<p class="three">3 different border styles.</p>
<p class="two">2 different border styles.</p>
<p class="one">1 border style.</p>

				
			
CSS
				
					body {
  text-align: center;
}
/* Four values */
p.four {
  border-style: dotted solid double dashed;
}

/* Three values */
p.three {
  border-style: dotted solid double;
}

/* Two values */
p.two {
  border-style: dotted solid;
}

/* One value */
p.one {
  border

				
			

Output

individual border

Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in /home/u212091429/domains/mydevhelp.com/public_html/wp-includes/functions.php on line 5420

Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in /home/u212091429/domains/mydevhelp.com/public_html/wp-includes/functions.php on line 5420