
- CSS Tutorial
- CSS - Home
- CSS - Introduction
- CSS - Syntax
- CSS - Inclusion
- CSS - Measurement Units
- CSS - Colors
- CSS - Backgrounds
- CSS - Fonts
- CSS - Text
- CSS - Images
- CSS - Links
- CSS - Tables
- CSS - Borders
- CSS - Margins
- CSS - Lists
- CSS - Padding
- CSS - Cursors
- CSS - Outlines
- CSS - Dimension
- CSS - Scrollbars
- CSS Advanced
- CSS - Visibility
- CSS - Positioning
- CSS - Layers
- CSS - Pseudo Classes
- CSS - Pseudo Elements
- CSS - @ Rules
- CSS - Text Effects
- CSS - Media Types
- CSS - Paged Media
- CSS - Aural Media
- CSS - Printing
- CSS - Layouts
- CSS - Validations
- CSS3 Tutorial
- CSS3 - Tutorial
- CSS3 - Rounded Corner
- CSS3 - Border Images
- CSS3 - Multi Background
- CSS3 - Color
- CSS3 - Gradients
- CSS3 - Shadow
- CSS3 - Text
- CSS3 - Web font
- CSS3 - 2d transform
- CSS3 - 3d transform
- CSS3 - Animation
- CSS3 - Multi columns
- CSS3 - User Interface
- CSS3 - Box Sizing
- CSS Responsive
- CSS - Responsive Web Design
- CSS References
- CSS - Questions and Answers
- CSS - Quick Guide
- CSS - References
- CSS - Color References
- CSS - Web browser References
- CSS - Web safe fonts
- CSS - Units
- CSS - Animation
- CSS Resources
- CSS - Useful Resources
- CSS - Discussion
Change the height of element using CSS
Use the scaleY() method to change the height of the element with CSS.
Let us see the syntax −
scaleY(n);
Here, n is a number representing the scaling factor.
Let us see an example −
div { width: 40px; height: 50px; background-color: black; } .myScaled { transform: scaleY(0.9); background-color: orange; }
- Related Articles
- Change the width and height of element using CSS
- Change the width of element using CSS
- Set min-height and max-height of an element using CSS
- Setting Line Height using CSS
- How to get the height of an element using jQuery?
- How to change the position of the scrollbar using CSS?
- How to change the ID of the element using JavaScript?
- How to change the color of selected text using CSS?
- How to get the height of a div element using jQuery?
- How to change the color of the radio button using CSS?
- How to change the font size using CSS?
- How to change the element id using jQuery?
- How to change CSS using jQuery?
- Set the height and width of an image using percent with CSS
- How to Make a DIV 100% of the Window Height using CSS

Advertisements