Change mainbody padding

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
Thu Aug 07, 2014 12:17 pm
Reply with quote
Report this post
Hello, on mainbody i added a component but i see that there is some padding by default on template how can i remove it.
thank yoy
User avatar
Senior Boarder

teitbite
Thu Aug 07, 2014 3:19 pm
Reply with quote
Report this post
Hi

Can You please tell me the url to the page where I can see this padding ?
User avatar
Moderator

GK User
Thu Aug 07, 2014 11:22 pm
Reply with quote
Report this post
there you go http://goo.gl/Ra2j2g
I would like to know also if i can remove the gap on the top of the template right before logo and menu
User avatar
Senior Boarder

teitbite
Fri Aug 08, 2014 10:04 am
Reply with quote
Report this post
Hi

Please add this code to override.css and make sure override is enabled in template settings.

Code: Select all
.frontpage #gkContent {
    padding: 0;
}


and the other space You may want to remove:

Code: Select all
#gkPageContent {
    padding: 0 90px;
}
User avatar
Moderator

GK User
Fri Aug 08, 2014 11:31 am
Reply with quote
Report this post
Thank you that fixed it.
I changed this
Code: Select all
#gkPageContent {
    padding: 0 90px;
}

with this
Code: Select all
#gkPageContent {
    padding: 0;
}

because as i said i wanted no padding
User avatar
Senior Boarder

teitbite
Fri Aug 08, 2014 12:14 pm
Reply with quote
Report this post
Hi

No problem. I missunderstood and thought You just do not want padding on top :)
User avatar
Moderator

GK User
Fri Aug 08, 2014 1:17 pm
Reply with quote
Report this post
I'm sorry to bother you again, but i also want to reduse this space
Image
User avatar
Senior Boarder

teitbite
Sat Aug 09, 2014 1:28 pm
Reply with quote
Report this post
Hi

Try add this to css:

Code: Select all
#gkBg {
    padding: 0;
}
User avatar
Moderator

GK User
Sat Aug 09, 2014 3:42 pm
Reply with quote
Report this post
That worked also. Please be patient with me because i found another issue on a solution u gave me earlier.
Using this
Code: Select all
#gkPageContent {
    padding: 0;
}

I managed to have full width and height of my index component but k2 looks a bit transformed and ugly since it has no padding. Is there any way to adopt this code only on index.php ?
thank you once again
User avatar
Senior Boarder

teitbite
Sun Aug 10, 2014 4:11 pm
Reply with quote
Report this post
Hi

You can use page class suffix which can be set in template settings. For example add suffix as "frontpage" by menu item ID. Than the code to attache it to only this one menu id will be:

Code: Select all
.frontpage #gkPageContent {
    padding: 0;
}
User avatar
Moderator

GK User
Mon Aug 25, 2014 12:21 pm
Reply with quote
Report this post
Hello and sorry for my delay but i was on vacations.
I'm not sure i got this solution. I'm going on template settings/Suffixes for pages what i put on ItemID/Option: and what on Suffix:. Also where do i set suffix name for each page from the menu?
User avatar
Senior Boarder

teitbite
Tue Aug 26, 2014 2:12 pm
Reply with quote
Report this post
Hi

Here You can find an instruction about using page class suffixes.
User avatar
Moderator

GK User
Tue Aug 26, 2014 10:36 pm
Reply with quote
Report this post
no link on your answer
User avatar
Senior Boarder

teitbite
Wed Aug 27, 2014 5:54 pm
Reply with quote
Report this post
Hi

Sorry. I do that from time to time ;/

https://www.gavick.com/documentation/un ... mla-pages/
User avatar
Moderator

GK User
Thu Aug 28, 2014 8:13 pm
Reply with quote
Report this post
Thank you the guide helped me alot i solved it
User avatar
Senior Boarder


cron