This is a CSS only solution I modified from some CSS I am using to annotate custom origami forms. The only parts that are really need are a container that is positioned relative and the div for the line itself. » Try It! The image, below contains multiple uses of this technique.

<div class='border'>
<div class='origamiSheet'>
<div class='rotatedLine'></div>
</div>
</div>
/* Prepare a holder so the example will stand out */
.border {
padding : 2em;
position : relative;
}
/* Prepare a square so the line will stand out */
.origamiSheet {
width : 3in;;
min-width : 3in;;
max-width : 3in;;
height : 3in;
min-height : 3in;
max-height : 3in;
border : 1px dotted black;
background-color : gold;
}
/* Draw a line using ONLY CSS */
.rotatedLine {
background-color : black;
transform : rotate(45deg);
transform-origin : center;
position : absolute;
left : -in;
top : 2.25in;
width : 2.1in;
min-width : 2.1in;
max-width : 2.1in;
height : 1px;
min-height : 1px;
max-height : 1px;
}