Center the page content

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
Wed Sep 21, 2016 4:06 pm
Reply with quote
Report this post
Hi, I have Music State on this site: rainnightclubvn.net
I tried to center the content of the page in this subpage: http://rainnightclubvn.net/photos.html
But I can't make it out.
This is what I did give a try:
Add a suffix for page: 498=center-page
Then defined "center-page" suffix in overide.css like this:
.center-page{
margin:auto;
text-align:center;
}

What I need is to center the hold gallery block on that page. Can I do it with page suffix? If yes, please help me with some code. If not, please help me with another solution.
Thank you!
User avatar
Expert Boarder

teitbite
Fri Sep 23, 2016 4:59 pm
Reply with quote
Report this post
Please add this code to override.css and make sure override is enabled in template settings.

Code: Select all
.center-page .jfbalbum div.imgboxouter {
    display: inline-block;
    float: none;
}
User avatar
Moderator

GK User
Sat Sep 24, 2016 3:08 pm
Reply with quote
Report this post
Thank you Teitbite. That works!
This is the final code in my overide.css, in case somebody else need to have a look:
Code: Select all
.center-page {
   margin:auto;
   text-align:center;
}
.center-page .jfbalbum div.imgboxouter {
    display: inline-block;
    float: none;
}
User avatar
Expert Boarder

teitbite
Mon Sep 26, 2016 1:42 pm
Reply with quote
Report this post
Hi

I do not know if the first part is necessary, but if it works than I guess it's fine :) Glad I could help. Closing this thread now.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.