The issue here is that in your CSS file, with .row.rectangle you are saying that any element that contains the .row class, and then the .rectanglebox class, or any element with the row class that has a child element with the .rectanglebox class will have these styles applied to it.
You can either change your code to class="row rectangleclass" or just change your CSS to simply .rectangleclass { ... }
The issue here is that in your CSS file, with .row.rectangle you are saying that any element that contains the .row class, and then the .rectanglebox class, or any element with the row class that has a child element with the .rectanglebox class will have these styles applied to it.
You can either change your code to class="row rectangleclass" or just change your CSS to simply .rectangleclass { ... }
You forgot the .row class in your div, do this:
HTML:
<div class="row rectanglebox">
<p> sample text </p>
<div>
when you see this: .row.rectanglebox it means that the element have both classes, but your div have only .rectanglebox class.
regards!