How can CSS be used to solve cosmetic display issues in PHP?

Issue: CSS can be used to solve cosmetic display issues in PHP by applying styles to HTML elements generated by PHP code. This can include adjusting margins, padding, colors, fonts, and other visual properties to enhance the appearance of the output. PHP Code Snippet:

<?php
// PHP code generating HTML elements
echo "<div class='container'>";
echo "<p>Hello, World!</p>";
echo "</div>";
?>
```

CSS Code Snippet:
```css
<style>
.container {
  background-color: lightblue;
  padding: 10px;
  border: 1px solid black;
  text-align: center;
}
p {
  font-size: 20px;
  color: darkblue;
}
</style>