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
Prev Previous commit
Update css-quiz.md
  • Loading branch information
Ebazhanov authored Aug 2, 2021
commit 7fb687439d08a593b38b2afdfe17e582eed43611
10 changes: 5 additions & 5 deletions css/css-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -1130,9 +1130,9 @@ D. border-top-radius: 10px;
- [ ] `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 all the input elements with type attribte as "text" and not having "disabled" attribute.`
##### [reference-link-attribute-selector](https://www.w3schools.com/css/css_attribute_selectors.asp)
##### [reference-link-:not()](https://developer.mozilla.org/en-US/docs/Web/CSS/:not)
**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 all the input elements with type attribte as "text" and not having "disabled" attribute.`
[Reference link attribute-selector](https://www.w3schools.com/css/css_attribute_selectors.asp)
[Reference link-:not()](https://developer.mozilla.org/en-US/docs/Web/CSS/:not)

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

Expand All @@ -1141,8 +1141,8 @@ D. border-top-radius: 10px;
- [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-rgba](https://www.w3schools.com/cssref/func_rgba.asp)
**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-rgba](https://www.w3schools.com/cssref/func_rgba.asp)

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

Expand Down