I am using joomla 4 rc3 with standard Casspiopeia template set to full width fluid layout.
I am also creating a content item page where I need images and some grey backgrounds for example to go egde to edge. I can put divs with container class to centralise text and layout I need, but things like a wide image or a background colur needs to be edge to edge.
There is always a gutter to the right and left. How can I remove this?
The only place we can get 'edge to edge' are modules in the 'banner' in position. In the 'component area of the template (where the article is) I can't get edge to edge. There are gutters of about 20mm left and right.
I tried duplicating the template (and it's index.php) and tried replacing the class "grid-child container-component"
Code: Select all
<div class="grid-child container-component">
<jdoc:include type="modules" name="breadcrumbs" style="none" />
<jdoc:include type="modules" name="main-top" style="card" />
<jdoc:include type="message" />
<main>
<jdoc:include type="component" />
</main>
<jdoc:include type="modules" name="main-bottom" style="card" />
</div>
Code: Select all
<div class="full-width"><!--replaced here -->
<jdoc:include type="modules" name="breadcrumbs" style="none" />
<jdoc:include type="modules" name="main-top" style="card" />
<jdoc:include type="message" />
<main>
<jdoc:include type="component" />
</main>
<jdoc:include type="modules" name="main-bottom" style="card" />
</div>
I also tried adding p-0 (bootstrap 5 for no gutters) without success. What other class can i add to get edge to edge layout and no left and right gutters, when using a fluid layout... or is there some CSS I can add to remove these gutter spaces? Just need a simple solution. Advice would be really appreciated.