CSS2-Introduction In this module CSS is used to style and lay out web pages — for example, to alter the font, colour, size and spacing of your content, split it into multiple columns, or add animations and other decorative features. This module gets you started on the path to css.
• Benefits of CSS
• CSS Versions History
• CSS Syntax
• External Style Sheet using
• Multiple Style Sheets
• Value Lengths and Percentages
CSS-Syntax
the basic goal of the Cascading Stylesheet (CSS) language is to allow a browser engine to paint elements of the page with specific features, like colors, positioning, or decorations. The CSS syntax reflects this goal and its basic building blocks are
• Single Style Sheets
• Multiple Style Sheets
• Value Lengths and Percentages
• CSS Selectors
• Color Background
CSS Backgrounds and Borders is a module of CSS that lets you style elements backgrounds and borders. Backgrounds can be filled with a color or image, clipped or resized, and otherwise modified. Borders can be decorated with lines or images, and made square or rounded.
• background-image
• background-repeat
• background-position
• CSS Cursor
CSS-Text Fonts
CSS Fonts that defines font-related properties and how font resources are loaded. It lets you define the style of a font, such as its family, size and weight, line height, and the glyph variants to use when multiple are available for a single character
• color
• background-color
• text-decoration
• text-align
• vertical-align
• text-indent
• text-transform
• white-space
• letter-spacing
• word-spacing
• line-height
• font-family
• font-size
• font-style
• font-variant
• font-weight
CSS-Lists Tables
Lists table that defines how to lay out table data.
• list-style-type
• list-style-position
• list-style-image
• list-style
• CSS Tables
I. border II. width & height III. Text-align IV. vertical-align V. paddingVI. color
CSS-Box Model
CSS box model that defines the rectangular boxes—including their padding and margin—that are generated for elements and laid out according to the visual formatting model.
• Borders & Outline
• Margin & Padding
• Height and width
• CSS Dimensions
CSS Display Positioning
CSS property specifies how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements.
• CSS Visibility
• CSS Display
• CSS Scrollbars
• CSS Positioning
1. Static Positioning
2. Fixed Positioning
3. Relative Positioning
4. Absolute Positioning
• CSS Layers with Z-Index
CSS Floats
The float CSS property specifies that an element should be placed along the left or right side of its container, allowing text and inline elements to wrap around it. The element is removed from the normal flow of the web page, though remaining a part of the flow (in contrast to absolute positioning).
• The float Property
• The clear Property
• The clearfix Hack
Color, Gradients, Background Images, and Masks
o Opacity
o New Color Names
o Nonimage Gradients
o Multiple Background Images
o Background-size, Background-origin, Background-clip
o Image Masks
Border and Box Effects
o Rounded Corners
o Resizing
o Outline Offsets
o Appearance
o Image Borders
o Box Shadow
Working with Colors
o Background
o Multiple Background
o Colors
• RGB and RGBA
• Alpha factor
• Opacity & Transparency
o Using currentColor
o Working with gradients
Layout: Columns, Flex Box
o Column-count, Column-gap, Column-rule
o Multiple Column Layouts
o Gaps between Columns
o Box-orient, Box-pack, Box-align, Box-flex, etc.
o Display: box
o Grouping and Changing Orientation
o Alignment
Vendor Prefixes
o Current status of -moz, -o, etc.
o When and Why to Use
Media Queries
o Targeting Device Capabilities: Width, Screen Size, Color Depth, etc.
o Building Responsive Sites: Implications for Mobile
Implementing CSS3
o Modernizr
o HTML5 Shims
o jQuery
o LESS, SASS, and Other CSS Preprocessors
o CSS Grid Systems
o CSS Frameworks
Transforms, Transitions, and Animations
o translate(), rotate(), etc.
o 3D: rotateX(), rotateY()
o changing, for example, the width of a div on hover (without JS)
o animations: @keyframes, animation