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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

I have one question

Started by massimo 9 years ago · 1 replies · 597 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 Jerry Hunt, 4 days ago
2 80 9 hours ago
General · by pamtbaau, 14 hours ago
1 51 13 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago