On 02/05/07, Scott Nicholson <[EMAIL PROTECTED]> wrote: > Take a look at: http://dlaa.cms.derwentside.net/index.cfm?articleid=6819 > (this is running on a CMS development server) and notice how the text in the > first paragraph has no formatting after the image.
GIGO: http://validator.w3.org/check?uri=http%3A%2F%2Fdlaa.cms.derwentside.net%2Findex.cfm%3Farticleid%3D6819&charset=%28detect+automatically%29&doctype=Inline&ss=1 Since the end tag for p elements is optional in HTML (and you are serving your XHTML as text/html), and div elements are not allowed inside paragraphs, the paragraph is closed by implication. As far as the browser is concerned, the text following the div is not inside the paragraph. > Adding a blank P tag with the image inside displays correctly but it's a bit > of a workaround as theoretically you can have DIVs inside P tags No, you can't. > at least according to W3C. Where does the W3C claim this? -- David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/