Re: [WSG] div in li
Tee G.Peng wrote: Philip, On Jul 13, 2006, at 6:37 PM, Nikita The Spider wrote: Tee, There is no such thing as a .li element; I assume you mean li. That was for people who read email in HTML mode :) That's not how HTML mail works. Just let the mail clients handle encoding the messages properly, you never need to manually include workarounds like that. -- Lachlan Hunt http://lachy.id.au/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] div in li
On Jul 16, 2006, at 5:55 PM, Lachlan Hunt wrote: Tee G.Peng wrote: Philip, On Jul 13, 2006, at 6:37 PM, Nikita The Spider wrote: Tee, There is no such thing as a .li element; I assume you mean li. That was for people who read email in HTML mode :) That's not how HTML mail works. Just let the mail clients handle encoding the messages properly, you never need to manually include workarounds like that. I read from other list that it's one of the net etiquette to always do so whenever you include markup in your post, so that people who read in html mode can read the markup. Even so, I always forgot to do this. tee ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] div in li
Tee G.Peng: Is it legal to place a div in .li? You'll find the answers to such questions here: http://htmlhelp.com/reference/html40/ http://htmlhelp.com/reference/html40/lists/li.html If you learn to read DTD:s the same information is in them. Here: http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict you can find this line: !ELEMENT li %Flow; in the DTD, that states that %flow; goes inside li, and following the link from %flow; provides this information: !ENTITY % Flow (#PCDATA | %block; | form | %inline; | %misc;)* A tutorial on DTD writing/reading can be found here: http://www.w3schools.com/dtd/ /AndersN ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] div in li
Was I not told by Mike from green-beast don't blindly rely on automated validator the other day! :) I believe that was in regard to accessibility? Unless I wasn't reading closely enough. The HTML validator has a few bugs, but I think you are safe in this situation. Unless I am mistaken, one of the only things you need to consider in cases like this is that you don't nest a block level element inside an inline element. li's are considered block level, no? I think you're good. matt www.directsteps.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
[WSG] div in li
Hi, Is it legal to place a div in .li? Something like this .lix div it does validate/div /li I am using XHTML 1.0 strict doctype and it doesn't show validate error, also, the WAI validation from content quality site doesn't give me warning or error, but I feel so uncertain about it. If you must know why I place a div tag inside the li tag - it's from the PVII image gallery script for adding description. The div tag is generated by the gallery script. Thanks! tee ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] div in li
From: Tee G.Peng [EMAIL PROTECTED] Is it legal to place a div in .li? Something like this .lix div it does validate/div /li I am using XHTML 1.0 strict doctype and it doesn't show validate error, also, the WAI validation from content quality site doesn't give me warning or error, but I feel so uncertain about it. If you must know why I place a div tag inside the li tag - it's from the PVII image gallery script for adding description. The div tag is generated by the gallery script. We're legal, Tee :-) -- Al Sparber PVII http://www.projectseven.com Designing with CSS is sometimes like barreling down a crumbling mountain road at 90 miles per hour secure in the knowledge that repairs are scheduled for next Tuesday. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] div in li
On 7/13/06, Tee G.Peng [EMAIL PROTECTED] wrote: Hi, Is it legal to place a div in .li? Something like this .lix div it does validate/div /li Tee, There is no such thing as a .li element; I assume you mean li. If that's the case, then yes, it is OK to put a div inside li. Besides, if the W3C validator said it was OK, isn't that more convincing than the comments of someone like me who you've never even heard of? =) -- Philip http://NikitaTheSpider.com/ Whole-site HTML validation, link checking and more ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] div in li
On Jul 13, 2006, at 6:33 PM, Al Sparber wrote: We're legal, Tee :-) Ah, sorry, I should have trust in you :) tee ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] div in li
On 7/13/06, Tee G.Peng [EMAIL PROTECTED] wrote: OK, perhaps I should rephrase my question. Is there no semantical reason that it's not quite legal to do so? You must forgive me asking this seemingly stupid question; the heated Alphabetical Listing Buttons thread did make me think twice how to use proper markup. Ah, well, now there's a question that we can argue about! =) Seriously, IMHO it's fine, in general. (In general meaning I'm sure someone will take this as a challenge to devise an example that's not fine, but I can't think of one offhand.) -- Philip http://NikitaTheSpider.com/ Whole-site HTML validation, link checking and more ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **