This is driving me nuts. I have, i would say, intermediate knowledge of HTML and CSS bordering on beginner. I'm trying to rotate a <hr> 45 degrees in a div 70px square and it simply wont work. 
The line does indeed rotate by 45 degrees but the positioning within the div seems to not follow any set logic.
I want the points of the line to start at the top left and end in the bottom right. Can some one please explain the css needed for that. The seemingly weird top and left values in my code are from me messing around. This obvsiously(?) needs changing, but to what?
HTML
CSS
The line does indeed rotate by 45 degrees but the positioning within the div seems to not follow any set logic.
I want the points of the line to start at the top left and end in the bottom right. Can some one please explain the css needed for that. The seemingly weird top and left values in my code are from me messing around. This obvsiously(?) needs changing, but to what?
HTML
Code:
<div class="blank"><hr class="line_diagonal">
</div>
CSS
Code:
.line_diagonal {
width:100%;
top:-35px;
left:-35px;
transform:rotate(45deg);
-o-transform:rotate(45deg);
-moz-transform:rotate(45deg);
-webkit-transform:rotate(45deg);}