I forgot one part of this.
With the float on <p> tag the border will go only the length of the text. The "clearyourclass" class is to push any text that is suppose to be underneath "yourclassname" you can do this with a <br clear="all" /> but you have less control of the final product.