Skip to main content

CSS(cont.)

Type Selectors
·       Universal Selector
CSS has a special selector (*) which means it matches every   element in the document. This selector is useful in when name of elements are unknown while developing the style sheet.
For example:-
* {color: green; }

·       Descendent selector
This selector is also known as contextual selector. In style                   sheet it is applied to a particular element only when it lies inside a particular element. It provides a better way to apply style to very particular elements. This selector is consisting of one or more selector separated by white spaces.
·       Child selector
This is similar to the descendent selector. It selects the element which is just immediate children of the specific element. It is denoted by the >.
It can be writing as follow:-
Ø Body > * - it select all the children of the <body>element
Ø  Body > * > * - it select all the grandchildren of the <body>element
Ø  Body > * > p - it select all <p> grandchildren of the <body>element
For example
Ol { list-style-type: decimal; }
Ol > Ol { list-style-type: upper roman; }
Ol > Ol > Ol { list-style-type: lower-roman; }
·        Attribute selector
This selector is way of selecting elements depending on the presence of an attribute or attributes values.
·        Class selector
Class selector provide A easier way of apply the elements to the element. it find the element with the specific class.
For example:-
.left
{ text-align:left;
color:blue;
}
·       ID selector
The id attribute is a unique in the document. It means are no two id attribute having the same value. To find an element with a specific id, id selector is defined by a hash character, followed by the id of the element.
The style rule below will be applied as follow with id="p1":
#P1{color:blue;
Text-align:left;
}

Comments

Popular posts from this blog

Advantages and Disadvantages of EIS Advantages of EIS Easy for upper-level executives to use, extensive computer experience is not required in operations Provides timely delivery of company summary information Information that is provided is better understood Filters data for management Improves to tracking information Offers efficiency to decision makers Disadvantages of EIS System dependent Limited functionality, by design Information overload for some managers Benefits hard to quantify High implementation costs System may become slow, large, and hard to manage Need good internal processes for data management May lead to less reliable and less secure data

Inter-Organizational Value Chain

The value chain of   a company is part of over all value chain. The over all competitive advantage of an organization is not just dependent on the quality and efficiency of the company and quality of products but also upon the that of its suppliers and wholesalers and retailers it may use. The analysis of overall supply chain is called the value system. Different parts of the value chain 1.  Supplier     2.  Firm       3.   Channel 4 .   Buyer

Big-M Method and Two-Phase Method

Big-M Method The Big-M method of handling instances with artificial  variables is the “commonsense approach”. Essentially, the notion is to make the artificial variables, through their coefficients in the objective function, so costly or unprofitable that any feasible solution to the real problem would be preferred, unless the original instance possessed no feasible solutions at all. But this means that we need to assign, in the objective function, coefficients to the artificial variables that are either very small (maximization problem) or very large (minimization problem); whatever this value,let us call it Big M . In fact, this notion is an old trick in optimization in general; we  simply associate a penalty value with variables that we do not want to be part of an ultimate solution(unless such an outcome is unavoidable). Indeed, the penalty is so costly that unless any of the  respective variables' inclusion is warranted algorithmically, such variables will ...