Text next to brand

后端 未结 4 1551
生来不讨喜
生来不讨喜 2021-02-02 06:09

How do I get the Bootstrap Brand and any accompanying text to be treated together as the brand?

I have tried this:

4条回答
  •  星月不相逢
    2021-02-02 06:47

    This is happening because the img-responsive class has display:block. In this case I'm not sure you need that class for the image you are displaying since it is already quite small and not likely to run into issues with needing to be responsive.

    Alternatively, you could override img-responsive in this instance to display:inline-block and also have your h3 be have display:inline-block as well.

提交回复
热议问题