Exploring CSS Selectors
Assignment Tasks:
1. Ensure that the stylesheet below contains at least one implementation of each of the following
selector types:
a. Universal selector
b. Type selector
c. Class selector
...
Exploring CSS Selectors
Assignment Tasks:
1. Ensure that the stylesheet below contains at least one implementation of each of the following
selector types:
a. Universal selector
b. Type selector
c. Class selector
d. ID selector
e. Attribute selector
#top {
background-color: #33ff88;
margin-top: 15px;
padding-top: 10px;
border-color: grey;
border-width: 2px;
width : 1000px;
margin-right: auto;
margin-left: auto;
}
field {
margin-top:4px;
background-color: #8f8e6e;
}
legend {
color: #d46622;
background-color:#ccadbe;
border:1px solid #72072e;
padding: 3px;
font: bold;
}
table{
width: 80%;
margin: 4px;
padding: 4px;
}
td {
padding: 2px;}
.required {
color: #ffa600;
}
#data>p{
padding-left: 8px;
}
Engineering & TechnologyComputer Science CST 8285
Answer & Explanation
Solved by verified expert
Rated Helpful
1.
The following HTML code applies all the given selectors' types on the given sheet:
Code: