How to save a .css file from TextEdit or Word? I once read you could force the color of visited links in Safari by adding a:visited { color: #6611cc !important; } in the .css file under Preferences &lt; Advanced. In this way, it will turn every link you've clicked on purple and by so override the actual web design.

I like the idea but I tried to do so, but TextEdit or Word won't allow me to save the file. It wants to add .rtf, .webdesign or other extensions behind the .css.
How can I force to add this to the .css file?
First, use TextEdit, don't use Word.

Before you save your document, select Make Plain Text from the Format menu. (If the menu says Make Rich Text then you are already in plain text mode.)

If you save the document now, you should be able to give it whatever extension you want. Since the file is plain text, you can be sure that TextEdit won't add any additional formatting instructions that will turn it into an incorrectly-formatted CSS file.