On 14/01/06, tochiromifune <[EMAIL PROTECTED]> wrote: > I created a stylesheet with styles directly applied to the img tag. The > problem is that my page fails the w3c validation test because my img > tags are not contained in other parent tags (as far as I understand the > problem that is).
Umm. I think you mean that they are not in the group of elements known as %block, nor are they <script> elements and thus are not allowed to be children of the <body> element. > Do you think I should put my img tags inside p tags and apply my css > styles to the p tags instead? Do the images represent paragraphs? If so, its very likely that an image isn't a good idea in the first place. What is the most apropriate element in %block that can contain <img> elements? <div> is most likely. > This would mean to change all the lines: > <img src="blabla" alt="blabla" /> > to > <p class="images"><img src="blabla" alt="blabla" /></p> You don't have to put a class on the block level container. > What do you think? That this is a subject best addressed in a different forum. http://css-discuss.incutio.com/?page=OffTopic -- David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
