How to add CSS styles Styles to Elements with Particular
Attributes?

Answer Posted / swapna

The style rule below will match all input elements that has
a type attribute with a value of "text"
Input[type="text"] {background-color: blue}

id Selector

Defining styles for HTML elements with the id selector. The
id selector is defined as a #.
The style defined below will effect the element that has an
id attribute with a value of "green? ie., id=?green?
Ex: #green {color: green}
The style rule below will match the p element that has an
id with a value of "para1? ie., <p id=?para1?>
p#para1
{
text-align: center;
color: red
}
Do NOT start a class name or ID name with a number


Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give me example of observer design pattern?

621


What is the behavioral design pattern?

655


What is onion architecture?

631


Can you explain singleton pattern?

562


What is clean architecture?

567






What is a behavioral design pattern?

617


Is singleton scope thread safe?

616


Explain three types of components comprise an application design?

577


How do you choose a design pattern?

554


Is singleton a design pattern?

591


Explain what is good design?

615


What are the types of participants of the prototype design pattern you will get?

579


What design pattern wrapper classes implement?

603


Contact a small, medium, and a large contract program within your organization. Interview the Technical Director or Project Engineer to identify the following information: a. Request the individual to graphically depict their development strategy? b. What factors drove them to choose the implementation strategy? c. What were some of the lessons learned from developing and implementing the strategy that would influence their approach next time? d. How was the V & V strategy implemented?

2381


How did you design your unit tests?What about integration tests?

1794