![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Transform the element along with y-axis using CSS
Used to translateY(n) method to transform the element along with y-axis.
Let us see the syntax:
translateY(n)
Here, n is a length representing the abscissa of the translating vector.
Example
Let us see an example −
div { width: 50px; height: 50px; background-color: black; } .trans { transform: translateY(20px); background-color: orange; }
Advertisements