css

Interview Questions and Answers

CSS

Question:
When is auto different from 0 in margin properties?
Answer:

In vertical margins, auto is always equal to 0. In horizontal margins, auto is only equal to 0 if the width property is also auto. Here are three examples, assume that there is athat is a child of:
Example 1: auto value on the width.BODY {width: 30em;} P {width: auto; margin-left: auto; margin-right: auto;}
Since the width property is auto, the auto values of the two margins will be ignored. The result is a P that is 30em wide, with no margins.

--- >>>

CSS - Questions
1. How do I have a fixed non scrolling background image?
Answer
2. Document Style Semantics and Specification Language "DSSSL"?
Answer
3. How do I eliminate the blue border around linked images?
Answer
4. How do I make my div 100% height?
Answer
5. What are the various style sheets?
Answer
6. What`s the difference between ID and class selector?
Answer
7. Which font names are available on all platforms ?
Answer
8. How do you include comments in CSS?
Answer
9. What is external Style Sheet? How to link?
Answer
10. What are pseudo elements?
Answer
11. What is CSS rule ruleset?
Answer
12. Why call the subtended angle a pixel, instead of something else ?
Answer
13. Describe ID selector?
Answer
14. What are style sheet properties?
Answer
15. what is Fixed Background?
Answer
16. 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
17. What is selector?
Answer
18. Describe pseudo classes in CSS.
Answer
19. Are you pro or against Flash?
Answer
20. What is a Style Sheet?
Answer
21. Why use Style Sheets?
Answer
22. What are pseudo classes?
Answer
23. How do I move the list bullet to the left and right?
Answer
24. What is CSS3?
Answer
25. What main useful features of CSS3?
Answer
26. Tell about hover element in CSS3.
Answer
27. What is inline style? How to link?
Answer
28. Why do style sheets exist?
Answer
29. How do I have a background image that isnt tiled?
Answer
30. Why does Netscape lose my styles ?
Answer
31. What is CSS rule at rule?
Answer
32. What is important declaration?
Answer
33. How do I center block-elements with CSS1?
Answer
34. What are inline, block, parent, children, replaced and floating elements?
Answer
35. Which set of definitions, HTML attributes or CSS properties, take precedence?
Answer
36. What is parent child selector?
Answer
37. How do I combine multiple sheets into one?
Answer
38. How can I specify two different sets of link colors?
Answer
39. Write different ways of styles applied in HTML file?
Answer
40. How can I specify background images?
Answer
41. What is attribute selector?
Answer
42. What is CLASS selector?
Answer
43. What is cascade?
Answer
44. What is latest version, CSS4 or CSS3?
Answer
45. What is grouping?
Answer
46. Can Style Sheets and HTML stylistic elements be used in the same document?
Answer
47. How do you override the underlining of hyperlinks?
Answer
48. What is one auto margin?
Answer
49. Describe about float element.
Answer
50. Explain in brief about the term CSS.
Answer