I have a series of nested div-elements organized like this
<div class="main">
<div class="sub1">
<div class="sub2">
Hello Worlds!!
</div>
</div>
</div>
They come with the following styles
.main {
width:200px;
border-bottom : solid 1px #0000FF;
}
.sub1 {
width:300px;
border-bottom : solid 3px #00FF00;
}
.sub2 {
border-bottom : solid 3px #FF0000;
}
Wondering if there is a way to make the border length of the "sub2" class 200px, matching that of the main class?
Here is the example: http://jsfiddle.net/1Lygjmvj/