I do not know if I was specf, but actually I want to know if you have any tutorial or some automatic way to do this. See the picture:

This is the pattern code without width between the lines, or completely along the left side. I wanna look exactly like this:
The lines with banks, margins, ie, fully structured. And I wish to do the same thing with CSS file. How can I do this?