I've seen alot of questions asking for drawing lines, but none without adding another HTML element for it.
Let's say I have this HTML div element:
<div class="myDiv"></div>
Additional I have this CSS:
.myDiv{
width: 100px;
height: 100px;
border: 2px solid black;
}
Now, in the background of my div, I'd like to have vertical dotted lines, let's say four of them. From top to bottom. Is it possible to draw this in additional CSS, without adding another HTML element?
FIDDLE
https://jsfiddle.net/yjs5yqwo/
https://jsfiddle.net/rjykLrog/2/
EDIT
I need to be able to specify margin-left or something like it, to have the lines where I want them to be.