Re: [WSG] Implication of empty divs

2009-02-10 Thread Gunlaug Sørtun
Ben Lau wrote: But as far as i know, screen readers do not pick up IDs or classes? So even by declaring a div ID="mainNav", it's still not enough to describe what's inside the div? I'm starting to get awfully confused... A div is an element primarily intended for grouping blocks of content

Re: [WSG] Implication of empty divs

2009-02-10 Thread Matt Morgan-May
Andy's technically correct, and it's true that pointing to the main content of the document is good for accessibility, though not because of semantics so much as that you can point to it in a "Skip to main content" link. "id='mainContent'" doesn't communicate any semantics by itself. (That's so

Re: [WSG] Implication of empty divs

2009-02-10 Thread Ben Lau
>From the "CSS Mastery Advanced Web Standards Solutions" book by Andy Budd, and I quote: "Many people mistakenly believe that a div element has no semantic meaning. However div actually stands for *division *and provides a way of dividing a document into meaningful areas. So by wrapping your main c

Re: [WSG] Implication of empty divs

2009-02-09 Thread Gunlaug Sørtun
Ben Lau wrote: Are there any (seriously) bad implications of having empty DIVs around your HTML document? I understand from that that you mean "nested divs", for multiple backgrounds etc. A few extra divs means nothing other than extra weight, but I have managed to break a few older browsers

Re: [WSG] Implication of empty divs

2009-02-09 Thread Chris F.A. Johnson
On Mon, 9 Feb 2009, Joseph Taylor wrote: That's a great link. It also shows that an extra empty element, while it may be "the easy way out" works across the board without side effects of any kind. Yes it is mixing content and presentation. Many DIVs (and SPANs) are, in fact, used for pr

Re: [WSG] Implication of empty divs

2009-02-09 Thread Joseph Taylor
While the   does represent "nothing" in a way, it is something and I would say that it's use would be slighty worse than a purely empty element. Joseph R. B. Taylor Designer/Developer --- Sites by Joe, LLC "Clean, Simple & Elegant Web Design" Phone: (609) 335-3076

Re: [WSG] Implication of empty divs

2009-02-09 Thread Joseph Taylor
Ben, That's a great link. It also shows that an extra empty element, while it may be "the easy way out" works across the board without side effects of any kind. Yes it is mixing content and presentation. Joseph R. B. Taylor Designer/Developer --- Sites by Joe, L

Re: [WSG] Implication of empty divs

2009-02-09 Thread Juarez P. A. Filho
Wow... Learned a lot on this topic. Actually I'm using "overflow:auto" but be careful, when zoom in the page sometimes that can break your layout. -- Regards, Juarez P. A. Filho Front-End Developer and Web Consultant http://juarezpaf.com "The future belongs to those who believe in the beauty of

Re: [WSG] Implication of empty divs

2009-02-09 Thread James Ducker
On a side note, there is a Firefox addon that reproduces JAWS-like output (in text), called Fangs. Link: http://www.standards-schmandards.com/projects/fangs/ - James *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.

Re: [WSG] Implication of empty divs

2009-02-09 Thread Benjamin Hawkes-Lewis
On 9/2/09 02:44, Gerard Hynes (Gmail) wrote: I'm not expert about screen readers, but I did run a site I upgraded through JAWS with some interesting results. The site had alot of   due to the CMS they were using and JAWS would translate this to/speak out "blank" which wasn't ideal. Am not sure i

RE: [WSG] Implication of empty divs

2009-02-09 Thread Paul Collins
- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of Chris F.A. Johnson Sent: Monday, February 09, 2009 8:45 AM To: wsg@webstandardsgroup.org Subject: Re: [WSG] Implication of empty divs On Mon, 9 Feb 2009, Benjamin Hawkes-Lewis wrote: > On 9/2/09 07:45, Chris

Re: [WSG] Implication of empty divs

2009-02-09 Thread Chris F.A. Johnson
On Mon, 9 Feb 2009, Benjamin Hawkes-Lewis wrote: On 9/2/09 07:45, Chris F.A. Johnson wrote: How can CSS overflow replace ? See http://www.ejeliot.com/blog/59 Thanks, but I find the extra DIV no more objectionable than the hackery and extra CSS described in that article. -- Chr

Re: [WSG] Implication of empty divs

