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

前端 未结 18 850
借酒劲吻你
借酒劲吻你 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 13:46

    Padding on the outer div will get the desired effect.

    
    
    
    
    
    
    100px smaller than outer

提交回复
热议问题