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

What is the difference between factory and builder design pattern?

0 Answers  


What is the difference between proxy and adapter?

0 Answers  


Give me example of observer design pattern?

0 Answers  


Can any one suggest me the best institute for Software Design , Design Patterns and architecture in Hyderabad please. Thanks in Advance.

2 Answers   IBM, KPIT,


What is a behavioral design pattern?

0 Answers  






What are creational design patterns?

0 Answers  


Using any system, product, or service your organization provides, identify the human system roles for the product.

0 Answers  


What are cascaded style sheets?

1 Answers  


Can we use an equated value as operands for an MVC ? Reason for the same.

0 Answers   Ness Technologies,


what is the lazy design pattern?

0 Answers  


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 in&#64258;uence their approach next time? d. How was the V & V strategy implemented?

0 Answers  


write 5 best test cases like any password?password should be mixed case with atlest one number or special characters?

2 Answers   Wipro,


Categories