You can use the calc()
function to calculate the margin based on the view width. The function you are looking for is:
margin: 0 calc(100vw * 0.1352 - 67.6051px);
I obtained the function using the math equation to find the equation of a line given 2 points (reference). The two points are (1920, 192)
(192 is 10%) and (500, 0)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…