Re: [WSG] img cannot be contained within the body?

2008-11-07 Thread David Dorward
James Jeffery wrote: I have never had to use img within the body tag. I was playing about with a test case for a client and happened to put img directly within the body (was for an image on screen with next and prev. links ... a gallery). In HTML 4.x Strict and related specs, the content

Re: [WSG] img cannot be contained within the body?

2008-11-06 Thread Joseph Taylor
If you're using XHTML, inline elements (like imgs) need to be contained within a block level element (like a div). On Thu, Nov 6, 2008 at 3:04 PM, James Jeffery [EMAIL PROTECTED] wrote: A very silly question that I cannot believe I am asking. I have never had to use img within the body tag.

Re: [WSG] img cannot be contained within the body?

2008-11-06 Thread Christian Montoya
On Thu, Nov 6, 2008 at 3:04 PM, James Jeffery [EMAIL PROTECTED] wrote: A very silly question that I cannot believe I am asking. I have never had to use img within the body tag. I was playing about with a test case for a client and happened to put img directly within the body (was for an image

Re: [WSG] img cannot be contained within the body?

2008-11-06 Thread James Jeffery
Ah, see. One little assumption threw me off. I know inlines can't contain blocks. I assumed the body element was block level by default. You see, it goes to show, after developing websites for many companies and government agencies over the years you can still be threw off by something silly.