Re: [WSG] an inline element (inside a block element) sibling of another block element

2007-07-26 Thread Micky Hulse

David Dorward wrote:

On 26 Jul 2007, at 11:14, Micky Hulse wrote:

Well, that went over my head... Mind explaining?

http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.3


Looks interesting. :)

Thanks!
Cheers,
Micky


--
Wishlists: 
   Switch: 
 BCC?: 
   My: 


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] an inline element (inside a block element) sibling of another block element

2007-07-26 Thread David Dorward


On 26 Jul 2007, at 11:14, Micky Hulse wrote:


Rimantas Liubertas wrote:

Why not to check it? From HTML 4.01 Strict DTD:
..
Woohoo, A is here. Case closed.


Well, that went over my head... Mind explaining?


http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.3

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] an inline element (inside a block element) sibling of another block element

2007-07-26 Thread Micky Hulse

Rimantas Liubertas wrote:

Why not to check it? From HTML 4.01 Strict DTD:
..
Woohoo, A is here. Case closed.


Well, that went over my head... Mind explaining?

--
Wishlists: 
   Switch: 
 BCC?: 
   My: 


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] an inline element (inside a block element) sibling of another block element

2007-07-25 Thread Rimantas Liubertas


A line of plain text.
A paragraph.
Another line of text.


Now a question, Is this actually valid??
I recently recieved some templates of another designer and this was
scattered all throughout the pages.

I went through and put  around them BUT is it valid??? Or is it a
case of in Transitional DTD its ok but Strict DTD it is not??


Why not to check it? From HTML 4.01 Strict DTD:

Let's see DIV:


Ok, now let's look up what is %flow:



Checking %inline:


Just to make sure - %special:



Woohoo, A is here. Case closed.


Regards,
Rimantas
--
http://rimantas.com/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] an inline element (inside a block element) sibling of another block element

2007-07-24 Thread Jermayn Parker


A line of plain text.
A paragraph.
Another line of text.


Now a question, Is this actually valid??
I recently recieved some templates of another designer and this was
scattered all throughout the pages.

I went through and put  around them BUT is it valid??? Or is it a
case of in Transitional DTD its ok but Strict DTD it is not??

Thanks :D


The above message has been scanned and meets the Insurance Commission of 
Western Australia's Email security policy requirements for outbound 
transmission. 

This email (facsimile) and any attachments may be confidential and privileged. 
If you are not the intended recipient, you are hereby notified that any use, 
dissemination, distribution or copying of this email (facsimile) is strictly 
prohibited. If you have received this email (facsimile) in error please contact 
the Insurance Commission.

Web: www.icwa.wa.gov.au 
Phone: +61 08 9264 

*


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] an inline element (inside a block element) sibling of another block element

2007-07-24 Thread Michael Turnwall




Julián Landerreche wrote:
Hi all,
  
Suppose: 
  

    I deserve to be a block
    I don't deserve to be a block

  
The "a" element has a block parent ("div") as element.
But it also has a sibling element ("p"), which is a block element.
  
*Would you say it's valid?*
  
I've been searching (not too much) but haven't find too much about this.
In this article [1], the author talks about *anonymous block boxes*:
  
  
"For elements containing a mix of block-level
elements and inline-level elements (or plain text), so-called
anonymous block boxes are generated so that the principal block box
then contains nothing but block boxes." [1]
  
  
An his  example is:
  

    A line of plain text.
    A paragraph.
    Another line of text.

  
which is slightly different to the one I posted.
  
So, is it valid to mix inline and block elements (as siblings) as long
as the inline elements are children of a block element?
  
Thanks in advance and excuse my english.
Julián Landerreche
  
[1]: 
http://www.autisticcuckoo.net/archive.php?id=2005/01/12/block-vs-inline-2
  
  
  
***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

why not just wrap the paragraph around the
link as well? Though I think it should be perfectly valid to have both
inline elements and block elements as children of a div. For example,
what if I have an entire column of a page wrapped in a div, which is
common practice. Why would every child of that div have to be another
block element?



***List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfmUnsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfmHelp: [EMAIL PROTECTED]***



Re: [WSG] an inline element (inside a block element) sibling of another block element

2007-07-24 Thread Sander Aarts


Julián Landerreche schreef:
So, is it valid to mix inline and block elements (as siblings) as long 
as the inline elements are children of a block element?
I think it is valid, but this will change in HTML5 if I'm correct. In 
its specs it says that a  for instance, can have either inline 
elements or block elements as its children, but not both 
(http://www.whatwg.org/specs/web-apps/current-work/#block-level)


cheers,
Sander


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



[WSG] an inline element (inside a block element) sibling of another block element

2007-07-24 Thread Julián Landerreche

Hi all,

Suppose:


   I deserve to be a block
   I don't deserve to be a block


The "a" element has a block parent ("div") as element.
But it also has a sibling element ("p"), which is a block element.

*Would you say it's valid?*

I've been searching (not too much) but haven't find too much about this.
In this article [1], the author talks about *anonymous block boxes*:

"For elements containing a mix of block-level
elements and inline-level elements (or plain text), so-called
anonymous block boxes are generated so that the principal block box
then contains nothing but block boxes." [1]

An his  example is:


   A line of plain text.
   A paragraph.
   Another line of text.


which is slightly different to the one I posted.

So, is it valid to mix inline and block elements (as siblings) as long as
the inline elements are children of a block element?

Thanks in advance and excuse my english.
Julián Landerreche

[1]:
http://www.autisticcuckoo.net/archive.php?id=2005/01/12/block-vs-inline-2


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***