
Reseter.css
A CSS Reset/Normalizer
Reseter.css is an awesome CSS reset for a website. It is a great tool for any web designer. Reseter.css resets all the premade styles by the browser. It normalizes the browser's stylesheet for a better cross-browser experience.
Join 6785 People Already Using Reseter.css
Table Of ContentsAll Not Dead Browsers
**Customisable** | IE 10+
Safari 8+
Chrome
Firefox ESR+
Opera
Edge | Last 3 Versions
Exception: Safari Last 2
Also Firefox ESR, IE 9+ | Unkown | ### Legend :heavy_check_mark: - Yes :x: - No :o: - Partial ## Why Use Reseter.css (Must Read) Down is the result of a same html file of 3 browsers, all of chrome's headings are bolded nicely. Firefox ones are also bolded but IE ones are bolded too much. The ,font on paragraphs is also bolded in IE. The border of the button is blue in IE. There's A little less border on buttons in Firefox. These Are Only **3 browsers** and **5 kinds of tags** but there are more then 100 browsers available to the public. No one knows how many of them are not public. In fact 1000's of versions of these 100's of browsers are available. How to keep us with these browsers. The answer is **Reseter.css**. | Chrome | Internet Explorer | With Reseter.css | | :-----------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------: | |
|
|
|
Back To Top
## Quick Start
### Manual
> [Don't Want To The Manual Method Click Here](#codesandbox)
#### Step 1
Create A HTML File
```html
Testing Reseter.css
This Is The Biggest Heading
This Is A Slightly Smaller Heading
This Is A Slightly Smaller Heading
This Is A Slightly Smaller Heading
This Is A Slightly Smaller Heading
This Is The Smallest Heading
A Paragraph
A Link A Button- An List Item Of A Orderd List
- An List Item Of A Unordered List
Or
In your global css file ```css @import "path/to/reseter.min.css"; .element { /** Custom Styles **/ } ``` Then in your js file ```jsx import React from "react"; import ReactDOM from "react-dom"; import "./path/to/global.css"; import App from "./App"; ReactDOM.render( ); ``` Back To Top #### In A Single Page Using React Helmet ```jsx import React from "react"; import { Helmet } from "react-helmet"; export default function Page() { return (Login
This is the login page
); }
<a href="proxy.php?url=#resetercss">Back To Top</a>
<p align="center"><b>Or</b></p>
In Your Custom Stylesheet
```css
@import "path/to/reseter.min.css";
.element {
/**Custom Styles Here**/
}
In Your JS File
import React from "react";
import { Helmet } from "react-helmet";
export default function Page() {
return (
<div>
<Helmet>
<link rel="stylesheet" href="proxy.php?url=path/to/custom/style-sheet.css" />
</Helmet>
<h1>Login</h1>
<p>This is the login page</p>
</div>
);
}
Styled-Components
Globaly
// styles/index.js
import { createGlobalStyle } from "styled-components";
import resetercss from "reseter.css/src/styled-components/js/reseter.js";
/** We also have ts and mjs available
import resetercss from 'reseter.css/src/styled-components/ts/reseter.ts'
import resetercss from 'reseter.css/src/styled-components/js/reseter.mjs'
*/
export const GlobalStyle = createGlobalStyle`
${resetercss}
// You can continue writing global styles here
body {
padding: 0;
background-color: black;
}
`;
On A Specific Page
// index.js
import React from "react";
import ReactDOM from "react-dom";
import { GlobalStyle } from "./styles";
import { App } from "./app";
const Root = () => (
<React.Fragment>
<GlobalStyle />
<App />
</React.Fragment>
);
ReactDOM.render(<Root />, document.querySelector("#root"));
// index.js
import React from "react";
import ReactDOM from "react-dom";
import { Normalize } from "styled-normalize";
import { App } from "./app";
const Root = () => (
<React.Fragment>
<Normalize />
<App />
</React.Fragment>
);
ReactDOM.render(<Root />, document.querySelector("#root"));
Vue
In Your Vue File Add This Code
<style>
@import "path/to/reseter.min.css";
</style>
Or
<style scoped src="proxy.php?url=@/path/to/reseter.min.css"></style>
Or
import Vue from "vue";
require("@/path/to/reseter.min.css");
Next.js
Apply It Globaly
In _app.js inside your pages directory
import "path/to/reseter.min.css";
Or
In your global css file
@import "path/to/reseter.min.css";
.element {
/** Custom Styles **/
}
Then In Your _app.js
import "path/to/global-styles.css";
export default function App({ Component, pageProps }) {
return <Component {...pageProps} />;
}
Apply It To A Specific Page
import * from "react";
import Head from "next/head";
export default function Page(){
return(
<div>
<Head>
<link rel="stylesheet" href="proxy.php?url=path/to/reseter.min.css">
<link rel="stylesheet" href="proxy.php?url=path/to/custom/style-sheet.css" />
</Head>
</div>
)
}
Or
In your css file
@import "path/to/reseter.min.css";
.element {
/** Custom Styles **/
}
Then In Your _app.js
import * from "react";
import Head from "next/head";
export default function Page(){
return(
<div>
<Head>
<link rel="stylesheet" href="proxy.php?url=path/to/your-custom.css">
</Head>
</div>
)
}
Know/Want Any Other Usage Option/Platform
Please Add A Issue In Github With The Label Feature Request.
Get Support
This project has a code of conduct. By interacting with this repository, or community you agree to abide by its terms.
Hi! π Weβre excited that youβre using reseter.css and weβd love to help.
Support Us
Review
Spread
Sponsor
Roadmap
Comment Blocks In The Sources
Long Documentation
Guide
And Whatever You Put On The Github Issues WIth The Label Of Feature Request
Authors
| Krish |
| Github |
Contributors
Michael J. Ryan π» |
joejenett π π |
Vincent Will π |
phuoc-ng π§ |
Krish Dev DB π» |
Supporters
Stargazers
Forks
Thanks
Stars
License
MIT License
Copyright (c) 2021 Krish Dev DB
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Status
This project is currently being maintained. And Will Be Maintained. If You Like This Project And Want This Project To Never Exhaust. Please Consider Donating.
Log in or sign up for Devpost to join the conversation.