I am having an issue with css grids. I am wondering if it is possible to have different widths for each of my grid rows.
My grid is set up as follows:
.section.section--3 .text {
    display: grid;
    justify-content: center;
    padding: 0 10% 0;
    text-align: center;
}
So I basically want my heading, paragraph and button nested inside my text div to have different widths without using max-width and not fill the entire row. Reason being my button should resize in width dynamically based on the length of the text inside.
my HTML is as follows:
<div class="text">
    <h2 class="text__item item--heading">
        Heading
    </h2>
    <p class="text__item item--paragraph">
        Paragraph
    </p>
    <a href="#" class="text__item item--button button button--primary">
        Button
    </a>
</div>
This image illustrates basically what I want to achieve.
Thanks.
 
     
     
    