Does floating also have priority?

Yes, it"s me again, the one who made the lowest mistake last time. The
problem is this:
wants to put two vertical bars in the middle of the three a tags, like the navigation bar. After I set the style, I found that the two

bars that act as vertical bars floated in front of the a tag. What the heck!
here is my style and html:

<footer id="footer">
        <a class="btn" id="home" href="javascript:;"></a>
        <div class="line"></div>
        <a class="btn" id="share" href="javascript:;"></a>
        <div class="line"></div>
        <a class="btn" id="get" href="javascript:;"></a>
    </footer>

 .btn{
    margin: 0;
    padding: 0;
    display: inline-block;
    width: 100px;
    height: 100%;
}
.line{
    display: block;
    float: left;
    width: 1px;
    height: 30px;
    background-color: black;
    transform: translateY(20px);
    margin: 0px 20px;
    padding: 0px;
}

the result is this:

clipboard.png

Excuse me, what is the problem? Thank you here!

I don"t know what to do.

Mar.02,2021

float will break away from the document stream, which is equivalent to flying:) you can try using border-right


first answer: a tag also needs to be set to float.
this is easy to understand. Both An and B are in line, An is in front of B, and B flies in front of An in order to jump the queue. At this time, A can only watch B helplessly. But A certainly does not want to, so An also wants to fly, continue to block in front of B.


Don't write that. You can look at other people's websites or blogs and learn other people's code

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b224fc-339d1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b224fc-339d1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?