Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are the categories in which the design patterns can be divided?

1138


What is the difference between 3 tier and n tier architecture?

1073


What are creational design patterns?

1086


What is the difference between factory and strategy design pattern?

1053


What is the difference between builder and composite?

1169


what is the lazy design pattern?

1057


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?

3136


What are the most important software design patterns?

1178


Why do we need singleton pattern?

1036


What is the factory pattern in the design pattern?

1174


Describe the builder design pattern

1135


Explain what is good design?

1086


Why is singleton bad?

1038


Is singleton a design pattern?

1011


when performing a functional test on a phone calculator,if pressing on a button does not function what do i do next

8069




taLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-2NC8ZH7G4C');