The p-content-wrapper defines the outer spacings between the content area and the left and right screen sides, as well
as centering its content and setting a max-width.
Deprecation hint
This component is deprecated and will be removed with the next major release. In general, please use native
CSS Grid instead for better performance and more
standardized layout technique. Additionally, we provide a Porsche Grid
utility instead based on CSS Grid covering the specific layout needs for a harmonic appearance across all digital
touch-points.
Layout hint
The component can only be used with the full viewport width. The alignment of its content can be controlled by the
width prop, which is in sync with the Porsche Grid
.
Therefore, the following examples only work in fullscreen after clicking the Maximize buttons.
Some content
prev
next
Open in Stackblitz
<!doctype html>
<htmllang="en"class="auto"><head><title></title></head><bodyclass="bg-base"><p-content-wrapper><divclass="example-content"> Some content
</div></p-content-wrapper><script></script></body></html>