hello i know html and want to change my work into xhtml. however when i put an image it always put a padding to the bottom of it (even if specifically assign no border, margin, or padding)
can anybody help me?
That is a strange error message. How can it be both outside and inside the comment? Try adding spaces or line breaks to your comment:
<!--
startminitable
-->
xhtml is case sensitive. It could be that your styles aren't applying because your xhtml tags are properly lowercase, but you define your style declarations in uppercase.
See if changing your style declarations to lowercase fixes the problem.
That link says the height doesn't apply to inline elements. Instead the height is somehow based on the font size. I bet most browsers make the line-height a bit bigger than the font size so that text doesn't touch other text above or below.
I believe what happened in your case is the browser saw the inline image and set the line-height of the <td> to a little bigger than the image. So alternatively you could have forced the line-height of the <td> to be 15px to fix your problem.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.