Check out this custom HTML code:
<div class="main">
<div class="parent">
<div class="child">
<span></span>
<label></label>
</div>
<div class="child2">
// some html content
</div>
</div>
<div class="parent">
<div class="child">
<span></span>
<label></label>
</div>
<div class="child2">
// some html content
</div>
</div>
<div class="parent">
<div class="child">
<span></span>
<label></label>
</div>
<div class="child2">
// some html content
</div>
</div>
</div>
In order to add the border-right
property to the child
class, you can try the following CSS:
.parent.child:not(:last-child) {
border-right: 1px solid tpBorderColor;
padding-right: 20px;
}
If that doesn't work, you can attempt using this alternative approach:
.parent.child {
border-right: 1px solid #e9e9e9;
}
.parent.child-child {
border:none;
}
If these methods are not displaying the border as expected, do you have any other suggestions on how to achieve this?