Results 1 to 8 of 8
Nov 26, 2010, 17:25 #1
- Join Date
- Dec 2009
- 0 Post(s)
- 0 Thread(s)
Problem with image/text alignment
I have a question about wrapping text around an image. I want to have a small 64x64 icon next to some sections on my page.
According to W3C I should be using text-align instead of align.
So when I do the following code, everything works correclty:
<img src="#" alt="Icon" width="64px" height="64px" align="left" />
So I instead have used text-align in my CSS file.
It doesn't matter which of the two I use, either way it breaks my code, because the image does not wrap with the text.
Is there anyway I can remove the align attribute from inline html and put it into my CSS file and still have it work? Also, what attribute is correct? text-align does not seem to work in this case, even though W3C tells me not to use align.