Re: [WSG] Classes---Adding multiple classes to an element, is there a downfall???

2009-02-25 Thread Ben Buchanan
Is there a downfall to applying multiple classes to an element, like the one > above? How does it affect UAs? Just thought I'd offer an alternate viewpoint to the "argh! no!" responses so far. Like most web dev questions there's a contextual aspect to the question. There's a time and a place to us

Re: [WSG] Classes---Adding multiple classes to an element, is there a downfall???

2009-02-24 Thread Brett Patterson
Yea, I would never consider allowing it on any project I am working on either...I was actually asking because I have heard that it could be done, but never really understood (maybe, come to think of it, heard) what the downfalls were. I do, now, thanks to you and Russ Weakley. -- Brett P. On Tue

RE: [WSG] Classes---Adding multiple classes to an element, is there a downfall???

2009-02-24 Thread michael.brockington
In my own personal opinion, if you get into the situation where you want to use a selector like: .class1.class2 { stuff } then it is time to do a little re-factoring. The whole point of allowing an element to have two or more classes is so that each class remains semantically logical. As you p

Re: [WSG] Classes---Adding multiple classes to an element, is there a downfall???

2009-02-23 Thread Russ Weakley
Hey Brett, There are many ways to do what you need - so you may not need to use a multiple class selector at all. OPTION 1 -- Using the html example you sent in a previous email, you could target instances of content using descendant selectors based on the parent classes alone - w

Re: [WSG] Classes---Adding multiple classes to an element, is there a downfall???

2009-02-23 Thread Brett Patterson
So, where: what I was wondering (I should have worded better, sorry) was if I took: .information { background-color: #FFF; color: #000; } /* This below, will apply only to the paragraph with the more-styles class applied to it */ .more-styles { color: #333; } and applied to both of those

Re: [WSG] Classes---Adding multiple classes to an element, is there a downfall???

2009-02-23 Thread Matthew Pennell
On Mon, Feb 23, 2009 at 2:18 PM, Brett Patterson < inspiron.patters...@gmail.com> wrote: > Note the space in the second paragraph class attribute...from what I have > heard this allows multiple classes to be applied to a single element. Is > there a downfall to applying multiple classes to an elem

[WSG] Classes---Adding multiple classes to an element, is there a downfall???

2009-02-23 Thread Brett Patterson
Hey all, a quick question, consider the following code: Content goes here on line 1 Content goes here on line 2 Note the space in the second paragraph class attribute...from what I have heard this allows multiple classes to be applied to a single element. Is there a downfall to applying mult