Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

I have one question

Started by massimo 9 years ago · 1 replies · 819 views
9 years ago

Hi comunity,
i want know if is possible to put style in modular page...
i try:
<style type="text/css">
body{background-color: #444;}
</style>
but this bodyBKG stay in all of modulars page and not only in page that i want....
thanks for help and for this great job

9 years ago

Only styling body tag will render all pages if you do not specify it. If you have the admin plugin it is easy to add a class in advanced -> settings in your main modular page.

Where you put the body {backgr...} you can just add a class .modular-color { background-color: #444; } and add the class modular-color to advanced -> settings -> body class.

Hope this helps.

I suggest you try to learn how css and html work. Then you can basically do anything you want🙂

Suggested topics

Topic Participants Replies Views Activity
General · by Andy Miller, 7 days ago
0 114 7 days ago
General · by lynbor, 1 month ago
3 443 2 weeks ago
General · by lynbor, 3 weeks ago
7 562 2 weeks ago
General · by Harry, 2 weeks ago
0 162 2 weeks ago
General · by Old Man Umby, 1 month ago
2 309 4 weeks ago