leora
leora

Reputation: 196489

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 it looks fine in firefox:

enter image description here

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

enter image description here

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

Upvotes: 0

Views: 1598

Answers (2)

Isaac Lubow
Isaac Lubow

Reputation: 3573

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;
}

Upvotes: 0

avetarman
avetarman

Reputation: 1252

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

Upvotes: 2

Related Questions