A collection of my solutions for CSS Battle challenges, along with a built-in CSS minifier tool.
CSS Battle is a competitive coding platform where you recreate visual targets using only HTML and CSS. The goal is to achieve the highest visual accuracy with the least amount of code.
- solutions: My CSS Battle challenge solutions (to be added)
- minifier/: Built-in CSS minifier tool for optimizing code length
The project includes a CSS minifier tool that helps optimize CSS code for CSS Battle submissions by:
- Removing unnecessary whitespace and newlines
- Removing closing tags (optional)
- Removing
pxunits from common properties - Removing unnecessary quotes from attributes
- Removing trailing semicolons before closing braces
- Removing trailing
)}characters
- Open
minifier/index.htmlin your browser - Paste your CSS code in the left textarea
- The minified version appears automatically on the right
- Use the "Copy" button to copy the minified code
- Toggle "Remove closing tags" as needed
- Clone this repository
- Open
minifier/index.htmlto use the CSS minifier - Add your CSS Battle solutions to the project