- Trending Categories
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
Align items to center not working in SAPUI5
If you want a quick solution then you can use basic CSS properties like padding for left or right to align the content. Use relative percentages so that it works in both the views.
Other way which looks ideal is that define a custom CSS. Then you need to add this custom CSS to manifest.
"resources": { "css": [ { "uri": "css/style.css" } ] }
Set the concerned property like Margin: 0 auto; which will help you to set the contents to center.
- Related Articles
- Footer not working in my SAPUI5 application
- Align gathered items in the center in Bootstrap 4
- How to Align Navbar Items to Center using Bootstrap 4?
- Usage of CSS align-items property center value
- How to center align the items of a JComboBox in Java?
- Align single rows of items in the center with Bootstrap 4
- Align gathered items in the center on different screens in Bootstrap 4
- Align flex items in the center on different screen sizes in Bootstrap
- Align flex items at the center of the container with CSS
- Align single rows of items in the center on different screens in Bootstrap 4
- Center image using text-align center with CSS?
- How to align block elements to the center?
- CSS align-items property
- How to make a div center align in HTML?
- How to center align text in table cells in HTML?

Advertisements