Center
and Display on Same Line

后端 未结 3 1715
野趣味
野趣味 2020-12-11 05:46

I\'m trying to display two

elements on the same line, but in the center. To center them, I had to set margin:auto; However, in order to
3条回答
  •  一个人的身影
    2020-12-11 06:31

    Have you tried display: inline-block;? An example of the HTML you are working with would help... put one up at http://jsFiddle.net if inline-block doesn't solve your problem.

提交回复
热议问题