Layout-neutral tag for CSS?

前端 未结 8 1937
执笔经年
执笔经年 2021-01-05 05:14

Is there an \"invisible\" tag in HTML (4) that I can use to make CSS distinctions

tag.myclass tag.mysubclass h1 {  } 

without having

8条回答
  •  囚心锁ツ
    2021-01-05 06:02

    If you want to group elements use a div or a span tag as a wrapper element. Apply your id or class to this, and style it accordingly.

    EDIT

    There isn't an 'invisible' tag - but margins and padding can be easily reset 'margin: 0; padding: 0;'

提交回复
热议问题