Question

I am trying to set width of page-bottom to be 100% but unfortunately I am still unable to make it 100%.

enter image description here

what I really want to have is:

enter image description here

Here is my default.xml

<referenceContainer name="page.bottom.container">
    <block class="Senheng\Def\Block\Html\Subscribe"
        name="senheng.page.buttom"
        template="Senheng_Default::html/subscribe.phtml"/>
</referenceContainer>

My subscribe.phtml

<div style="width:100%; padding:15px;">

    <img src="<?php echo $block->getViewFileUrl('images/send.png');?>" style="float:left" />

    <p>Be the first to find about exclusive offers & get 10% off your first purchase</p>

</div>

enter image description here

What can I do to make that element width (page-bottom) become 100%.

Any help would be appreciated.

Was it helpful?

Solution

In your code, for .page-bottom , max-width:1280px; is set. If you set max-width:100%, your footer will occupy entire width

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top