This is a common technique called a CSS reset. Different browsers use different default margins, causing sites to look different by margins. The *
means “all elements” (a universal selector), so we are setting all elements to have zero margins, and zero padding, thus making them look the same in all browsers.
Related Posts:
- Is there a CSS parent selector?
- Nesting CSS classes
- What is the difference between the selectors “.class.class” and “.class .class”?
- In CSS what is the difference between “.” and “#” when declaring a set of styles? [duplicate]
- What does an asterisk (*) do in a CSS selector?
- Is there an opposite CSS pseudo-class to :hover?
- Combine :after with :hover
- What does the “~” (tilde/squiggle/twiddle) CSS selector mean?
- Is there a “previous sibling” selector?
- How can I apply styles to multiple classes at once?
- Specify multiple attribute selectors in CSS
- CSS “and” and “or”
- CSS selector for first element with class
- How to select label for=”XYZ” in CSS?
- What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?
- Vertically align text within a div
- create a white rgba / CSS3
- Insert image after each list item
- How to fix a footer overlapping content?
- What is element.style and why is it overriding my css settings?
- How to fade an image with CSS without opacity?
- How to get CSS to select ID that begins with a string (not in Javascript)?
- Flushing footer to bottom of the page, twitter bootstrap
- CSS transition fade in
- Responsive media query not working in Google Chrome
- Contain an image within a div?
- Failed to decode downloaded font
- Center HTML Input Text Field Placeholder
- CSS fill remaining width
- TinyMCE: adding CSS to format dropdown
- Is there a quick way to remove inline css from all posts?
- How to remove CSS file in the header using WordPress functions?
- Get list of registered or enqued styles? looking for filters or actions
- wp_get_archives() – Get CSS selector for current month
- Do I only need to import style.css for a child theme?
- Disable child theme css on certain pages
- How to load a css file in one page only?
- How to add custom fonts in WordPress site
- Handling URLs in WordPress application
- Extending content width with twentyfourteen theme
- How to change DASH-ICON color with CSS?
- CSS file not registering through add_action
- Custom Admin CSS styles to style media uploader?
- getting url in wp_enqueue_style
- Gutenberg Additional CSS Class without modifying theme?
- Eliminate render-blocking JavaScript and CSS in above-the-fold content
- Unable to load CSS file (HTTP 403)
- how to setup content on a static frontpage with css and xhtml
- wp_enqueue_style – CSS Not loading – ERR_TOO_MANY_REDIRECTS [closed]
- Help with child theme enqueuing additional css files
- Why does my caroussel gallery do this in responsive? [CSS] [closed]
- Website CSS not loading [closed]
- Custom styles dropdown in TinyMCE editor – not working with headings
- Load CSS in footer, like your can with JS?
- Correct Way To Make Changes To A WordPress Theme
- How to change the full capitals font title of my WordPress Blog?
- How to deal with logo color on dark mode?
- Header background image just stopped working
- HTML email sent with wp_mail shows plain text
- Style file inclusion
- Add second background-image on hover
- CSS getting injected into index from somewhere after theme/custom CSS is loaded, overriding all of my CSS [closed]
- How do I change the style of just a part of the tagline?
- Having a hard time linking my css and JS files on a Boostrap to WP conversion
- Reduce font size [closed]
- Using css class selectors on a specifc page [closed]
- How can I force the WordPress visual editor to preserve the line breaks after paragraphs?
- WordPress Rest Api access the header and extract stylesheets URL
- How to create CSS Counters for Comments (depth 5)?
- Override All CSS with Custom CSS on a Page by Page Basis
- padding not working
- Hide Some Fields of Post Submit box
- Navbar bg to overflow to section below (updated)
- Add top parent page id to body class
- New Styles Not Rendering On Mobile Phone and Tablet
- Set different css stylesheet for specific pages [duplicate]
- Desktop is class List and Mobile is class Grid
- Include ElementorPro css into WordPress custom page
- Customizing the CSS for the post/page editor?
- My Child Theme CSS Isn’t Working
- current menu item hover not working?
- how to load basic wordpress css
- Add class when more page is visited
- How do I make a child theme’s style.css load after plugin css?
- WordPress – Portfolio – Change number of items in a row
- Floated element floats into post content in IE, Safari, and Chrome
- How can I pass a variable from PHP to LESS?
- Large Unwanted Space at the Bottom of Blog Posts [closed]
- Create a body div using CSS [closed]
- Managing large CSS files [closed]
- How would I use a media query to make my entire theme responsive or fluid? [closed]
- Clear white line off page [closed]
- Strange symbols on page [closed]
- How to make this splash page responsive
- Menu is not styled properly and footer as well [closed]
- Footer in middle of page in different browers [closed]
- How do I add JS and CSS to WP (Flatsome)
- Remove / Disable default custom.css?ver=1.0.0
- Website is not showing updated CSS
- How to hide button with CSS class?