Re: id bodyContent in documents not in news items
Geir B?kholt <[email protected]> Thu, 18 Mar 2004 00:07:12 +0100
| Newsgroups | gmane.comp.web.zope.plone.design |
|---|---|
| Organization | Plone Solutions ? http://www.plonesolutions.com |
| Message-ID | <[email protected]> |
Michael Zeltner, Wednesday, February 25, 2004, 8:49:41 AM, you wrote: > i guess id="bodyContent" will be removed in 2.1 since it doesn't include > any functionality. it has a general purpose that you can use with other > classes for all documents. it's called .documentContent. > you don't need to identify every part of the document directly. > .documentContent p img is as good as #bodyContent img ;) >> Wouldn't it be better, when there is an id bodyContent in news items, too? > so no this isn't necessary ;) > thanks for pointing out a bug though, seems like the highlight code just > works for documents, and not for anything else. Classes are not good enough. There needs to be one definitive ID that wraps the content of all content-types, really. This is necessary for scripts like the search-highlighter to work properly. I thought #content was good enough, but it actually (contradictory to its name) contains the add-item/state-menu. Please keep the DOM in mind and not just css when deciding what are classes and what are ids. -- __________________________________________________________________ Geir Bækholt · Interaction Engineer · Plone Solutions Development · Training · Support · http://www.plonesolutions.com __________________________________________________________________ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click