What is the best practice for including a PHP file in a way that maintains the layout and allows for a scroll bar if the content exceeds the designated space?

When including a PHP file that may exceed the designated space and require a scroll bar, it is best practice to use CSS to style the container element with a fixed height and overflow property set to "auto". This will allow the content to scroll within the container if it exceeds the specified height.

<div style="height: 300px; overflow: auto;">
    <?php include 'your_php_file.php'; ?>
</div>