2009-02-09 Thread Benjamin Hawkes-Lewis
On 9/2/09 07:45, Chris F.A. Johnson wrote: How can CSS overflow replace ? See http://www.ejeliot.com/blog/59 -- Benjamin Hawkes-Lewis *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webs

Re: [WSG] Implication of empty divs

2009-02-08 Thread Chris F.A. Johnson
On Mon, 9 Feb 2009, Gerard Hynes (Gmail) wrote: I'm all for semantic mark up and removing redunant tags, but the reality is supporting older browsers and browser quirks complicate things. So, yes definitely prefer CSS overflow solution, to adding a redundant/meaningless tag. How can CSS ove

Re: [WSG] Implication of empty divs

2009-02-08 Thread Gerard Hynes (Gmail)
I'm all for semantic mark up and removing redunant tags, but the reality is supporting older browsers and browser quirks complicate things. So, yes definitely prefer CSS overflow solution, to adding a redundant/meaningless tag. In the perfect world people would use the latest standards compliant b

Re: [WSG] Implication of empty divs

2009-02-08 Thread Ben Lau
Haha, thanks. But I also do appreciate the long answers though; thanks Benjamin. I've read on numerous blogs/tutorials/comments that having blank div is poor practice, and that it's also poor semantic markup because it's meaningless. I mention the javascript alternative because i'll be using thes

Re: [WSG] Implication of empty divs

2009-02-08 Thread Anthony Ziebell
If you use a tool such as tidy html in xhtml mode it will delete your empty tags... probably a setting to turn that feature off, but something to think about... Cheers, Anthony. Gerard Hynes (Gmail) wrote: My advice below. Cheers, Gerard On Mon, Feb 9, 2009 at 9:33 AM, Ben Lau wrote:

Re: [WSG] Implication of empty divs

2009-02-08 Thread Gerard Hynes (Gmail)
My advice below. Cheers, Gerard On Mon, Feb 9, 2009 at 9:33 AM, Ben Lau wrote: > Hi all, > > Are there any (seriously) bad implications of having empty DIVs around your > HTML document? I try to avoid using them personally, but there are cases > where the visual design has forced me to add empty

Re: [WSG] Implication of empty divs

2009-02-08 Thread Joseph Taylor
Agreed. An empty div is nothing. Same thing with an empty spans etc... Joseph R. B. Taylor /Designer / Developer/ -- Sites by Joe, LLC /"Clean, Simple and Elegant Web Design"/ Phone: (609) 335-3076 Fax: (866) 301-8045 Web: http://sitesbyjoe.com Email: j...@sit

Re: [WSG] Implication of empty divs

2009-02-08 Thread Andrew Maben
On Feb 8, 2009, at 9:00 PM, Christian Montoya wrote: On Sun, Feb 8, 2009 at 6:33 PM, Ben Lau wrote: Hi all, Are there any (seriously) bad implications of having empty DIVs around your HTML document? No. p.s. ignore all the long-winded answers. Agreed. Andrew http://www.andrewmaben.

Re: [WSG] Implication of empty divs

2009-02-08 Thread Christian Montoya
On Sun, Feb 8, 2009 at 6:33 PM, Ben Lau wrote: > Hi all, > > Are there any (seriously) bad implications of having empty DIVs around your > HTML document? No. p.s. ignore all the long-winded answers. -- -- Christian Montoya mappdev.com :: christianmontoya.net *

Re: [WSG] Implication of empty divs

2009-02-08 Thread Chris F.A. Johnson
On Mon, 9 Feb 2009, Ben Lau wrote: Are there any (seriously) bad implications of having empty DIVs around your HTML document? I try to avoid using them personally, but there are cases where the visual design has forced me to add empty divs (or spans) just to achieve the look. I've never use

Re: [WSG] Implication of empty divs

2009-02-08 Thread Benjamin Hawkes-Lewis
On 8/2/09 23:33, Ben Lau wrote: Are there any (seriously) bad implications of having empty DIVs around your HTML document? I try to avoid using them personally, but there are cases where the visual design has forced me to add empty divs (or spans) just to achieve the look. Apart from adding extra

[WSG] Implication of empty divs

2009-02-08 Thread Ben Lau
Hi all, Are there any (seriously) bad implications of having empty DIVs around your HTML document? I try to avoid using them personally, but there are cases where the visual design has forced me to add empty divs (or spans) just to achieve the look. Apart from adding extra weight and cluttering th