Centre text in boxes on main screen

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
User avatar
shasta59
AppGini Super Hero
AppGini Super Hero
Posts: 231
Joined: 2013-01-08 19:40
Location: Calgary, Alberta, Canada

Centre text in boxes on main screen

Post by shasta59 » 2014-11-30 18:53

Do you wish the text was centred in the boxes on your main screen?

As seen in this picture?
Voila_Capture254.jpg
Voila_Capture254.jpg (22.82 KiB) Viewed 3582 times
Easy to do.

Open home.php

Around line 29 you will see the following code:

Code: Select all

.panel-body-description{
		margin-top: 10px;
		height: 100px;
		overflow: auto;
	}
After the overflow: auto; add in the following:

Code: Select all

		text-align: center;
It will then look like:

Code: Select all

.panel-body-description{
		margin-top: 10px;
		height: 100px;
		overflow: auto;
		text-align: center;
	}
Your text will now be centred as seen in the picture.

Any questions just ask.

Alan
Calgary, Alberta, Canada - Using Appgini 5.50 -

clar1970
Posts: 7
Joined: 2015-02-15 03:24

Re: Centre text in boxes on main screen

Post by clar1970 » 2015-02-18 21:16

hi, it´s possible change default color of every box.

thanks

peebee
AppGini Super Hero
AppGini Super Hero
Posts: 352
Joined: 2013-03-21 04:37

Re: Centre text in boxes on main screen

Post by peebee » 2015-02-19 02:58

You can edit the CSS in the bootstrap theme you are using.

.btn-info {
color: #ffffff;
background-color: #5bc0de; <= edit this #colour
border-color: #46b8da;
}

You can use Firebug or some other browser web developer tool to inspect and identify where the CSS is located that you need to change.

Post Reply