CSS Preparation is a comprehensive category dedicated to assisting aspirants preparing for the Central Superior Services (CSS) exam in Pakistan . This category covers a wide range of subjects crucial for success in the CSS exam , including but not limited to Pakistan Affairs, Islamic Studies, General Knowledge, English and various optional subjects . The resources within this category are likely to include practice questions, mock tests, syllabus breakdowns and study materials that are tailored specifically to the CSS exam format and requirements .
Which CSS property is used to control the text’s alignment.
ReportQuestion
Anonymous
A. text-justifyB. text-alignC. align-textD. align-content
View Answer
Please briefly explain why you feel this question should be reported.
Report
Cancel
What is the purpose of the CSS `float` property? |.
ReportQuestion
A. Positions an element absolutelyB. Positions an element relative to its containerC. Floats an element to the left or rightD. Positions an element as ...
Please briefly explain why you feel this question should be reported.
Report
Cancel
How does CSS inheritance work? | inherit style & elements.
ReportQuestion
A. All properties are inheritableB. Only color and font properties are inheritableC. Certain properties are inherited from parentsD. There is no such concept as ...
Please briefly explain why you feel this question should be reported.
Report
Cancel
What is the difference between `em` and `rem` units in.
ReportQuestion
A. Both are relative to the root elementB. Both are relative to the parent elementC. `em` is relative to the parent; `rem` is relative to the root
Please briefly explain why you feel this question should be reported.
Report
Cancel
Explain the CSS `position` property and its values. | positioning.
ReportQuestion
A. static, relative, absoluteB. static, relative, absolute, fixedC. static, relative, absolute, fixed, stickyD. static, relative, absolute, fixed, inline
Please briefly explain why you feel this question should be reported.
Report
Cancel
How do you create a responsive image using CSS? |.
ReportQuestion
A. Setting a fixed width and heightB. Using JavaScript to resize imagesC. Setting `max-width: 100%;` and `height: auto;`D. Using background-image property
Please briefly explain why you feel this question should be reported.
Report
Cancel
What is a CSS pseudo-class and give an example? |.
ReportQuestion
A. A type of CSS selectorB. A type of CSS propertyC. A special state of an elementD. A type of CSS unit
Please briefly explain why you feel this question should be reported.
Report
Cancel
What is the purpose of the `z-index` property in CSS?
ReportQuestion
A. Controls element widthB. Controls element heightC. Controls element colorD. Controls element stacking order
Please briefly explain why you feel this question should be reported.
Report
Cancel
What CSS property is used to control the space outside.
ReportQuestion
A. paddingB. borderC. marginD. width
View Answer
Please briefly explain why you feel this question should be reported.
Report
Cancel
How can you center an element both horizontally and vertically.
ReportQuestion
A. Using only text-align: center;B. Using only margin: auto;C. Using flexbox or grid layoutD. Using only padding: auto;
Please briefly explain why you feel this question should be reported.
Report
Cancel