CSS: bolding some text without changing its container's size

后端 未结 11 1181
生来不讨喜
生来不讨喜 2020-11-29 16:55

I have a horizontal navigation menu, which is basically just a

    with the elements set side-by-side. I do not define width, but simply use padding, bec
11条回答
  •  被撕碎了的回忆
    2020-11-29 17:49

    Interesting question. I suppose you are using float, right?

    Well, I don't know any technique you can use to get rid of this font enlarging, hence they will try to fit in the minimum width required - and varying font thickness will change this value.

    The unique solution I know to avoid this changing is one you said you don't want: setting fixed sizes to li's.

提交回复
热议问题