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



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

Answer / 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

More Design Patterns Interview Questions

Why is singleton bad?

0 Answers  


What is aop design?

0 Answers  


What are the 23 design patterns?

0 Answers  


What is the behavioral design pattern?

0 Answers  


What is 'good design'?

2 Answers  


What are cascaded style sheets?

1 Answers  


What is the use of repository pattern?

0 Answers  


what is diffrence between Function Oriented Design and Obeject Oriented design

11 Answers   IBS, TCS,


What three types of components comprise an application design?

1 Answers  


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?

0 Answers  


2. Create your own de&#64257;nition of a system. Based on the “system” de&#64257;nitions a. Identify your viewpoint of shortcomings in the de&#64257;nitions. b. Provide rationale as to why you believe that your de&#64257;nition overcomes those shortcomings. c. From an historical perspective, identify three precedented systems that were replaced by unprecedented systems.

0 Answers   IBM,


What is synchronizer token pattern?

0 Answers  


Categories