css

Interview Questions and Answers

CSS

Question:
Why does my content shift to the left on some pages in FF?
Answer:

That all be the pages with more content? The ones that have a vertical scrollbar? If you look in IE theres probably a white space on the right where there would be a scrollbar if there were enough content to require one. In Firefox, the scrollbar appears when its needed and the viewport becomes about 20px smaller, so the content seems to shift to the left when you move from a page with little content to one with lots of content. Its not a bug or something that needs to be fixed, but it does confuse and irritate some developers.
If, for some reason, you did like Firefox to always have scrollbars whether they are needed or not you can do this :CSS html { height:100.1%; }

--- >>>

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