Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

I have set up a modular page in my custom grav theme. But the modules / sections in that modular page render out of the container in base twig template

first-time theme

Started by Shreyas Malwadkar 1 year ago · 7 replies · 208 views
1 year ago

image|690x136

I have used container class of tailwind to the main container which holds the content within it but it is holding only the first two modules. I have checked all the necessary files and grav admin but everything seems to be correct

1 year ago

image (1)|690x172

above are my base twig template. everything is correct but didn't get where is the issue

1 year ago
  1. Please paste actual code in the future and not images
  2. These two images don't show anything useful
  3. Check your module templates
  4. Don't use element inspector - open page source
    Either some tags are not properly closed in the templates or you're using some weird shortcodes without closing them. I think it's the latter, but you're not providing relevant info.

Please read the sticky topic about asking good questions

1 year ago

Hey i checked the source code and the modules are rendering inside the main container that is in the base template but the issue is that from the 3rd module it renders outside the main container resulting in no margin to it as i have given a margin to the main container

1 year ago

So did you check your markdown in the second and third modules as I suggested?

1 year ago

@_shreyas04, Any progress you would like to share?

Some questions:

  • What's your level of expertise in Tailwind and CSS?
  • Do you know how to use the devtools of the browser?
  • Do you have a website we can inspect?

Suggested topics

Topic Participants Replies Views Activity
General · by jean-louis67, 3 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 310 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 264 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago