
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 Element Using X-Axis with CSS3
Use the translateX(x) method to transform the element using x-axis.
Let us see the syntax
translateX(x)
Here,
- x: It is a length representing the abscissa of the translating vector.
Let us see an example
div { width: 40px; height: 40px; background-color: black; } .trans { transform: translateX(20px); background-color: orange; }
Advertisements