css

Interview Questions and Answers

CSS

Question:
Why does Netscape lose my styles ?
Answer:

Netscape 4.x has poor support for CSS. Having said that, the following points should be noted.
Invalid HTML will almost certainly cause Netscape to ignore your CSS suggestions at some point. You will find that valid HTML is your best friend, but for Netscape to work properly you must ensure that all elements in your markup which permit closing tags are explicitly closed.
Check and correct your CSS suggestions for the very same reason, Netscape 4.x is in fact doing the right thing, as per CSS specs (as opposed to MSIE) when it ignores style rules with errors.
Netscape 4.x has whats called an inheritance problem into its TABLE element. It can be argued that NS is all within its right to behave as it does in this case, but since the workaround is quite simple its easy enough to just use it and be done with it.
Lets say you want your TABLE content to look the same as your BODY content? Redundant styling comes to your help as in e.g. BODY, TABLE, TH, TD { /* insert your styles here */ }
On a generic level, Netscape 4.x likes to have style rules applied directly to the elements where they are needed. You can never really trust the inheritance principle to work correctly at any level in Netscape 4.x.

--- >>>

CSS - Questions
1. Why was the decision made to make padding apply outside of the width of a box, rather than inside, which would seem to make more sense?
Answer
2. Document Style Semantics and Specification Language "DSSSL"?
Answer
3. What is selector?
Answer
4. What is CSS declaration?
Answer
5. What is cascade?
Answer
6. Are Style Sheets case sensitive?
Answer
7. What is latest version, CSS4 or CSS3?
Answer
8. What`s the difference between ID and class selector?
Answer
9. Describe pseudo classes in CSS.
Answer
10. What are the various style sheets?
Answer
11. What is parent child selector?
Answer
12. Why do style sheets exist?
Answer
13. How do I have a background image that isnt tiled?
Answer
14. What is CSS rule ruleset?
Answer
15. What is external Style Sheet? How to link?
Answer
16. How do I eliminate the blue border around linked images?
Answer
17. Why call the subtended angle a pixel, instead of something else ?
Answer
18. Can CSS be used with other than HTML documents?
Answer
19. Can Style Sheets and HTML stylistic elements be used in the same document?
Answer
20. What are pseudo classes?
Answer
21. Why is it my hover declaration for links does not work ?
Answer
22. Which font names are available on all platforms ?
Answer
23. How do you override the underlining of hyperlinks?
Answer
24. How does a simple CSS style rule look ?
Answer
25. What is two auto margins?
Answer
26. Describe about float element.
Answer
27. List various font attributes used in style sheet.
Answer
28. Explain inline, embedded and external style sheets.
Answer
29. What are Cascading Style Sheets?
Answer
30. How do I center block-elements with CSS1?
Answer
31. What are inline, block, parent, children, replaced and floating elements?
Answer
32. How do I have a fixed non scrolling background image?
Answer
33. How can I specify background images?
Answer
34. What is attribute selector?
Answer
35. How to customize your text boxes.
Answer
36. How do I place text over an image?
Answer
37. What is a Style Sheet?
Answer
38. What is embedded style? How to link?
Answer
39. what is Fixed Background?
Answer
40. What are Style Sheets?
Answer
41. Which set of definitions, HTML attributes or CSS properties, take precedence?
Answer
42. How to use CSS to separate content and design ?
Answer
43. What is Extensible Stylesheet Language "XSL"?
Answer
44. Why use Style Sheets?
Answer
45. What does the Cascading in Cascading Style Sheets mean?
Answer
46. What is property?
Answer
47. What is grouping?
Answer
48. How do you include comments in CSS?
Answer
49. How do I combine multiple sheets into one?
Answer
50. What is inline style? How to link?
Answer
General Knowledge Quiz
3001 Bizarre Facts
Dictionary
Elementary English Grammar Test
Standard English Grammar Test
Advanced English Grammar Test
Daily English Quiz
English Test
Grammar Examination
ESL / EFL Test
Grammar Test
Antonyms
Synonyms
Homonyms
Vocabulary Examination
Word Analogy
Vocabulary Flashcards
Idioms
Idioms Quiz
Quantitative Aptitude Test
iQ Quiz Game
Verbal Reasoning Quiz - Mind Game
English Question Answer
Vocabulary Game 1
Vocabulary Game 2
Scramble Word Game
Common Mistakes
Confusing Words
Basic English Usage
English Grammar
Prepositions
English Phrases
Learn English
Word Game
Interview Questions and Answers
Educational Quiz Games