Vertical divider CSS

后端 未结 2 1904
Happy的楠姐
Happy的楠姐 2021-02-03 22:11

I am creating a vertical divider, that works fine. But the CSS is cumbersome.

The CSS is:

.headerDivider1 {
border-left:1px solid #38546d;height:80px;pos         


        
相关标签:
2条回答
  • 2021-02-03 22:18
    <div class="headerdivider"></div>
    

    and

    .headerdivider {
        border-left: 1px solid #38546d;
        background: #16222c;
        width: 1px;
        height: 80px;
        position: absolute;
        right: 250px;
        top: 10px;
    }
    
    0 讨论(0)
  • 2021-02-03 22:38
    .headerDivider {
         border-left:1px solid #38546d; 
         border-right:1px solid #16222c; 
         height:80px;
         position:absolute;
         right:249px;
         top:10px; 
    }
    
    <div class="headerDivider"></div>
    
    0 讨论(0)
提交回复
热议问题