The CSS property transform is usually used for rotating and scaling elements, but with its translateY function we can now vertically align elements. With just three lines of CSS (excluding vendor prefixes) we can do it with the help of a transform: translateY vertically centers whatever we want, even if we don’t know its height. By reading the above article I also created a demo fiddle. ![]() ![]() ![]() All credit goes to this link owner Ekström Link please go through this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |