I need the width of the parent div
for calculations within the child div
, but neither have been appended yet in the D3 chain. How can I extract the width out of e.g.
.element {
width: 120px;
height: 200px;
box-shadow: 0px 0px 12px rgba(0,255,255,0.5);
border: 1px solid rgba(127,255,255,0.25);
text-align: center;
cursor: default;
}