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
Why should we not use singleton pattern?
Is dependency injection a design pattern?
Can we inherit singleton class?
Why have we used synchronized here?
Is bean a singleton?
What is the difference between builder and composite?
What are the disadvantages of singleton pattern?
Why is singleton used?
What is the concurrency design pattern?
What is the difference between factory and builder design pattern?
Write the code for a singleton class?
What is onion architecture?
Can you explain singleton pattern?
What is a behavioral design pattern?
What are useful tools for developing and testing color schemes for web sites?