I'm going to use div to make it seem like I'm connecting multiple divs

Asked 2 years ago, Updated 2 years ago, 113 views

2 Answers

What do you think will happen without z-index if you wrap it well...?

<div id="donation_diagram"><!-- position: relative; -->
    <div id="back_line"><!-- position: absolute; top: 0; -->
        <svg class="svg" id="svg1"></svg>
        <svg class="svg" id="svg1"></svg>
        <svg class="svg" id="svg1"></svg>
    </div>
    <div id="d_s_s_ctnr"><!-- position: absolute; top: 0; -->
        <div class="d_s_sequence"></div>
        <div class="d_s_sequence"></div>
        <div class="d_s_sequence"></div>
        ...
    </div>
</div>


2022-09-22 10:41

I put the line tag in the svg tag, set the line start end with x1="coordinate", y1="coordinate", x2="coordinate", put stroke="#hexcode" and actually put the line below using z-index.

<!-- <svg class="svg1" width="1000" height="500"><line x1="50" y1="145" x2="1133" y2="145" stroke="#b1b1b1" z-index="-5"></line></svg> -->

Thank you for the good answer~~~~~~~


2022-09-22 10:41

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.