Cascading Style Sheet.
z-index:10000; #brings element on top of others(having z-index less that 10000)
# defining style for class(i.e class="<CLASSNAME>" used in any HTML tag).
.<CLASSNAME>{ border:silver thin solid; /*Creates thin silver-colored border around element with attribute class = "<CLASSNAME>" */ background-color:dimgray; /*Sets background color to element*/ margin:0.5%; /*Sets outer gaps between element*/ padding-left:2%; /*Sets gap between border and content of element*/ color: silver; /*Sets font color of text content in element*/ font-size: 2.5vh; /*Sets responsive size to text (responsive to viewport )*/}#Change view on mouse over. (Hover)
.<CLASSNAME>:hover{ background-color:gray; cursor: move; /*Changes cursor to hand symbol, indicating the hovered element is clickable or draggable.*/}#Hide lengthy text using ellipsis and show on hover. Assumed we have lengthy text in <td>.
td{ max-width: 120px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;}td:hover{ overflow: visible; white-space: normal; height:auto;}#Define style for child elements of element bound to any class. assume table with class name mytblcss.
.mytblcss > thead > tr,.mytblcss > tbody > tr { color:gray;}#How to set vertical-align for elements within DIV tag.
<div style="height:25px; line-height:25px; vertical-align:middle"></div><!--Note height and line-height needs to be given same value as div can be multi-lined hence element in first line seems up not in center.-->#Functions in css:
calc
<div style="width:80%; height:calc(100% - 22px); position:absolute; left:10%; top:20; border:silver thin solid; border-radius:3px; moz-border-radius:3px;"><div>