full width background color on a div

后端 未结 2 2079
有刺的猬
有刺的猬 2021-01-23 06:24

I\'m using a 1120px css responsive framework responsive or it can act as a fixed grid whenever I need it.

I have a div inside the 1120px container div on which I want

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-23 06:39

    Try out thinking different changing css parameter instead of using background-color. I have tested it with :box-shadow parametr:

    .toggle {
          box-shadow: -10vw 0px 0px 0px #0e1d42, -28vw 0px 0px 0px #0e1d42, -42vw 0px 0px 0px #0e1d42, -30vw 0px 0px 0px #0e1d42, -46vw 0px 0px 0px #0e1d42, -15vw 0px 0px 0px #0e1d42;
          -webkit-box-shadow: -10vw 0px 0px 0px #0e1d42, -28vw 0px 0px 0px #0e1d42, -42vw 0px 0px 0px #0e1d42, -30vw 0px 0px 0px #0e1d42, -46vw 0px 0px 0px #0e1d42, -15vw 0px 0px 0px #0e1d42;
          -moz-box-shadow: -10vw 0px 0px 0px #0e1d42, -28vw 0px 0px 0px #0e1d42, -42vw 0px 0px 0px #0e1d42, -30vw 0px 0px 0px #0e1d42, -46vw 0px 0px 0px #0e1d42, -15vw 0px 0px 0px #0e1d42;
    }
    

    Take a look at live example (blue row)^http://kreditka.testovi-site.pw

    Regards, Max

提交回复
热议问题