Download presentation
Presentation is loading. Please wait.
Published byLorraine George Modified over 9 years ago
1
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ CSS Training
2
Copyright © Osmosys Introduction - Full form - Role of CSS - Presentation - Adding a CSS file to your HTML - Inline CSS is bad. Check Zen Garden. - Adding comments to CSS Important Note - Refer to MDN for reference and doubts clearing - Read documentation properly and completely.
3
Copyright © Osmosys CSS Syntax
4
Copyright © Osmosys Selectors header.class #id.class #id.class#id.header p Important Note - Avoid using global styles.
5
Copyright © Osmosys Block and Inline Elements - What are they? - Differences - inline-block - The display property Controlling dimensions of CSS elements - Empty elements have no height. - Inline elements cant be given height or width - Inline Block can have height and width
6
Copyright © Osmosys CSS Units - Percentage - % - Pixels - px - Em - em Margins - Margin does not affect the width of the element Overriding CSS and Inheritance - The point system - Using multiple classes for the same element
7
Copyright © Osmosys Padding - Adding padding increases the width of the element - Same units as margins apply. CSS Reseter - http://meyerweb.com/eric/tools/css/reset/ - What and Why? - Using CSS Reseter. - Always use hexcode for color in CSS (#929292)
8
Copyright © Osmosys Working with Text - color - letter-spacing - line-spacing - text-align - text-decoration - word-spacing Working with fonts - family - size - style - weight - What are web safe fonts? - How to add more fonts?
9
Copyright © Osmosys Anchor Pseudo classes Elements Pseudo selectors - a:link {color: #009900;} // Normal - a:visited {color: #999999;} // Already Visited - a:hover {color: #333333;} // Hovered - a:focus {color: #333333;} // Focused - a:active {color: #009900;} // Active - :hover - :focus - :active
10
Copyright © Osmosys Working with backgrounds Working with borders - color - image - position - repeat - color - style > dashed, dotted, double, groove, hidden, inset, none, outset, ridge, solid - width - top, bottom, right, left
11
Copyright © Osmosys Styling lists Floats Media Queries - list-style - list-style-image - list-style-type - Working with floats - left and right - Using clear
12
Copyright © Osmosys Positioning CSS elements - static - relative - absolute - fixed - z-index Other CSS properties - cursor - opacity - overflow - box shadow
13
Copyright © Osmosys Designing Forms - Two column form with label on top and control below - One column form with label on side and control next to it. - Two column layout with labels on side and controls next to it. - Errors below controls and on top of the form. Designing Tables - Add classes to table to design them. - Alternate row colors. - Designing headers and footers seperately.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.