Layout-neutral tag for CSS?

前端 未结 8 2061
执笔经年
执笔经年 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 05:58

    I'd say a span tag is as neutral as they come. I don't think there's any browser that applies a margin nor a padding and it just wraps around it's contents.

提交回复
热议问题