Want to change #gkMainbody class for Component

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Aug 01, 2014 12:06 pm
Reply with quote
Report this post
Need to change the config from #gkMainbody (like the padding) for my Joomgallery, because of needing space. How can i change this only for the view of the component´?
User avatar
Expert Boarder

teitbite
Mon Aug 04, 2014 7:41 am
Reply with quote
Report this post
Hi

This code will add space:

Code: Select all
#gkMainbody { padding-top: 30px; }


Use it with page class suffix or as a content for a custom code module.
User avatar
Moderator

GK User
Mon Aug 04, 2014 8:16 am
Reply with quote
Report this post
teitbite wrote:Hi

This code will add space:

Code: Select all
#gkMainbody { padding-top: 30px; }


Use it with page class suffix or as a content for a custom code module.


But need it for a component. view. How I define it, that the rest of the site didn´t change
User avatar
Expert Boarder

teitbite
Tue Aug 05, 2014 10:16 am
Reply with quote
Report this post
Hi

Like I've said:
Use it with page class suffix or as a content for a custom code module.


Page class suffix can be set in template settings and attache to a page ID. So for egzample You put a suffix as "addspace" so the code is css file would be:

Code: Select all
.addspace #gkMainbody { padding-top: 30px; }


Or use module like for example "K2 tools" and use it's Custom Code option. That put the code:

Code: Select all
<style type="text/css">
#gkMainbody { padding-top: 30px; }
</style>


than You can attache this module to any page You want this space to appear.
User avatar
Moderator


cron