This is a legacy document, and retained on the site in order to avoid link rot. The content is likely no longer (a) accurate, (b) representative of the views and philosophies of current site management, or (c) up to date.
- Q: Which takes precedence: CSS suggestions or HTML markup?
A This FAQ has been answered by David Baron in ciwas several times, and his answer is now appended to the Not-a-faq.
- Q: What browsers support CSS?
A: Amaya, Emacs-w3, Internet Explorer 3x+, Netscape Navigator 4x+, and Opera 3.5+
- Q: How to suppress hypertext underlines?
A: See explanation
- Q: How to have more than one color in hypertext underlines?
A: See explanation
- Q: How do I link my CSS to HTML?
- Q: When should I use quotes in CSS?
A: Required in a font-family declaration, when the font name includes whitespace, and optional in URLs referenced by style sheets.
- Q: How can I center a table?
A: Wrap in a <DIV> with text-align: center [example]
- Q: When to use <DIV> and <SPAN>?
- Q: What is the difference between ID and CLASS?
A: The CLASS property is useful for declaring site-wide or document-wide characteristics which are identical. A single class may be applied to many different elements.ID should be unique to a single declaration and has the most specificity for inheritance purposes.
- Q: Why are my styles lost in Netscape on resize?
A: An egregious bug. For the "fix" see Resize .
- Q: Why doesn't CSS work on FORM elements?
A: So that you'd have a challenge ;-) If all else fails, wrap the entire form in a <DIV>…</DIV> which is styled with the rules you want applied. [example]
- Q: How can I add colour to my <HR>?
A: See example .
- Q: I use Netscape. How can I retrieve a stylesheet from a site I visited?
A: You can pull the stylesheet out of your cache. In the directory where your copy of Netscape resides, you should have a folder 'Users'; in that folder should be another folder with your screen name; in that folder should be another folder "cache". You could create a shortcut to this folder on your desktop, or simply open the cache and look at the files there. You might want to select 'View -> details' so that CSS files are easily identified with 'Hyper Text Style Sheet' shown as the description. Be sure to associate the file type 'css' with either the editor you normally use or with any text editor (e.g. Notepad, Wordpad). Then, you may save the CSS to your hard disk. Modify at will. *Please* don't link to the stylesheet resident on someone else's server. Doing so may actually cost them money, depending on how their IP charges, and is considered _rude_ as well. If you plan to use a stylesheet created by someone else, you might like to ask permission first. Oh…and don't forget to apply for a license from Microsoft, which holds the patent :-(