Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css-added one question with answer and answered an unsolved question both with reference links and explanations. #2000

Merged
merged 5 commits into from
Aug 2, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
added 1 and answered 2 questions
posted one question with answer and answered one more question both with explanation.
  • Loading branch information
Pragyanshu-rai authored Jul 29, 2021
commit 83790b0c8706b3ba17b2545317cd4292731aa101
31 changes: 23 additions & 8 deletions css/css-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,29 @@ D. border-top-radius: 10px;
- [ ] dropbox-shadow
- [x] box-shadow

#### Q89. Which property is used to create a drop shadow effect on an HTML element?
#### Q89. What is the correct selector for targeting all text inputs that are not disabled?

- [x] `input[type="text"]:not([disabled]) {...}`
- [ ] `input[type="text"]:not("disabled") {...}`
- [ ] `input[type*="text"]:not([disabled="disabled"]) {...}`
- [ ] `input[type="text"]:not([type="disabled"]) {...}`

#### Explanation: `input[type="text"] selects all the input with type text, and :not([disabled]) selects all the elements not having the attribute "disabled".
Combining both only selects the input element with type attribte as "text" and not having "disabled" attribute.`
##### [reference-link-attribute-selector](https://www.w3schools.com/cssref/func_rgba.asp)
##### [reference-link-:not()](https://www.w3schools.com/cssref/func_rgba.asp)

#### Q90. How can you create a semi-transparent background color?

- [ ] background-color: hsl(0, 0, 0, 0.5);
- [ ] background-color: rgbx(0, 0, 0, 0.5);
- [x] background-color: rgba(0, 0, 0, 0.5);
- [ ] background-color: rgba(0, 0, 0, 1);

#### Explanation: `rgba is a funtion in css. rgba stands for red, green, blue and alpha. The value of alpha can be between 0 and 1 both inclusive with 0 being fully transparent and 1 being fully opaque.`
##### [reference-link](https://www.w3schools.com/cssref/func_rgba.asp)

#### Q91. Which property is used to create a drop shadow effect on an HTML element?

```css
grid-template-columns: 2fr 1ffr;
Expand All @@ -1133,10 +1155,3 @@ grid-template-columns: 2fr 1ffr;
- [ ] The first column is twice the width and height of the second column, and will fit proportionally within the grid container.
- [ ] The first column is twice as wide as the second column and will fit proportionally within the grid container.
- [ ] The first column is twice the height of the second column and will be as wide as the content.

#### Q90. How can you create a semi-transparent background color?

- [ ] background-color: hsl(0, 0, 0, 0.5);
- [ ] background-color: rgbx(0, 0, 0, 0.5);
- [ ] background-color: rgba(0, 0, 0, 0.5);
- [ ] background-color: rgba(0, 0, 0, 1);