[AllCSS.info]
Where all the information on CSS can be foundWhat is CSS?
CSS stands for Cascading Style Sheets. It defines how to display HTML elements with the help of external style sheets. With the implementation of CSS design, webmasters will have an easier time updating their web presentation.
Where do I place the styles?
Using external style sheet, you can put the following tags between the HTML HEAD tags so as to refer to the css file. It is adivsable to avoid embedded and inline styling so as to keep the site maintenance level low.
<link href="stylesheetname.css" rel="stylesheet" type="text/css">
How can I remove border from all linked images?
Put the following codes into the CSS style sheet.
a img{border:0}
How can I get rid of the default margin around the page?
Put the following codes on top of the CSS style sheet.
html{margin:0;padding:0}
How can I remove the underline from all links?
Put the following codes into the CSS style sheet.
a {text-decoration:none}
How do I highlight a link on rollover?
Put the following codes into the CSS style sheet.
a:hover {background:blue;color:yellow}
What is the different between id and classes?
Classes are supposed to be used more commonly on a page while id can only appear once. The browser will render a page correctly even though it contains lot of similar ids but it simply will not validate when its send for W3C validation.