Creating a line that is thinner than its parent

.MyDivClass {
  margin: 14px 0px 14px 0px;
	padding: 0px;
  width: 100%;
}
div.MyDivClass::after {
  content:"";
  display: block;
  margin: 14px 5% 0px 5%;
  width: 90%;
  height: 0px;
  border-top: 1px solid #CCC;
}
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published. Required fields are marked *