开发者

why does chrome not align this text?

i have the following code

 <img src="/Content/Images/Icons/phone2.png"> <b>Phone Numbers:</b> (No orders via Phone at this time)<br />

and 开发者_JAVA百科it looks fine in firefox:

why does chrome not align this text?

but when i open it in chrome, it shows up like this:

why does chrome not align this text?

does anyone know why chrome would raise the second part of this text ?


Use valign attribute in your image tag, or CSS vertical-align property applied to the image.


It looks like the result of different browser default styles applying to the various elements in your source. Try to set a vertical-align property for the <b> and <img> and test it again, for example:

b,img{
    vertical-align:baseline;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