What’s the difference between ‘class’ and ‘id’?
As a person, you may have an ID card - a passport, a driving license or whatever - which identifies you as a unique individual. It’s the same with CSS. If... Read more »
As a person, you may have an ID card - a passport, a driving license or whatever - which identifies you as a unique individual. It’s the same with CSS. If... Read more »
Partial URLs are relative to the source of the style sheet. The style sheet source can either be linked or embedded. To which source partial URLs are relative to... Read more »
Double or single quotes in URLs are optional. The tree following examples are equally valid: BODY {background: url(pics/wave.png) blue} BODY {background: url(”pics/wave.png”)... Read more »
You can apply styles to Horizontal Rules in IE without problems, but NN4.xx can only render the silvery HR. But there is a way around it: .rule {border-top-width:... Read more »
A style sheet that is imported into another one has a lower ranking in the cascading order: the importing style sheet overrides the imported one. Programmers may... Read more »
The answer to this one is tricky. The short answer is: “it depends.” The long answer is, however, another story. If you are planning on using more than... Read more »
Generally no. However, values containing white spaces, e.g. font-family names should be quoted as whitespaces surrounding the font name are ignored and whitespaces... Read more »
The quotes. This is actually a list with a single item containing the well-known ‘Verdana, Arial, Helvetica’ font family. It is probably intended to... Read more »
HTML documents are structured hierarchically. There is an ancestor, the top level element, the HTML element, from which all other elements (children) are descended.... Read more »
IE can be targetted by preceding your properties with ‘* html’. For example… #nav { position:fixed; } * html #nav { /* this will target IE */ position:absolute; } Another... Read more »
Try the following: .tblboda { border-width: 1px; border-style: solid; border-color: #CCCCCC; } /*color, thickness and style can be altered*/ You... Read more »
Yes. If more than one declaration is attached to a selector they must appear in a semi colon separated list, e.g.; Selector {declaration1; declaration2} P {background:... Read more »
Need a div which makes space at the bottom of the main page (inside the #wrap div). Then, the footer (being inside #wrap) can be placed in that space by using absolute... Read more »
Forms and form elements like SELECT, INPUT etc. can be styled with CSS - partially. Checkboxes and Radiobuttons do not yet accept styles, and Netscape 4.xx has certain... Read more »
Margin, Border and Padding are difficult to apply to inline elements. Officially, the tag is a block level element because it can contain other block level elements... Read more »