Posts

CSS Text Effects (Summary)

Image
CSS Text Effect Properties: Add effects to text. text-overflow word-wrap word-break writing-mode text-align-last text-justify Code Sample:  text-overflow - Specifies how overflowed content that is not displayed should be signaled to the user word-break - Specifies line breaking rules for non-CJK scripts word-wrap - Allows long words to be able to be broken and wrap onto the next line writing-mode - Specifies whether lines of text are laid out horizontally or vertically text-align-last - Specifies how to align the last line of a text text-justify - Specifies how justified text should be aligned and spaced text-overflow - clip - ellipsis - string - initial - inherit word-break - normal - keep-all - break-all - break-word - initial - inherit word-wrap - normal - break-word - initial  - inherit writing-mode - horizontal-tb - vertical-rl - vertical-lr text-align-last - auto - left - right - center - justify - start - end - initial - inherit text-justify - auto...

CSS Web Fonts (Summary)

Image
 The CSS @font-face Rule Web fonts allow Web designers to use fonts that are not installed on the user's computer. Code Sample: Different Font Formats TrueType Fonts (TTF) OpenType Fonts (OTF) The Web Open Font Format (WOFF) The Web Open Font Format (WOFF 2.0) SVG Fonts/Shapes Embedded OpenType Fonts (EOT) CSS Font Descriptors font-family - Defines a name for the font - name     src - Defines the URL of the font file - URL font-stretch    -  Defines how the font should be stretched. Default is "normal - normal - condensed - ultra-condensed - extra-condensed - semi-condensed - expanded - semi-expanded - extra-expanded - ultra-expanded font-style   -  Defines how the font should be styled. Default is "normal" - normal - italic - oblique font-weight     -   Defines the boldness of the font. Default is "normal" - normal - bold - 100 - 200 - 300 - 400 - 500 - 600 - 700 - 800 - 900 unicode-range     -   Def...

CSS 2D Transforms (Summary)

Image
CSS 2D Transforms    - CSS transforms allow you to move, rotate, scale, and skew elements. Code Sample: CSS 2D Transforms Method - With the CSS transform property, you can use the following 2D transformation methods translate() rotate() scaleX() scaleY() scale() skewX() skewY() skew() matrix() CSS Transform Properties transform - Applies a 2D or 3D transformation to an element transform-origin - Allows you to change the position on transformed elements CSS 2D Transform Methods matrix(n,n,n,n,n,n) Defines a 2D transformation, using a matrix of six values translate(x,y) Defines a 2D translation, moving the element along the X- and the Y-axis translateX(n) Defines a 2D translation, moving the element along the X-axis translateY(n) Defines a 2D translation, moving the element along the Y-axis scale(x,y) Defines a 2D scale transformation, changing the elements width and height scaleX(n) Defines a 2D scale transformation, changing the element's width scaleY(n) Defines...