Can make div independent of other styles

I am trying to add some social buttons (facebook, twitter, etc.) to my blog without using a plugin, and it’s very difficult for me to make them align vertically, and I know this because Wordpress styles interfere, because I was able to make the buttons work on pages without WP.

Is there a way to create a div that tells the browser, "Do not apply to any styles in this div except those that I declare specifically for it, and if I do not declare them, do not apply any."

+3
source share
3 answers

Give divyour own class, something like socialButtons, then start with the removal of margin, padding, borderandfloat

div.socialButtons{
    margin:0;
    padding:0;
    border:0;
    float:none;
} 

. , .

, , .

+1

firebug ( firefox), , div. inline css, . w3schools . css, css (, , ).

+1

reset div , , ( reset.css, )

0
source

All Articles