How to make
full width?

后端 未结 5 1651
走了就别回头了
走了就别回头了 2021-02-19 08:03

http://jsfiddle.net/bh2f6/1/

I want to make this


so it will stretch the full width, right to the edges of its parent container. I have tried add
5条回答
  •  佛祖请我去吃肉
    2021-02-19 08:40

    Something like this might work...

    hr {
      padding: 50px 0;
      border: none;
    
      &:before {
        // full-width divider
        content: "";
        display: block;
        position: absolute;
        right: 0;
        max-width: 100%;
        width: 100%;
        border: 1px solid grey;
      }
    }
    

    http://codepen.io/achisholm/pen/ZWNwmG

提交回复
热议问题