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
What is use case in clean architecture?
What are the types of design patterns?
Explain what is good design?
Is oop a design pattern?
What is the prototype design pattern?
what are the creational design patterns
What is the gang of four design pattern?
Why do we need singleton pattern?
What design pattern wrapper classes implement?
Hi, I have 9backlogs in btech and i am 2008 passed out,am working with an MNC from past 3 years.now, am willing to do MS, will it be any problem for me?
What is mvp design pattern?
Explain what are 5 common problems in the software development process?
What are the main usage of the patterns?
When should design patterns be used?
Is singleton scope thread safe?