Hi Team
I am creating a form from the back end side using php i have cdn libraries, but need to reduce size of the container its big.
// html form
PowerShell
// Create the HTML form
$htmlForm = '
';
foreach ($data as $name => $value) {
$htmlForm .= '';
}
$htmlForm .= 'Pay Now
';
echo $htmlForm;
Tuhin PaulRank #7 · 71.9K reputationPosted Jun 15, 2023, 10:45 PM EDT
To reduce the size of the container in the HTML form:
// Create the HTML form $htmlForm = ' '; foreach ($data as $name => $value) { $htmlForm .= ''; } $htmlForm .= 'Pay Now '; // Add a class or style to reduce the size of the container $htmlForm = str_replace('container', 'container-sm', $htmlForm); // Alternatively, you can add an inline style to reduce the size // $htmlForm = str_replace('container"', 'container" style="max-width: 600px"', $htmlForm); echo $htmlForm;I've added the str_replace function to modify the class of the container element. It replaces the container class with container-sm, which is a smaller size container class from Bootstrap. This will reduce the size of the container.
Vishal JoshiRank #377 · 6.7K reputationPosted Jun 15, 2023, 12:46 AM EDT
To reduce the size of a container using Bootstrap, you can follow these general guidelines:
By following these guidelines, you can effectively reduce the size of your container image while still ensuring that your application functions correctly.
Deepak RawatRank #646 · 3.7K reputationPosted Jun 15, 2023, 1:03 AM EDT
i can help you if you can explain your need little bit.