CSS style sheets have often been lauded for the richness of the styles they allow to apply, their lightness and their flexibility, and all these points contribute to their late but growing deployment as a stylization method for the content by Web pages authors.
One use of these style sheets is less known though : indeed, some browsers such as Mozilla and derivate, Opera or Konqueror, allow to the user to apply user-defined style sheets ; these style sheets thus empowers the user of a Web site to adapt its presentation to her taste and needs.
The needs addressed by these style sheets are often bound to accessibility : larger fonts, strong color contrast, aural stylsheet, etc. But besides these, they allow to make one's life easier easily. Here are a few examples of style sheets that I use:
iframe, embed[type="application/x-shockwave-flash"][width=750] {
display: none !important;
visibility: hidden !important;
}
*[width=468] {
display: none !important;
visibility: hidden !important;
}
embed[type="application/x-shockwave-flash"][height=800], embed[type="application/x-shockwave-flash"][height=728] {
display: none !important;
visibility: hidden !important;
}
@media print {
font-size:10pt;
}
body, html, * {
color:black ! important;
font-family:sans-serif;
}
html {
background:#eef;
}
body {
padding:2em;
background:white ! important;
max-width:40em;
line-height:1.1em;
margin-left:auto;
margin-right:auto;
}
b, strong {
background-color:#eef;
font-weight:normal;
}
a:link {
color:blue ! important;
}
a:active {
color:red ! important;
}
a:visited {
color:navy blue ! important;
}
body * { visibility:hidden;font-size:0}
:visited { visibility:visible; font-size:16pt}
Hence, with very little work, I can dapt the Web to my comfort of reading and surfing.