AppGini 5.98 Left Align

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
Moh Youba
Veteran Member
Posts: 239
Joined: 2017-03-12 09:31

AppGini 5.98 Left Align

Post by Moh Youba » 2022-02-16 20:20

Hello
How are you doing, I hope well. Pleas any help to left align. Please see picture
align_left.jpg
align_left.jpg (60.91 KiB) Viewed 2116 times

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1944
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: AppGini 5.98 Left Align

Post by jsetzer » 2022-02-16 20:48

By default, depending on the screen resolution, labels in horizontal forms in Bootstrap 3 are right aligned, if display size is medium or large.

If you want to change the standard, you will have to change the css, see here:

https://stackoverflow.com/questions/322 ... orm-labels

tl;dr

Code: Select all

.form-horizontal .control-label {
    text-align: left;
}
Last edited by jsetzer on 2022-02-16 20:51, edited 1 time in total.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 25.10 + all AppGini Helper tools

Moh Youba
Veteran Member
Posts: 239
Joined: 2017-03-12 09:31

Re: AppGini 5.98 Left Align

Post by Moh Youba » 2022-02-16 22:14

Thank you sir, please where to put the code ?

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1944
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: AppGini 5.98 Left Align

Post by jsetzer » 2022-02-16 22:30

There are different ways for adding custom CSS styles.

I guess many put them in hooks/header-extras.php directly.

Code: Select all

<!-- file: hooks/header-extras.php -->
<style>
/* your styles here */
</style>

Others may include a custom CSS file* (which I personally prefer).

Code: Select all

<!-- file: hooks/header-extras.php -->
<link rel="stylesheet" href="YOUR_FILENAME.css">

Code: Select all

/* file: YOUR_FILENAME.css */
/* your styles here */
* linked css files may probably be cached by your browser. Ensure to reload without caching after changing styles, otherwise you may see outdated styling in your browser.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 25.10 + all AppGini Helper tools

Moh Youba
Veteran Member
Posts: 239
Joined: 2017-03-12 09:31

Re: AppGini 5.98 Left Align

Post by Moh Youba » 2022-02-16 22:44

thank you sir, working very good.
Please add to your js library
Best regards,

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1944
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: AppGini 5.98 Left Align

Post by jsetzer » 2022-02-16 23:09

It is not planned to add this customization to the library. We will keep the Bootstrap standard which follows user interface design principles and promises compatibility for almost all devices, operating systems and browsers. If you want a non-standard customization like this label-alignment, feel free to customize to your personal needs with only few lines of css code.
Last edited by jsetzer on 2022-02-16 23:14, edited 2 times in total.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 25.10 + all AppGini Helper tools

Moh Youba
Veteran Member
Posts: 239
Joined: 2017-03-12 09:31

Re: AppGini 5.98 Left Align

Post by Moh Youba » 2022-02-16 23:12

ok, I understand.
Thank you

Post Reply