Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

I have one question

Started by massimo 9 years ago · 1 replies · 770 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 jeremycherfas, 1 week ago
4 178 2 days ago
General · by lynbor, 5 days ago
2 119 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 1 week ago
1 124 1 week ago
General · by Andy Miller, 3 weeks ago
0 246 3 weeks ago