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

Why should we not use singleton pattern?

1084


Is dependency injection a design pattern?

996


Can we inherit singleton class?

1103


Why have we used synchronized here?

1022


Is bean a singleton?

983


What is the difference between builder and composite?

1150


What are the disadvantages of singleton pattern?

1121


Why is singleton used?

1087


What is the concurrency design pattern?

1149


What is the difference between factory and builder design pattern?

976


Write the code for a singleton class?

1049


What is onion architecture?

1105


Can you explain singleton pattern?

1035


What is a behavioral design pattern?

1039


What are useful tools for developing and testing color schemes for web sites?

2481