-
AuthorPosts
-
June 23, 2014 at 5:43 pm #199093
I’m working with the t3_bs3_blank template. I’m just looking for a way to center the contents of the spotlight-1 block. It appears to be left justified by default. I need the modules assigned to the block to always be centered. All continue looking through the forums for an answer to this but would appriciate if anyone might have some insight on how to accomplish this. Thanks.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
June 23, 2014 at 5:44 pm #539916So that we can best try to assist you, please provide the url of the site you’re working on
June 24, 2014 at 12:19 pm #540023dev.swpl.org If you see the block under the slideshow you can see that the 5 positions in that block are left justified. I need to make that block center justify the modules contained in that block.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
June 24, 2014 at 3:11 pm #540034Try This . . . .
If you haven’t yet done so, create a new file called “custom.css” within the appropriate file path
(usually –> /templates/your_template/css/custom.css)Within that custom.css file, paste the following CSS rule:
.t3-sl .row {
margin-right: auto;
margin-left: auto;
width: 115%;
}SAVE CHANGES – CLEAR CACHE – REFRESH PAGE
For more information on using the custom/css feature —> SEE HERE
1 user says Thank You to TomC for this useful post
June 24, 2014 at 6:22 pm #540058Excellent… that did the trick. Is there a similar method to decrease what I’m assuming is the padding at the bottom of this block. There is… IMO an excessive amount of white space between this block and the main/sidbar block underneath of it. I tried adding a padding-bottom at 0px to the same CSS line you suggested but this had no effect that I could see.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
June 24, 2014 at 7:28 pm #540064Sure, here’s what you can do . . . .
Within the same custom.css file, paste the following CSS rule:
.t3-mainbody {
padding-top: 0;
}SAVE CHANGES – CLEAR CACHE – REFRESH PAGE
How does that look? 😎
1 user says Thank You to TomC for this useful post
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by TomC 10 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum