Posts

Showing posts from April, 2013

Including CSS in A document

CSS can be included in a document four ways - 1.  Embedded a style sheet : directly put the style sheet between <head> and </head> tags.     <head>          <style type=”text/css”>              body{                       font: 10px sans-serif;              }         </style>     </head> 2. Include a CSS in a document and link it to the HTML document.       <link rel=“stylesheet” type=“text/css” href=“example1.css”> Here rel is relationship between the including and included documented, the included documented is stylesheet here.   type refers to the MIME type of the i...

CSS Building Blocks

A style sheet is a text file that contains one or more rules that determine, through property and value , how certain elements in your web page would be displayed. CSS can be created outside of a web page and can be applied to all the pages of a web site at once. A style sheet has following constructs - Style sheet Rule Selector Declaration Property Value Curly braces, Colons, and Semi-colons are used to mark the beginning and ending of each part, separating them from each other. The following rule shows the parts of a style sheet and the special characters that separate them. SELECTOR –> body { <- Declaration Block Start width: 400px; <- Declaration PROPERTY -> color: #FFF; <- VALUE } <- Declaration Block End Things to remember :- In CSS, A style rule has two main parts – the selector and the declaration block. In CSS, a selector is the HTML element or elements to which a CSS rule is applied In CSS, Comments can be pu...

CSS and XML

XML concentrates more on the content of the data and CSS on presentation. The technology of Extended Style sheet ( XSL) can format the content of an xml document in multiple ways, for example contents of an xml document can be sorted on the order of a particular element; An xml document can be transformed into an sql file which can be executed against a database and so on. One of the main tasks that the XSL performs is to transform an XML document into an HTML document. this way an XML document can be displayed in a browser in similar manner as an HTML document.Once we apply an XSL style sheet to an XML document it transforms it into an HTML document. Now a CSS style sheet can be applied on the generated HTML document to generate the required formatted output. Please note that CSS and XSL both are style sheet technologies, but their usage is different. XSL works with XML and CSS works with HTML. also, If an XML document is not being transformed into an HTML document , for example it ...

Cascaded Style Sheets

  Cascading Style Sheets (CSS) is a language designed for describing the appearance of documents written in a markup language such as HTML. With CSS we can control the color of text, the style of fonts, the spacing between paragraphs, how columns are sized and laid out, what background images or colors are used, and a variety of other visual effects. One of the major benefits is that the same CSS can be used by more than one page, meaning that the style of an entire website can be adjusted without having to change each page individually. Advantages of Using CSS The presentation of an entire web site can be centralized to one or a handful of documents. CSS can be written independently of HTML. CSS separates a document's structure from its appearance. If a browser supports multiple alternative style sheets than more than one design of a web site can be presented at the same time. Style sheets allow content to be optimized for more than one type of device. Browser can cache t...

Concentration of Mind

  I think everybody knows the importance of concentration. Concentration of mind is a way of life. Every work that we do in our life should be done with highest concentration. Many great Indian Sages and western psychologists have suggested different ways to improve the concentration. I have tried to put them here as many as possible. Try to practice them in the privacy of your own room. Exercise 1. Sit still; relax your body all over and then neck, chest, and head held in a straight line; legs crossed one under the other and weight of the body resting easily upon the ribs; right hand on right leg, left hand on left leg. There should not be a single movement of the muscles in any part of the body. You must avoid all rigidness and tension of the body. There should not be the least strain on muscles. You should be able to "relax" completely. Start with 5 minutes. Continue till you can accomplish the 5 minutes sitting without any conscious effort, increase to 15 minutes which ...