Hi,
I tried to place the button on the center of the panel, I put this on the control style:
width: 125px;
text-align: center;
margin-left: auto;
margin-right: auto;
but the button still placed on the left.
What should I do to make it centered?
Thanks in advance for the help.
centering button within panel?
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 305
- Joined: Thu Jul 02, 2015 8:32 am
- Location: Indonesia
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
- Wai
- Moderator
- Posts: 165
- Joined: Wed Sep 12, 2007 9:04 am
- Location: Sandy, UK
- Contact:
Have you tried using Ebase Layout instead of CSS?
In a Panel, there is a Layout property. You can set this to horizontal box with Block horizontal alignment to center
This will center a button in a Panel.
If you do want to go down the CSS route, you should make sure there are no layout types on your Panel.
In a Panel, there is a Layout property. You can set this to horizontal box with Block horizontal alignment to center
This will center a button in a Panel.
If you do want to go down the CSS route, you should make sure there are no layout types on your Panel.
0 x
-
- Ebase User
- Posts: 305
- Joined: Thu Jul 02, 2015 8:32 am
- Location: Indonesia
Who is online
Users browsing this forum: No registered users and 23 guests