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

I have one question

Started by massimo 9 years ago · 1 replies · 714 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 jean-louis67, 3 days ago
2 79 2 days ago
General · by Andy Miller, 6 days ago
0 144 6 days ago
General · by Veehem, 1 week ago
0 144 1 week ago
General · by milkboy, 1 week ago
0 138 1 week ago
General · by ian russell, 2 weeks ago
2 225 2 weeks ago