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

FEATURE

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
  39.72%
Yes, but in a few years
  37.59%
No
  22.70%
Out of 141 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.”


PROFILES & BIOS

WIA Profile: Samantha Brown

Each month, industry news media organization XBIZ spotlights the career accomplishments and outstanding contributions of Women in Adult. WIA profiles offer an intimate look at the professional lives of... More »

Xgen Products Celebrates 7-Year Anniversary

In August, Xgen Products celebrated its seventh anniversary with a special promotion. The winner of Xgen’s Lucky 7 raffle, Xgen announced in late July, would win a three-day, two-night trip for two... More »

WIA Profile: Kristi Greer

Each month, industry news media organization XBIZ spotlights the career accomplishments and outstanding contributions of Women in Adult. WIA profiles offer an intimate look at the professional lives of... More »
XBIZ NEWSLETTERS
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.






POPULAR PRODUCTS & SERVICES
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.
Access the latest issues of the industry's leading trade publications in digital form. View online or download for offline viewing.

UPCOMING EVENTS

eroFame

Oct 05 - Oct 07
Hannover, Germany

EXXXOTICA Edison

Nov 04 - Nov 06
Edison, New Jersey

2016 Inked Awards

Nov 05 - Nov 05
Edison, New Jersey

XBIZ 2017

Jan 09 - Jan 13
Hollywood, CA
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!