Difference between and
with text-align:center;?

前端 未结 6 1165
粉色の甜心
粉色の甜心 2020-12-01 02:24

I don\'t understand this:

I have tried to center the text-align of a HTML tag but it did nothing... With the

tag,
6条回答
  •  心在旅途
    2020-12-01 02:48

    It might be, because your span element sets is side as width as its content. if you have a div with 500px width and text-align center, and you enter a span tag it should be aligned in the center. So your problem might be a CSS one. Install Firebug at Firefox and check the style attributes your span or div object has.

提交回复
热议问题