开发者

CSS Using Top Position Negative figures ? Is this normal or a hack?

开发者 https://www.devze.com 2023-03-08 00:31 出处:网络
I have a couple of Div\'s with background images and the top one has a curve. I need to just the bottom one with the top so I was thinking of using:

I have a couple of Div's with background images and the top one has a curve.

I need to just the bottom one with the top so I was thinking of using:

top: -39px;
width: 260px;

Is this use ok or is 开发者_运维技巧this considered a hack ?

Thanks


It is completely fine and normal and common and not a hack to use negative values.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号