Faltu Funda| 30 Mar 2008 | |||||
|---|---|---|---|---|---|
|
practice interviews and prepare for interviews in todays changing world every one want to increase there salaries very quickly. Changes your employer is an very efficient solution for this. But changing employer and company is not so easy. cont.. |
||||
| 06 Feb 2008 | |||||||
|---|---|---|---|---|---|---|---|
|
Understanding Cascading Style sheets and Basics of CSS Hey friends, it's for beginners only and describes basics of style sheets ! You must be knowing that Style sheet is used to display content on html page in good format. It is is also used to give good navigation on html page, in combination with javascript. So, together javascript and css provides good look and feels and easy navigation to the user. To know CSS is must for any web designer and web programmer. CSS can make lot of difference in rendering/placing html elements on page. A wrong CSS can make garbage out of an html page. Let's now read basic properties of CSS for any html elements. PADDING : it is to give space around the elements. This property behaved differently in different browsers mainly in IE and MOZILLA. So, if you placed border around a container element and put text in this box then, padding will add space around text and before border. Syntax for padding is style="padding:10px;" // for inline styles element{ padding:10px; } // for writing in external css file now in this example a 10pixel padding will be added around text. you can write it in different ways like 10px, 10pt,2% etc.. border : As this name says everything, it will make a border around the element. There is no need to explain this. Syntax for this is style="border:1px solid #ff0000;" // for inline styles element{ border:1px solid #ff0000; } // for writing in external css file border has three elements that can be defined first is : border size ( 1px ) second : border style ( solid ) options are "double, solid, dotted, dashed, ridge, groove, inset, outset" third is : border color ( #ff0000), color can be written by color name ( red, yellow, white ) or by color code Margin : Margin will put space around the element, in this case space will be added outside of the element and will not add space around the text placed in the box. Margin will be behaved differently in different browsers. You can add margin around an html element in following way style="margin:1px;" // for inline styles element{ margin:1px; } // for writing in external css file description for margin is similar to padding. going for now, i will add rest of the tags in my next post. bye. enjoy. |
||||||
|
|||||||||
|
|||||||||
|
|||||||||
1