CSS syntax defines how style rules are written, typically using selectors to target HTML elements and properties to apply visual changes.
Selectors are patterns used to select elements for styling, and they include universal, element, class, ID, group, descendant, and more advanced types.
CSS allows the use of different color formats such as named colors, HEX, RGB, HSL, etc.
Units define sizes and spacing, including absolute (px, cm) and relative (em, %, rem, vw) units.
Backgrounds can be styled with images, gradients, and various positioning and repetition options.
Typography in CSS controls font family, size, weight, spacing, alignment, and decoration.
Comments in CSS are used to add notes or explanations for developers.
Text shadow adds visual depth or highlight effects to text elements.
The box model is a fundamental concept that includes content, padding, border, and margin.
Display properties define how elements are rendered (inline, block, inline-block, none, etc.) and influence layout behavior in the document flow.
Positioning determines how elements are placed in relation to the normal flow or other elements (static, relative, absolute, fixed, sticky). z-index
controls stack order of overlapping elements. Float allows elements to wrap beside each other. Overflow handles content that exceeds container boundaries.
Flexbox is a one-dimensional layout system that arranges elements in rows or columns.
It simplifies aligning items, distributing space, and managing responsive layouts within a container.
CSS Grid is a two-dimensional layout system allowing control over both rows and columns.
It provides a structured way to create complex responsive layouts with precise placement of items.
Transitions allow smooth animation between different states of a CSS property.
Combinators define relationships between selectors (e.g., child, adjacent sibling, general sibling, descendant), enabling more specific targeting.
Animations define keyframes and properties for advanced motion effects over time.
Pseudo-classes target elements based on their state (like hover or focus).
Pseudo-elements target specific parts of elements (like first letter or before/after content).
A navbar is a navigation interface styled using CSS for layout and interaction.
Dropdowns provide hidden menus that appear on interaction.
Attribute selectors allow targeting of elements based on their attributes or attribute values.
Styling forms includes customizing input fields, buttons, and labels.
Specificity determines which CSS rule is applied when there are conflicts.
The !important
declaration overrides other rules regardless of specificity, though it should be used sparingly.
These CSS functions perform dynamic calculations for property values.
calc()
allows math expressions, while max()
and min()
apply limits based on specified conditions, useful for responsive and fluid layouts.
Shadows add depth to elements with drop shadows or inner shadows.
Gradients create smooth transitions between colors for backgrounds or borders.
Borders define the outer edge of elements and can be styled in various ways.
CSS variables enable reusable and consistent values across stylesheets.
Pagination involves styling elements used for navigating between pages.
Buttons are styled for appearance and interactivity, including hover and active states.
Object-fit controls how media elements fill their container space.
Object-position sets the alignment within the container.
Masking allows specific parts of an element to be shown or hidden using shapes or gradients.
Image styling includes adjusting size, borders, and visual effects.
Centering places images in the middle of their container horizontally or vertically. Filters apply effects like brightness or blur.
Shapes can be created using clipping or border-radius.
Additional transition techniques create smoother user interactions.
Tooltips are styled informational boxes that appear on hover or focus, enhancing user guidance without taking up space on the interface.
Responsive design ensures a website works well across different devices and screen sizes.
Media queries apply different styles based on conditions like screen width, orientation, or resolution, making designs adaptable and flexible.
This project involves building a full, styled website that adapts to various screen sizes.
It includes layout structure, responsive navigation, styled sections, interactivity, and modern design techniques using all major CSS concepts.