KyaPoocha.com

Huge Collection of Interview Questions


‘CSS Interview Questions’ - KyaPoocha.com

Colored Horizontal Rule? 

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 »

Why can @import be at the top only? 

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 »

Which style specification method should be used? Why? 

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 »

Must I quote property values? 

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 »

What is wrong with font-family: “Verdana, Arial, Helvetica”? 

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 »

How does inheritance work? 

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 »

How do you target a certain browser? 

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 »

Border around a table? 

Try the following: .tblboda { border-width: 1px; border-style: solid; border-color: #CCCCCC; } /*color, thickness and style can be altered*/ You... Read more »

Can I attach more than one declaration to a selector? 

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 »

How do I get my footer to sit at the bottom…? 

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 »

How To Style Forms? 

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 »

How To Style Table Cells? 

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 »

What is initial value? 

Initial value is a default value of the property, that is the value given to the root element of the document tree. All properties have an initial value. If no specific... Read more »

What is value? 

Value is a ‘physical’ characteristic of the property. Property declares what should be formatted, e.g. FONT while value suggests how the property should... Read more »

How to use CSS building a standards based HTML template? 

It should: 1. Contain: header, navigation, content, footer 2. Use well-structured HTML 3. Be error-free and encourage good coding Let’s start with number one... Read more »

Page 3 of 10«12345»...Last »