-webkit-margin adds unwanted margin on texts

前端 未结 12 1760
不思量自难忘°
不思量自难忘° 2020-11-29 02:32

This hadn\'t hit me until now (and this is not only in webkit browsers). On all texts in like p tags, h1 tags etc... there\'s an extra space over a

12条回答
  •  Happy的楠姐
    2020-11-29 02:44

    I had the same problem. Suddenly one out of my three table cells containing data its header was moved down a little bit. My problem was simply solved by adding this:

    table td
    {
        vertical-align: top;
    }
    

    Seems like some other element in a 'higher' style sheet was telling my data to center itself in the cell, instead of just staying on top.

    I guess its just stupid, and wasnt really a problem... but the next person to read this topic might have the same stupid error as i did :)

    Take care!

提交回复
热议问题