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 · 666 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 ian russell, 4 days ago
2 120 4 days ago
General · by pamtbaau, 1 month ago
2 377 1 week ago
General · by Hanns Mattes, 1 month ago
2 358 2 weeks ago
General · by Andy Miller, 1 month ago
0 260 1 month ago
General · by Jerry Hunt, 1 month ago
2 401 1 month ago