Well, I am working on a chrome extension that creates a side bar (div) on the right. I have created my own CSS style file for this side bar. However, when this side bar is created on a website, it adopts the style and CSS established for such webpage. Therefore, I decided to declare an id and a class for each element in my side bar to be specific on which things I want to apply my own CSS file. I worked for a few things but most of my elements' style are overridden by the original webpage's CSS. I tried bootstrap but it modifies the entire website and crashes my extension. I have also tried to reset some elements with:
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: initial;
vertical-align: baseline;
background: none;
}
But still not working. Does anybody know how can I apply my style sheet only to my side bar and the side bar must not inherit the style sheet of the website.