-
AuthorPosts
-
January 8, 2012 at 11:28 am #172571
Hi there,
Added a custom module at position “sl1-l” to display Google Ads. Problem is, the module is slightly too wide, which somehow hurts my eyes (see screenshot).How would I reduce width by about 10px? I tried and added a custom class suffix into template.css, to no avail.
Plz help!
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
January 9, 2012 at 5:06 am #433070In order to best assist you, please provide the url of the site you’re working on
– as well as set “Optimize CSS” to “No’ within your Template Manager–General Settings.January 9, 2012 at 4:23 pm #433133sorry: here goes: http://www.hotelmagazin-online.com/newsite
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
January 9, 2012 at 7:45 pm #433166<em>@hzc0mm 293724 wrote:</em><blockquote>sorry: here goes: http://www.hotelmagazin-online.com/newsite</blockquote>
Open /templates/ja_teline_iv/css/template.css
at line 1013, you should see the following:
#ja-topsl1 .ja-moduletable, #ja-botsl1 .ja-moduletable, #ja-topsl2 .ja-moduletable, #ja-botsl2 .ja-moduletable {
margin: 0px;}
Try modifying as follows:
#ja-topsl1 .ja-moduletable, #ja-botsl1 .ja-moduletable, #ja-topsl2 .ja-moduletable, #ja-botsl2 .ja-moduletable {
margin-right: 4px;}
Closer to what you want?
January 11, 2012 at 8:44 am #433368I took it from the other way round:
Managed to create a custom module class named “Adv”.
Inserted this in the template.css
div.ja-moduletableadv, div.moduletableadv {
background: #f7dbde !important;
border: 1px solid red !important;
margin-bottom: 4px;
margin-left: 2px;
}and inserted “adv” into the Module Class Suffix field in the module manager.
Problem: This only works with “col-mass-top” elements. I need this to work with “topsl” elements. **** … getting near but only just …
January 11, 2012 at 9:52 am #433376Ok, frontpage works, too:
Inserted this in template.css:
#ja-topsl1 .ja-box-right .moduletableadv {
background: #f7dbde !important;
border: 1px solid red !important;
margin-bottom: 4px;
margin-left: 2px;
}now to this frigging custom google module …
January 11, 2012 at 10:03 am #433378Works.
Inserted this into template.css:
#ja-topsl1 .moduletable_google {
margin:0 4px 0 0;
}and, of course, module class suffix “_google”
Hope it helps some1 with the same problem 😛
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
January 14, 2012 at 12:02 pm #433836It was, man, it was 🙂
AuthorPostsViewing 9 posts - 1 through 9 (of 9 total)This topic contains 9 replies, has 2 voices, and was last updated by hzc0mm 12 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Custom Module @ position "sl1-l" too wide
Viewing 9 posts - 1 through 9 (of 9 total)