Home > Features > Web Depot: Sanitize Your CSS For Better Style • Bookmark   • Newsletters   • Register Search Options


Web Depot: Sanitize Your CSS For Better Style

Web Depot: Sanitize Your CSS For Better Style

June 29, 2015
Text size: 
View in Digital Mag
Get XBIZ News
XBIZ Research
Will virtual reality boost the paysite market?
Yes, it will soon
Yes, but in a few years
Out of 179 votes. Results based on votes submitted by members of XBIZ.net social network.

" CSS inheritance is assigned universally so that styles cascade naturally and consistently. "

According to its author, sanitize.css renders elements consistently across browsers by styling with today’s best practices. CSS inheritance is assigned universally so that styles cascade naturally and consistently, and wherever possible, allow the box model to operate more intuitively — with every normalization and opinionated default carefully documented.

Based upon reset.css and its ability to resolve frustrating inconsistencies between browsers by giving them all the same empty canvas, as well as normalize.css, which keeps styles to the bare minimum to keep every browser looking the same, and when in doubt, following the standard, Sanitize contains the baseline styles that many coders end up writing.

“I don’t need to hurt my brain calculating the combined values of padding and width. I don’t have to remember that having no border style eliminates the border width,” Sanitize’s author notes. “[Sanitize] gives me a way to fix the box model and the border [and] gives me a way to define the baseline that I need most of the time.”


Expanding Your Mastermind Group Should Be a Game Plan

After a decade of selling an automation software product for managing websites, it’s been interesting to follow the trends of our customers throughout the past year. At the end of every year, we... More »

‘Anything Interactive’ Will Be in Industry’s Future

With the new year upon us, many people focus on resolutions and 92 percent of those who make them don’t succeed in keeping them. Others look towards the future. Looking back to the early years of... More »

Focusing, Again, on Tradeshow Etiquette

I’m very excited to have been asked by XBIZ World to write the third part of my ongoing series of articles on tradeshow etiquette. In Part I of the series, I discussed business cards, substance... More »
Stay informed of the latest industry developments. Get XBIZ newsletters delivered to your inbox. Subscribe today!
Enter email address:

* To manage existing subscriptions click here.

Submit your press release to
multiple news outlets with 1 click.
Subscribe to RSS news feeds or
add free content to your website.
Access XBIZ news and articles
with your mobile device.
Subscribe to XBIZ Premiere magazine, the industry's leading adult retail trade publications, delivering the most timely and comprehensive business news and information to producers and retailers of adult products.


Everything To Do With Sex Show

Jan 27 - Jan 29
Halifax, Nova Scotia

The European Summit

Mar 04 - Mar 07
Barcelona-Sitges, Spain

The TEA Show

Mar 05 - Mar 06
Hollywood, CA

Phoenix Forum 2017

Mar 23 - Mar 26
Tempe, Arizona
Everyday thousands of business professionals browse XBIZ's industry directory for quality products and services. Not listed yet? Your company could be losing potential new business. Submit your company today!
Use XBIZ RSS feeds to stay informed of the latest industry developments or as a content syndication tool for your website!