How to avoid universal Rule CSS Asterisk(*)?


Tags: css

Problem :

I have a table <table></table> and also a CSS Rule *{margin:0;padding:0;}

Now I want to nullify the effect of "margin:0" (the universal rule) over the above mentioned table. How can i achieve that?



Solution :

table#some_id {margin:10px;}

Btw. you should never use * {margin:0;padding:0;}. Rather try a CSS reset


    CSS Howto..

    How do I center the twitter bootstrap tabs on the page?

    How to add !important to every element in a CSS file [duplicate]

    How to fix
      's in footer that break in ie8 & ie9, but is perfect in ie7, FF, Safari & Chrome

    How to get started with Blueprint [CSS Framework]?

    How to customize CSS depending on (tinier) window size?

    HOW to combine two element that has different parent in CSS? [duplicate]

    How do I use this CSS animation in my HTML file?

    How to give Internet Explorer different CSS lines?

    How do I highlight only the innermost table row of a nested table?

    How to use css selector with “not” in c#?

    How is better to do with CSS sprites [closed]

    How to make my footer always stay at the bottom of the page, even when the page content is smaller than the screen?

    How to delay one transition but not the other?

    How do I align the list items in an
      with my

      ?

    how to change the div background image in mouse over [duplicate]

    how to use dynamic css in jsp file base on param value

    How to do two border upon one div tag by css or by css3? [duplicate]

    CSS3 - How to “restore” ::-webkit-scrollbar property to the default scroll bar

    How to create HTML5 popup with minimize etc

    How to correctly apply a CSS style to all the images in a div having a specific class?

    css: how to display prev and next links outside slider

    how to apply CSS for @Html.DisplayFor?

    CSS: When I add a button to my container, my layout breaks, how to avoid this?

    How to include css files into compojure project?

    How do I prevent a JQuery UI menu from floating?

    How do you disable the set width of parent element for child element?

    How to add multiple font files for the same font?

    how to make an empty span collapse

    How do I make entire div a link? [duplicate]

    How to display a background image with a:hover