-
AuthorPosts
-
gribblej Friend
gribblej
- Join date:
- June 2011
- Posts:
- 208
- Downloads:
- 28
- Uploads:
- 6
- Thanks:
- 4
- Thanked:
- 10 times in 2 posts
April 9, 2014 at 7:12 pm #196605I like this template but the customer thinks the container padding is excessive. I am being asked to tighten up the white space at the boundary of the page and the body background. Can this be done in the variables.less file? I read a somewhat-related thread but the the variables.less file seems to have changed again. I am seeing differences from the posted tutorial. If this isn’t possible, do I edit the CSS as I used to? What is the best approach?
Thanks!
-Jim G.TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
April 9, 2014 at 7:35 pm #530182You can try adding the following to your custom.css file . . .
.main-container {
margin: 0 50px;
}
You can then play around with the pixel value (trial-and-error) until you arrive at the result you and your client are most satisfied with. (There may be an additional tweek/adjustment here and there required – depending on the width value you decide upon).
gribblej Friendgribblej
- Join date:
- June 2011
- Posts:
- 208
- Downloads:
- 28
- Uploads:
- 6
- Thanks:
- 4
- Thanked:
- 10 times in 2 posts
April 9, 2014 at 8:05 pm #530189Thanks, but this is just going to mess up the layout unless I can reduce template width at the same time by whatever value I reduce the margin. That’s what happened when I tried it. So, does anyone else out there have a suggestion?
Thanks!
-Jim G.TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
April 9, 2014 at 8:28 pm #530192Well, another thing you can try adding the following to your custom.css file . . .
.container {
width: 1150px;
}
This will reduce the width of the overall content/container area. Again, you can then play around with the pixel value (trial-and-error) until you arrive at the result you and your client are most satisfied with. (There may be an additional tweek/adjustment here and there required – depending on the width value you decide upon).
However, you’re STILL going to have issues with the “white space” margin – hence my original suggestion.
You can better see the margin issues utilizing an online web development tool like
gribblej Friendgribblej
- Join date:
- June 2011
- Posts:
- 208
- Downloads:
- 28
- Uploads:
- 6
- Thanks:
- 4
- Thanked:
- 10 times in 2 posts
April 9, 2014 at 9:04 pm #530202Right, I use Firebug along with everybody else. That’s how I knew this approach was going to be dicey. Other related posts hint at modifying the core file: variables.less. There must be a better, simpler answer.
Thanks though for caring,
-Jim G.TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
April 9, 2014 at 9:10 pm #530203I am forwarding your issue onto the JA Development Team for review and (hopefully) further comment/suggestion(s).
😎
gribblej Friendgribblej
- Join date:
- June 2011
- Posts:
- 208
- Downloads:
- 28
- Uploads:
- 6
- Thanks:
- 4
- Thanked:
- 10 times in 2 posts
April 9, 2014 at 9:19 pm #530205Thanks, that’s just what I was hoping.
Nazario A FriendNazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
April 10, 2014 at 10:15 am #530311To reduce the container padding, you can add this rule into the file: /templates/your_template_name/css/custom.css (if does not exist, pls create a new one)
#t3-mainbody.container {
padding: 10px;
}You can change the value in red as you wish.
Hope this helps.
1 user says Thank You to Nazario A for this useful post
gribblej Friendgribblej
- Join date:
- June 2011
- Posts:
- 208
- Downloads:
- 28
- Uploads:
- 6
- Thanks:
- 4
- Thanked:
- 10 times in 2 posts
May 9, 2014 at 5:02 pm #534389Just to follow up and for the benefit of other customizers, this is the way that works. There’s one wrinkle if you are using a theme (blue) like I am. Your custom.css file has to be uploaded to the root folder of all the css files for whichever theme you are using. .
Then drop in:
container {
width: 1150px;
}And adjust the width value to your liking. Keep in mind that you may have to retune some other layout elements. In my case turned out to be no big deal.
Thanks Tom,
-Jim G. -
AuthorPosts
This topic contains 9 replies, has 3 voices, and was last updated by gribblej 10 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum