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 to use Font Awesome 4.x CSS file with JSF? Browser can't find font files

    How to hold a css style on hover

    how to load css for a div?

    Base 64 CSS background image not showing in IE

    How to stop all CSS overrides on a container DIV?

    How can I make this section of my webpage responsive? [closed]

    How to make a content div stretch from a header div to a footer div?

    How can I make all table cell sizes the same width in css?

    Show all text document

    How to create a floating mutlicolumn layout in CSS (Flexbox, float, inline-block)?

    How to detect DOM element position to use different CSS style via CSS selection

    How to add atributes on pic stored from database [closed]

    How to use CSS Class and ID selectors

    How to make mouse hover not shift background downward? (Beginner CSS)

    How to style select crossbrowser [duplicate]

    How to compile scss to css with node-sass

    How to override w3.css for table border

    how to properly use CSS Class and ID [closed]

    How do I make this nested div to show up on top right corner and make text wrap around it?

    How to use CSS in ASP.NET application

    How to select a range of elements in repeated pattern

    How to break a overflowed navigation bar via CSS

    Overwriting a CSS Class How to?

    How i can create dynaminc ordered list items with pure css

    How come the exact same version of Google Chrome shows different layout?

    How do I set up the Zurb Foundation icons?

    CSS how translate DIV with whole content in it

    How to ignore body element style when there is a class at element inside

    With CSS, how do you unhighlight a link after clicking a different link?

    How can I fill in the background behind text when I hover over it in a nav bar? [HTML/CSS]