I just used this image in a question, and I think you'll agree that it would look much better if the image was lowered a bit. I tried the html code

<img src="http://mathurl.com/332t642.png" style="vertical-align:-5px">

but this didn't work: The image just didn't show up. (The 5 pixel adjustment I obtained by testing in a separate html file.) Is there another way to vertically align the image?

  • 1
    Just put it on a separate line? We don't need to save space here that much. – Jukka Suomela Oct 8 '10 at 10:39
  • I did consider that, yes, but for such a small image I found an extra line a bit strange. With the vertical align of -5px it did look rather nice inline. – Hendrik Vogt Oct 8 '10 at 16:03

There's a list of what HTML tags and attributes are allowed on this page. The allowed attributes on images form a rather small set; I don't know if playing with the height or width would help, but that's all you've got, I'm afraid.

  • Thanks for the link to the list of allowed attributes and other stuff. That makes it clear why my attempt didn't work. Playing with height and width doesn't help either, so I'll probably have to live with the ugly rendering. – Hendrik Vogt Oct 8 '10 at 8:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .