How to CSS sandbox/reset an entire DIV area in the current page?

Viewed 3622

We are developing a bookmarklet, and when the bookmarklet loads on different websites, eg: cnn.com, bbc.co.uk, yahoo.com it displays in various styles and we have struggle to reset these styles.

The bookmarklet content is in the current page DOM and not in an iframe (because we need cookies and access to DOM).

We tried using CSS reset, but that resets only some basic stuff, like margins. And pages where for example there is a custom form, or rounded table rectangles it inherits and it should not.

Is there a way that we can completely isolate this DIV area in the current page to look only as we want?

4 Answers
Related