Center the page content
Rate this topic: 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!
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!
-
- 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;
}
-
- 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:
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;
}
-
- 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.
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.
-
- Moderator
4 posts
• Page 1 of 1