tags:

views:

41

answers:

1

What is the best strategies to write CSS for CMS generated non semantic HTML with overuse of Divs, spans. I can't modify HTML? I can add javascript and css files but can't add xhtml code. Is there any things needs to be concern?

Edit:

See example code of horizontal dropdown

http://jsbin.com/emuco/edit

+1  A: 

Not sure why overloading the existing CSS class definitions provided in the HTML isn't workable, but at the very worst you can dynamically inject HTML content including CSS class attributes as appropriate. jQuery is great at this, but any framework that allows CSS3 selectors should make it very easy to modify your HTML with a few simple lines of script. Once you modify/inject your HTML, you can write your appropriate CSS or leverage existing written CSS (say if you wanted to use a UI CSS framework like jQUeryUI Themes)

Of course this will be much slower than having the appropriate HTML already written.

r00fus