We'll go off on a slight tangent now.
Up till now, I've concentrated on how .css coding relates to the UI (the user interface, aka chrome, and is essentially all the bits you see in a browser that are not part of the web page). However, we can also use .css coding for other useful stuff. Look up user
Content.css in the Knowledge Base searchbox on the right to learn about that file. This is how we can alter what you see on the webpages themselves, again just using .css.
For example, I use weather.com (very accurate) for its 5 day forecast, but by default the site is a right old mess. With .css I can get rid of everything I don't need and just have the actual 5 day forecast. Miles better to use and the site loads much quicker.
To start you off into this userContent.css journey, try this -
Code: Select all
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("youtube.com"),domain("last.fm"){
* {background-color: #001011 !important;
color: #CDAE03 !important;}
a, li > a.title, li > a > span.title {color: #CDAE03 !important;}
#masthead-search-terms {background: #CDAE03 !important;}
h1, h2, h3, h4, h5, h6 {color: #cccccc !important;}
#watch-player {border: 1px #cccccc solid !important;}
strong {color: #eeeeee !important;}
#watch-headline, #watch-video {width:98% !important;}
p, button,.yt-uix-button {
color: #dddddd !important;
background : #001011 !important;}
.yt-uix-expander-head {color: #FFFFFF !important;}}
...and then look at the Youtoob vids. See the difference?
Right click this page and select 'View Source'. See all that gibberish written there? Yep, most of the code used in webpages is .css coding. Begin to see how useful knowing about .css can be?
Why do I concentrate on userChrome.css and userContent.css fixes and not the Sytlish extension? Simple, most people just look at the styles, click 'Install' and never see the code that underpins what we're doing, never understand what they're doing and never learn a damn thing about what they're doing.
Does that matter? Well, not if you want to be totally dependent on guys like me forever. But, I reckon that at least a good few of you would like to learn how to do things for yourselves, if only someone pointed you in the right direction and that's really what this thread is about.
It's not actually about computer stuff at all, it's about self sufficiency and that's always been a big thing with me going right back to when I built my first camp in the woods when I was a kid. People should know how to do things for themselves, well, I reckon so anyway.
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)
.