⊗mkSpCBrUSR 76 of 128 menu

Resetting styles via universal selector in CSS

A common practice is to cancel the default indentation by creating a so-called style reset file reset.css.

In this file, all indents are reset to zero using the universal selector:

* { margin: 0; padding: 0; }

Then, first the reset file is connected to the HTML page, and then the file with the main CSS styles:

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" href="reset.css"> <link rel="stylesheet" href="styles.css"> </head> <body> </body> </html>

Create a file with a reset via the universal selector. Connect it to some HTML file. Look at the default appearance of the page, without your CSS styles.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline