Search code examples
phpdelphi4phprpcl

Centering a form in Delphi for PHP


I have created a Delphi for PHP page in RadPHP. How can I make it center in the browser's window?
Is it possible to achieve it using only PHP code?


Solution

  • Form cannot be centered by only using php, because php is server scripting language and it cannot determine the size of client area (available space) in the browser. This can only be done by using CSS and JavaScript. Try that approach.