How can I do width = 100% - 100px in CSS?

前端 未结 18 851
借酒劲吻你
借酒劲吻你 2020-12-12 13:28

In CSS, how can I do something like this:

width: 100% - 100px;

I guess this is fairly simple but it is a bit hard to find examples showing

18条回答
  •  旧巷少年郎
    2020-12-12 14:02

    Could you nest a div with margin-left: 50px; and margin-right: 50px; inside a

    with width: 100%;?

提交回复
热议问题