>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). > >Do you think I should put my img tags inside p tags and apply my css >styles to the p tags instead? > >This would mean to change all the lines: ><img src="blabla" alt="blabla" /> >to ><p class="images"><img src="blabla" alt="blabla" /></p> > >which is not very semantic and awkward IMO... > >What do you think? > >Thank you for your help. > >Chris
Chris: I would have to see the page, but barring that. There's nothing wrong with assigning a rule to an image tag, I do it all the time to scale images, see: http://www.sperling.com/examples/zoom1/ Look at the embedded code. As far as validation goes, try wrapping the img tag within anchor tags (i.e., <a><img... /> </a>). tedd -- -------------------------------------------------------------------------------- http://sperling.com/ ______________________________________________________________________ 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/