The reason you are experiencing this "issue" is because your images don't exist yet and therefor they aren't being found. alt
tags are meant to display text when an image can not be located and that is exactly what is happening. When you do get around to uploading your images they will be the exact size they are supposed to be (as specified in the CSS or HTML). In short, alt tags don't affect your image's dimensions unless the browser can't display/find said images.
Please see the link below. I edited your HTML to include a picture that the browser could find. As you can see the dog image is not affected my the very long alt
tag (which is a full paragraph).
Also, here is another example that very clearly demonstrates what I was explaining above:
(Please note that the alt
text will not display in Chrome due to a rendering bug.)
Update:
Ok, it appears you are referring to the fact that the text you entered in between your <p>
tags isn't visible. To fix this remove float:left
from the #container
in your CSS. Please see the example below. (By the way, the paragraph text is hidden in both of the links you provided, not really sure why you thought the alt
tags had anything to do with the issue, but I digress). Also, there are quite a few bugs in your code, I would highly recommend validating it with the official W3C validator.