Re: [WSG] use of p in li
the flaw in this approach is the potential for adding divs for styling purposes only which is hardly ever necessary. I'm not saying that at all. Every layout is going to have containers; use the ones you've already got. Adding styles for every element has the potential for 'bloating' your CSS. -- Tyssen Design http://www.tyssendesign.com.au Ph: (07) 3300 3303 Mb: 0405 678 590 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
[WSG] use of p in li
Hello all, I've been wondering about this for a while, just hesitated to ask (as it could be a stupid question). I've always been using p within olli (example, see state list on www.web-designers-australia.com) However, I see many people use a list without p tags, and style the text within the list item by creating a duplicate style of the paragraph tag. Just wondering, what is the way to go? Thanks *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
RE: [WSG] use of p in li
This email was sent before an update of the site and the old version did not contain a list on the front-page (just incase someone was wondering;-) It's now updated, and has the example list on the front-page. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Taco Fleur Sent: Monday, 11 February 2008 12:31 PM To: wsg@webstandardsgroup.org Subject: [WSG] use of p in li Hello all, I've been wondering about this for a while, just hesitated to ask (as it could be a stupid question). I've always been using p within olli (example, see state list on www.web-designers-australia.com) However, I see many people use a list without p tags, and style the text within the list item by creating a duplicate style of the paragraph tag. Just wondering, what is the way to go? Thanks *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
Hi, You don't need the p inside the li (although it's ok to put on in there it's not required). It's fine to just style the li. So unless you have a specific need for the extra tag I'd leave it out. cheers, Ben On 11/02/2008, Taco Fleur [EMAIL PROTECTED] wrote: Hello all, I've been wondering about this for a while, just hesitated to ask (as it could be a stupid question). I've always been using p within olli (example, see state list on www.web-designers-australia.com) However, I see many people use a list without p tags, and style the text within the list item by creating a duplicate style of the paragraph tag. Just wondering, what is the way to go? Thanks *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** -- --- http://weblog.200ok.com.au/ --- The future has arrived; it's just not --- evenly distributed. - William Gibson *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
RE: [WSG] use of p in li
Hi Taco, In the case of the example you provided I'd say definitely no need for the nested p tag. The li tags are enough to describe the content inside them - they are items in a list. I don't see how it is a duplicate style of the p tag either, in my experience it is good practice to style your lists differently than your paragraphs. Hope this helps, Best Regards, Tim From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Taco Fleur Sent: Monday, 11 February 2008 1:52 PM To: wsg@webstandardsgroup.org Subject: RE: [WSG] use of p in li This email was sent before an update of the site and the old version did not contain a list on the front-page (just incase someone was wondering;-) It's now updated, and has the example list on the front-page. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Taco Fleur Sent: Monday, 11 February 2008 12:31 PM To: wsg@webstandardsgroup.org Subject: [WSG] use of p in li Hello all, I've been wondering about this for a while, just hesitated to ask (as it could be a stupid question). I've always been using p within olli (example, see state list on www.web-designers-australia.com) However, I see many people use a list without p tags, and style the text within the list item by creating a duplicate style of the paragraph tag. Just wondering, what is the way to go? Thanks *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
What if you need to have 'two' paragraphs? would it not make more sense than to style a br??? On Feb 11, 2008 12:06 PM, Ben Buchanan [EMAIL PROTECTED] wrote: Hi, You don't need the p inside the li (although it's ok to put on in there it's not required). It's fine to just style the li. So unless you have a specific need for the extra tag I'd leave it out. cheers, Ben On 11/02/2008, Taco Fleur [EMAIL PROTECTED] wrote: Hello all, I've been wondering about this for a while, just hesitated to ask (as it could be a stupid question). I've always been using p within olli (example, see state list on www.web-designers-australia.com) However, I see many people use a list without p tags, and style the text within the list item by creating a duplicate style of the paragraph tag. Just wondering, what is the way to go? Thanks *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** -- --- http://weblog.200ok.com.au/ --- The future has arrived; it's just not --- evenly distributed. - William Gibson *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** -- JP2 Designs http://www.jp2designs.com http://www.germworks.net *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
RE: [WSG] use of p in li
Hi Tim, What I mean by duplicate style is that if I assigned color: red, font-size: 0.8em to the p tag, I will have to assign the same style to my li tags to make sure they look the same. OK, general consensus so far is, it's ok to put it in, but preferred to leave them out and style the li tag separately. Thanks Kind regards, Taco Fleur _ clickfindT 1300 859 179 www.clickfind.com.au http://www.clickfind.com.au/ the new Australian search engine for businesses, products and services . _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim MacKay Sent: Monday, 11 February 2008 1:14 PM To: wsg@webstandardsgroup.org Subject: RE: [WSG] use of p in li Hi Taco, In the case of the example you provided I'd say definitely no need for the nested p tag. The li tags are enough to describe the content inside them - they are items in a list. I don't see how it is a duplicate style of the p tag either, in my experience it is good practice to style your lists differently than your paragraphs. Hope this helps, Best Regards, Tim *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
If you have two paragraphs you might want to reconsider the use of a list. Jermayn Parker wrote: What if you need to have 'two' paragraphs? would it not make more sense than to style a br??? On Feb 11, 2008 12:06 PM, Ben Buchanan [EMAIL PROTECTED] wrote: Hi, You don't need the p inside the li (although it's ok to put on in there it's not required). It's fine to just style the li. So unless you have a specific need for the extra tag I'd leave it out. cheers, Ben On 11/02/2008, Taco Fleur [EMAIL PROTECTED] wrote: Hello all, I've been wondering about this for a while, just hesitated to ask (as it could be a stupid question). I've always been using p within olli (example, see state list on www.web-designers-australia.com) However, I see many people use a list without p tags, and style the text within the list item by creating a duplicate style of the paragraph tag. Just wondering, what is the way to go? Thanks *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** -- --- http://weblog.200ok.com.au/ --- The future has arrived; it's just not --- evenly distributed. - William Gibson *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
I'd say the only time you need to use paragraphs inside list items is when a list item's content is made up of more than one paragraph. On Mon, 11 Feb 2008 13:13:54 +1000, Tim MacKay [EMAIL PROTECTED] wrote: Hi Taco, In the case of the example you provided I'd say definitely no need for the nested p tag. The li tags are enough to describe the content inside them - they are items in a list. I don't see how it is a duplicate style of the p tag either, in my experience it is good practice to style your lists differently than your paragraphs. Hope this helps, Best Regards, Tim From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Taco Fleur Sent: Monday, 11 February 2008 1:52 PM To: wsg@webstandardsgroup.org Subject: RE: [WSG] use of p in li This email was sent before an update of the site and the old version did not contain a list on the front-page (just incase someone was wondering;-) It's now updated, and has the example list on the front-page. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Taco Fleur Sent: Monday, 11 February 2008 12:31 PM To: wsg@webstandardsgroup.org Subject: [WSG] use of p in li Hello all, I've been wondering about this for a while, just hesitated to ask (as it could be a stupid question). I've always been using p within olli (example, see state list on www.web-designers-australia.com) However, I see many people use a list without p tags, and style the text within the list item by creating a duplicate style of the paragraph tag. Just wondering, what is the way to go? Thanks *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** -- Tyssen Design http://www.tyssendesign.com.au Ph: (07) 3300 3303 Mb: 0405 678 590 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
RE: [WSG] use of p in li
Hi, OK, but a paragraph is a paragraph, right? So why not mark it up as one (even if it's only one)? I think from the responses it appears that there is no wrong or right, just a personal preference ;-) In my example (http://www.web-designers-australia.com/) the states are probably not a paragraph, I just hate styling them again ;-) Definition of paragraph: A paragraph is a section in a piece of writing, usually highlighting a particular point or topic. It always begins on a new line and usually with indentation, and it consists of at least one sentence. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Faulds Sent: Monday, 11 February 2008 1:28 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] use of p in li I'd say the only time you need to use paragraphs inside list items is when a list item's content is made up of more than one paragraph. On Mon, 11 Feb 2008 13:13:54 +1000, Tim MacKay [EMAIL PROTECTED] wrote: *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
If you have two paragraphs you might want to reconsider the use of a list. I don't agree. Consider as an example a 'list' of services - it may take more than one paragraph to adequately describe each service, but it is still a list. -- Tyssen Design http://www.tyssendesign.com.au Ph: (07) 3300 3303 Mb: 0405 678 590 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
I think he is simply saying style the li element... I might point out also that it does go against the doctrine of standards, if you will ;), to use superfluous markup. Taco Fleur wrote: Not sure if I fully understand, I think you mean; Assign the paragraph style to a HTML tag that is surrounding all other tags? If so, I would not feel comfortable with that. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Faulds Sent: Monday, 11 February 2008 2:02 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] use of p in li If you apply the style to the container, then you don't need to assign styles individually to different elements (except where you want them to be different). On Mon, 11 Feb 2008 13:22:52 +1000, Taco Fleur [EMAIL PROTECTED] wrote: Hi Tim, What I mean by duplicate style is that if I assigned color: red, font-size: 0.8em to the p tag, I will have to assign the same style to my li tags to make sure they look the same. OK, general consensus so far is, it's ok to put it in, but preferred to leave them out and style the li tag separately. Thanks Kind regards, Taco Fleur _ clickfindT 1300 859 179 www.clickfind.com.au http://www.clickfind.com.au/ the new Australian search engine for businesses, products and services . _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim MacKay Sent: Monday, 11 February 2008 1:14 PM To: wsg@webstandardsgroup.org Subject: RE: [WSG] use of p in li Hi Taco, In the case of the example you provided I'd say definitely no need for the nested p tag. The li tags are enough to describe the content inside them - they are items in a list. I don't see how it is a duplicate style of the p tag either, in my experience it is good practice to style your lists differently than your paragraphs. Hope this helps, Best Regards, Tim *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** -- Tyssen Design http://www.tyssendesign.com.au Ph: (07) 3300 3303 Mb: 0405 678 590 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
IMO a list is a list and can't really be confused with a paragraph... shopping list = eggs, bacon, bread, butter and ul's or ol's are designed specifically for that job. If you want more information in the list eg: Eggs nice big organic brown ones Bacon organic fed and humanely housed bacon only etc then you looking at a definition list. If the lists have a number of levels like Services Web Site Development Graphics SEO and more About Us Me You Someone else then simply nest the lists and style them accordingly Its easy to style the lists etc by giving each of them an id Have you looked at the brilliantly easy ways of styling lists on the http://css.maxdesign.com.au/ site. It's a really handy resource. Cheers Jackie Jackie Reid Mock Orange Media Ph: (07) 4953 4035 - Original Message - From: John Faulds [EMAIL PROTECTED] To: wsg@webstandardsgroup.org Sent: Monday, February 11, 2008 1:51 PM Subject: Re: [WSG] use of p in li If you have two paragraphs you might want to reconsider the use of a list. I don't agree. Consider as an example a 'list' of services - it may take more than one paragraph to adequately describe each service, but it is still a list. -- Tyssen Design http://www.tyssendesign.com.au Ph: (07) 3300 3303 Mb: 0405 678 590 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** __ NOD32 2862 (20080210) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
Hi Taco, I think it depends on what you're trying to accomplish. In the example you showed, a p element might not have provided much use. If you wanted to avoid using the same style for all LI elements, then maybe defining and applying class(es) to each li that differed would work. It makes perfect sense (to me at least) that a list item could contain multiple paragraphs. Craig On Feb 10, 2008 10:53 PM, Taco Fleur [EMAIL PROTECTED] wrote: Hi, OK, but a paragraph is a paragraph, right? So why not mark it up as one (even if it's only one)? I think from the responses it appears that there is no wrong or right, just a personal preference ;-) In my example (http://www.web-designers-australia.com/) the states are probably not a paragraph, I just hate styling them again ;-) Definition of paragraph: A paragraph is a section in a piece of writing, usually highlighting a particular point or topic. It always begins on a new line and usually with indentation, and it consists of at least one sentence. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Faulds Sent: Monday, 11 February 2008 1:28 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] use of p in li I'd say the only time you need to use paragraphs inside list items is when a list item's content is made up of more than one paragraph. On Mon, 11 Feb 2008 13:13:54 +1000, Tim MacKay [EMAIL PROTECTED] wrote: *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
If the lists have a number of levels like Services Web Site Development Graphics SEO and more About Us Me You Someone else I'm not talking about presenting a list of links; I'm talking about presenting the actual content on a page. From your example above, it's quite feasible that you'd just have one page for Services and one for About Us. If you present * Web Site Development * Graphics * SEO as a list of services (which it is), then it's quite likely you're going to need more than one paragraph to describe each of them. I don't buy the definition list option because I don't believe a description of a service is a 'definition' of that service (descriptions and definitions are two separate things). The argument for splitting onto separate pages may not always be the best option either - there may not be enough to say about each one to warrant that, but there may be more than can fit into one single paragraph. You see bulleted or numbered lists of more than one paragraph in printed material all the time, particularly academic publications. -- Tyssen Design http://www.tyssendesign.com.au Ph: (07) 3300 3303 Mb: 0405 678 590 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
the flaw in this approach is the potential for adding divs for styling purposes only which is hardly ever necessary. Certainly not in the scenario you have given. I advocate styling the elements directly rather than bloating the code more than you need too. Cheers Adam On Feb 11, 2008 2:59 PM, John Faulds [EMAIL PROTECTED] wrote: Assign the paragraph style to a HTML tag that is surrounding all other tags? If so, I would not feel comfortable with that. Why not? If this is your HTML: div class=content psome text/p ul lisome text/li /ul /div This .content { color: red; font-size: 1em; line-height: 1.5 } makes more sense and is more concise than p { color: red; font-size: 1em; line-height: 1.5 } li { color: red; font-size: 1em; line-height: 1.5 } Although I spose you could do p, li { color: red; font-size: 1em; line-height: 1.5 } But there may be cases where you want to apply a style to more than two or three elements, so it makes more sense to target them with a style on the container. -- Tyssen Design http://www.tyssendesign.com.au Ph: (07) 3300 3303 Mb: 0405 678 590 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** -- - http://myfitness.ning.com A community of people that care about their health and fitness Free fitness videos, recipes, blogs, photos etc. -- *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
Assign the paragraph style to a HTML tag that is surrounding all other tags? If so, I would not feel comfortable with that. Why not? If this is your HTML: div class=content psome text/p ul lisome text/li /ul /div This .content { color: red; font-size: 1em; line-height: 1.5 } makes more sense and is more concise than p { color: red; font-size: 1em; line-height: 1.5 } li { color: red; font-size: 1em; line-height: 1.5 } Although I spose you could do p, li { color: red; font-size: 1em; line-height: 1.5 } But there may be cases where you want to apply a style to more than two or three elements, so it makes more sense to target them with a style on the container. -- Tyssen Design http://www.tyssendesign.com.au Ph: (07) 3300 3303 Mb: 0405 678 590 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
John Faulds wrote: If you have two paragraphs you might want to reconsider the use of a list. I don't agree. Consider as an example a 'list' of services - it may take more than one paragraph to adequately describe each service, but it is still a list. in such a situation i would consider paragraphs and headings or a definition list.or placing a fuller description elsewhere (anchor or separate page) *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
In this particular instance I would say your approach is wrong because the p servers no purpose. The text is simply a link, if it were actually a paragraph of text then there might be a call for it, however even then I'm not certain. So in this case though its definitely superfluous, IMHO. Taco Fleur wrote: Hi, OK, but a paragraph is a paragraph, right? So why not mark it up as one (even if it's only one)? I think from the responses it appears that there is no wrong or right, just a personal preference ;-) In my example (http://www.web-designers-australia.com/) the states are probably not a paragraph, I just hate styling them again ;-) Definition of paragraph: A paragraph is a section in a piece of writing, usually highlighting a particular point or topic. It always begins on a new line and usually with indentation, and it consists of at least one sentence. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Faulds Sent: Monday, 11 February 2008 1:28 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] use of p in li I'd say the only time you need to use paragraphs inside list items is when a list item's content is made up of more than one paragraph. On Mon, 11 Feb 2008 13:13:54 +1000, Tim MacKay [EMAIL PROTECTED] wrote: *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
If you apply the style to the container, then you don't need to assign styles individually to different elements (except where you want them to be different). On Mon, 11 Feb 2008 13:22:52 +1000, Taco Fleur [EMAIL PROTECTED] wrote: Hi Tim, What I mean by duplicate style is that if I assigned color: red, font-size: 0.8em to the p tag, I will have to assign the same style to my li tags to make sure they look the same. OK, general consensus so far is, it's ok to put it in, but preferred to leave them out and style the li tag separately. Thanks Kind regards, Taco Fleur _ clickfindT 1300 859 179 www.clickfind.com.au http://www.clickfind.com.au/ the new Australian search engine for businesses, products and services . _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim MacKay Sent: Monday, 11 February 2008 1:14 PM To: wsg@webstandardsgroup.org Subject: RE: [WSG] use of p in li Hi Taco, In the case of the example you provided I'd say definitely no need for the nested p tag. The li tags are enough to describe the content inside them - they are items in a list. I don't see how it is a duplicate style of the p tag either, in my experience it is good practice to style your lists differently than your paragraphs. Hope this helps, Best Regards, Tim *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** -- Tyssen Design http://www.tyssendesign.com.au Ph: (07) 3300 3303 Mb: 0405 678 590 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
RE: [WSG] use of p in li
Not sure if I fully understand, I think you mean; Assign the paragraph style to a HTML tag that is surrounding all other tags? If so, I would not feel comfortable with that. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Faulds Sent: Monday, 11 February 2008 2:02 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] use of p in li If you apply the style to the container, then you don't need to assign styles individually to different elements (except where you want them to be different). On Mon, 11 Feb 2008 13:22:52 +1000, Taco Fleur [EMAIL PROTECTED] wrote: Hi Tim, What I mean by duplicate style is that if I assigned color: red, font-size: 0.8em to the p tag, I will have to assign the same style to my li tags to make sure they look the same. OK, general consensus so far is, it's ok to put it in, but preferred to leave them out and style the li tag separately. Thanks Kind regards, Taco Fleur _ clickfindT 1300 859 179 www.clickfind.com.au http://www.clickfind.com.au/ the new Australian search engine for businesses, products and services . _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim MacKay Sent: Monday, 11 February 2008 1:14 PM To: wsg@webstandardsgroup.org Subject: RE: [WSG] use of p in li Hi Taco, In the case of the example you provided I'd say definitely no need for the nested p tag. The li tags are enough to describe the content inside them - they are items in a list. I don't see how it is a duplicate style of the p tag either, in my experience it is good practice to style your lists differently than your paragraphs. Hope this helps, Best Regards, Tim *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** -- Tyssen Design http://www.tyssendesign.com.au Ph: (07) 3300 3303 Mb: 0405 678 590 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
RE: [WSG] use of p in li
Why not? If this is your HTML: I would not do it because you'll end up with having to override styles, it's not clear to other developers who come in on the project, it becomes a mess. But that might be personal preference again ;-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Faulds Sent: Monday, 11 February 2008 2:59 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] use of p in li Assign the paragraph style to a HTML tag that is surrounding all other tags? If so, I would not feel comfortable with that. Why not? If this is your HTML: div class=content psome text/p ul lisome text/li /ul /div This .content { color: red; font-size: 1em; line-height: 1.5 } makes more sense and is more concise than p { color: red; font-size: 1em; line-height: 1.5 } li { color: red; font-size: 1em; line-height: 1.5 } Although I spose you could do p, li { color: red; font-size: 1em; line-height: 1.5 } But there may be cases where you want to apply a style to more than two or three elements, so it makes more sense to target them with a style on the container. -- Tyssen Design http://www.tyssendesign.com.au Ph: (07) 3300 3303 Mb: 0405 678 590 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
I'm not talking about presenting a list of links; I'm talking about presenting the actual content on a page. From your example above, it's quite feasible that you'd just have one page for Services and one for About Us. If you present * Web Site Development * Graphics * SEO In the case presented, I'd use headings and paragraphs. I think in any situation where multiple paragraphs are required, the information should be broken out of the list, as it's taking away from what a list is really for - presenting multiple points in an easy-to-scan format. Casey. John Faulds wrote: If the lists have a number of levels like Services Web Site Development Graphics SEO and more About Us Me You Someone else I'm not talking about presenting a list of links; I'm talking about presenting the actual content on a page. From your example above, it's quite feasible that you'd just have one page for Services and one for About Us. If you present * Web Site Development * Graphics * SEO as a list of services (which it is), then it's quite likely you're going to need more than one paragraph to describe each of them. I don't buy the definition list option because I don't believe a description of a service is a 'definition' of that service (descriptions and definitions are two separate things). The argument for splitting onto separate pages may not always be the best option either - there may not be enough to say about each one to warrant that, but there may be more than can fit into one single paragraph. You see bulleted or numbered lists of more than one paragraph in printed material all the time, particularly academic publications. *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] use of p in li
The definition lists aren't soly for defining a term. The W3C specs gives an example usage of DL to marking up dialouges. I see the defintion lists as a good option when the list consists of two parts, a headline and a description. - Original Message - From: John Faulds [EMAIL PROTECTED] To: wsg@webstandardsgroup.org Sent: Monday, February 11, 2008 6:39 AM Subject: Re: [WSG] use of p in li If the lists have a number of levels like Services Web Site Development Graphics SEO and more About Us Me You Someone else I'm not talking about presenting a list of links; I'm talking about presenting the actual content on a page. From your example above, it's quite feasible that you'd just have one page for Services and one for About Us. If you present * Web Site Development * Graphics * SEO as a list of services (which it is), then it's quite likely you're going to need more than one paragraph to describe each of them. I don't buy the definition list option because I don't believe a description of a service is a 'definition' of that service (descriptions and definitions are two separate things). The argument for splitting onto separate pages may not always be the best option either - there may not be enough to say about each one to warrant that, but there may be more than can fit into one single paragraph. You see bulleted or numbered lists of more than one paragraph in printed material all the time, particularly academic publications. -- Tyssen Design http://www.tyssendesign.com.au Ph: (07) 3300 3303 Mb: 0405 678 590 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***