|
Posted by Steve Pugh on 01/09/07 09:52
Neredbojias wrote:
> To further the education of mankind, Andrew <andrew@lnospamsorry.com>
> vouchsafed:
> >
> > I am currently adding captions to images in a large site and made the
> > mistake of trying to place a <div> element inside a <p> element and
> > consequently failed validation using XHTML Strict 1.0.
>
> Did you revalidate it after changing the div styles to display:inline?
> - Just curious.
Why would that make any difference? Changing the style of an element
only changes how it is presented, not what it actually is. Hence, you
can see why validating HTML only validates the HTML, anything in the
CSS is 100% irrelevant.
Steve
Navigation:
[Reply to this message]
|