css

Interview Questions and Answers

CSS

Question:
what is Fixed Background?
Answer:

There is the possibility to use the HTML tag bgproperties=fixed, but that is IE proprietary, and dependent upon the background attribute (deprecated in HTML4).
With CSS, you can declare the background like:
BODY { font-family : Trebuchet MS, Verdana, Arial, Helvetica, sans-serif; background-image: url(images/yourimage.gif); background-repeat: no-repeat; /*no-tiling background*/ background-position: center; background-attachment: fixed; background-color: #hexcolor; color : #hexcolor; margin: 10px; }
that shows a background-image in the center of the element, non-scrolling and non-repeating in IE or NN6. NN 4.xx gets the non-repeat-part right, but stuffs the picture in the upper left corner and scrolls

--- >>>

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