Contenido del Curso
Advanced CSS Techniques
Advanced CSS Techniques
1. Getting Started with Advanced CSS
2. Mastering CSS Positioning
Understanding CSS PositioningRelative Positioning ExplainedChallenge: Apply Relative PositioningAbsolute Positioning in CSSChallenge: Implement Absolute PositioningFixed Positioning for Sticky UI ElementsChallenge: Work with Fixed PositioningSticky Positioning for Dynamic LayoutsChallenge: Master Sticky PositioningManaging the Stacking Order of ElementsChallenge: Control Z-Index and Overlapping ElementHandling Content Overflow in CSS
5. Transforming Elements with CSS
7. CSS Preprocessors and Sass
Performing Calculations with Sass Numeric Operators
We can perform mathematical calculations on numbers. Sass supports all basic arithmetics like addition (+
), subtraction (-
), multiplication (*
), and division (/
).
For addition and subtraction, it is important to have values with the same units (e.g., %
, px
).
For multiplication and division, it is crucial to have one unitless value. Sass can't calculate the division of pixels or percentages.
Mathematical operations with variables
We can easily involve variables in the calculations if the variable has a valid value.
Let's imagine that we need to add a double margin to the item:
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 7. Capítulo 4