cExams.net

Interview Questions and Answers

CSS

Question:
How do I center block-elements with CSS1?
Answer:

There are two ways of centering block level elements:
1. By setting the properties margin-left and margin-right to auto and width to some explicit value:
BODY {width: 30em; background: cyan;}
P {width: 22em; margin-left: auto; margin-right: auto}
In this case, the left and right margins will each be four ems wide, since they equally split up the eight ems left over from (30em

--- >>>

CSS - Questions
1. How to customize your text boxes.
Answer
2. How can I specify two different sets of link colors?
Answer
3. What is two auto margins?
Answer
4. How do I make my div 100% height?
Answer
5. What is parent child selector?
Answer
6. What is CSS3?
Answer
7. How to use CSS to separate content and design ?
Answer
8. What are the various style sheets?
Answer
9. How do I have a background image that isnt tiled?
Answer
10. Explain in brief about the term CSS.
Answer
11. What is cascade?
Answer
12. Why call the subtended angle a pixel, instead of something else ?
Answer
13. What is the use @keyframes in CSS3?
Answer
14. How do I have a fixed non scrolling background image?
Answer
15. How do I place text over an image?
Answer
16. Why is it my hover declaration for links does not work ?
Answer
17. Why does Netscape lose my styles ?
Answer
18. Explain inline, embedded and external style sheets.
Answer
19. How do you override the underlining of hyperlinks?
Answer
20. When is auto different from 0 in margin properties?
Answer
21. What are pseudo elements?
Answer
22. How do I eliminate the blue border around linked images?
Answer
23. Why use Style Sheets?
Answer
24. What is property?
Answer
25. List various font attributes used in style sheet.
Answer
26. What is attribute selector?
Answer
27. What is one auto margin?
Answer
28. Describe about float element.
Answer
29. Why do style sheets exist?
Answer
30. Which font names are available on all platforms ?
Answer
31. What are style sheet properties?
Answer
32. Why does my content shift to the left on some pages in FF?
Answer
33. 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
34. Tell about hover element in CSS3.
Answer
35. Describe pseudo classes in CSS.
Answer
36. What are Style Sheets?
Answer
37. What is latest version, CSS4 or CSS3?
Answer
38. Can CSS be used with other than HTML documents?
Answer
39. What is grouping?
Answer
40. How do I move the list bullet to the left and right?
Answer
41. How can I specify background images?
Answer
42. Write different ways of styles applied in HTML file?
Answer
43. How do I write my style sheet so that it gracefully cascades with users personal sheet ?
Answer
44. what is Fixed Background?
Answer
45. Which set of definitions, HTML attributes or CSS properties, take precedence?
Answer
46. What are Cascading Style Sheets?
Answer
47. How do I center block-elements with CSS1?
Answer
48. What is CSS rule ruleset?
Answer
49. What is important declaration?
Answer
50. What are inline, block, parent, children, replaced and floating elements?
Answer
  • Benefits of Kiwi Fruits
  • Tips to succeed in an Interview
  • Bodyweight Exercises
  • Tips to get ready for Party
  • Benefits of Apricots
  • Step to finding your perfect man

  • Management Tips

    Set higher goals

    There is a saying ?Aim for the moon, even if you miss you will be among stars?, set tough goals for the team but remember don't make it impossible. Another key point is to set goal as per the individual's potential, this is a gradual process and the bar has to be raised every time you get to your set goal.


    Chourishi Systems