1

I'm writing an app that will use a bookmarklet for part of its functionality. The bookmarklet will be fairly UI heavy, and so I was hoping to make use of the Twitter Bootstrap framework. However, from the research I've done it looks like you have to carefully write any CSS to ensure that naming clashes don't break the original site.

One possible solution I can envision would be to go through all the CSS in Bootstrap and prepend a long unique id so that instead of just .column, the css selectors would look something like #my_app_00234 .column. This seems very clunky, could break the Bootstrap Javascript, and would have to be redone if we changed up the Bootstrap code we use (perhaps because of reconfiguring the CSS to use different margins and colors).

I also found that HTML5 has the ability to namespace CSS, but it does not have very wide browser support, and we'll need to support some amount of IE.

Any ideas?

davidscolgan
  • 7,508
  • 9
  • 59
  • 78

0 Answers0