I just tried this and its really cool. It will change the look of your forms
go to server events , page datarendering for the table, (for Add page ,go to Add/Copy Page >>Page_DataRendering)
edit header to
<style>
.center {
margin: auto;
width: 70%;
padding: 10px;
background-color:#F8F9FA;
}
@media (max-width: 767px) {
.center{
width: 100%;
margin-left:-2px;
}
}
</style>
</header>
<div class="container-xxl center">
NOTE to avoid php errror, change to single string.
$header = ""
must be changed to $header = ' '
Your final code must look like this
// Page Data Rendering event
function Page_DataRendering(&$header)
{
// Example:
$header = '
<style>.center {
margin: auto;
width: 70%;
padding: 10px;
background-color:#F8F9FA;
}
@media (max-width: 767px) {
.center{
width: 100%;
margin-left:-2px;
}
}
</style>
</header>
<div class="container-xxl center">';
}
You can tweak the style to your taste . Enjoy.