-
AuthorPosts
-
December 2, 2014 at 4:29 pm #203261
I have a module and i have given it the following prefix “blogsection”
now this module has the following style
.sections-wrap .section, .sections-wrap .t3-module {
padding-top: 104px;
padding-bottom: 104px;
}now what i am trying to do is change the padding of the module with the prefix blogsection to 10px
I have put the custom css as follows:
blogsection.sections-wrap .section, .sections-wrap .t3-module {
padding-top: 10px;
padding-bottom: 10px;
}but this doesnt work
any idea what i am doing wrong?
the website url is:
http://creativeharmony.co.uk/CC/TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 2, 2014 at 4:57 pm #557382Where on your site is the module?
December 2, 2014 at 5:02 pm #557388It’s after the red bar with the donate now button
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 2, 2014 at 5:08 pm #557392<em>@damaskmedia 455921 wrote:</em><blockquote>It’s after the red bar with the donate now button</blockquote>
Just out of curiosity . . . if what you’re wanting to do is modify the padding for that section, why would you create a new module suffix? Why not simply modify the existing CSS of . . .
.sections-wrap .section, .sections-wrap .t3-module {
padding-top: 104px;
padding-bottom: 104px;
}December 2, 2014 at 5:14 pm #557396Because unfortunately this applies to other modules as well which I don’t want.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 2, 2014 at 5:27 pm #557407December 2, 2014 at 5:51 pm #557417This is what I have done
Then then I used this code:
.blogsection.sections-wrap .section, .sections-wrap .t3-module {
padding-top: 10px !important;
padding-bottom: 20px !important;
}but this applies the padding to all the modules.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 2, 2014 at 6:11 pm #557423Doesn’t appear that the class suffix you entered into your module matches the suffix in the CSS rule above
– so may be a reason why it’s not taking.December 2, 2014 at 6:25 pm #557428ok I have changed the name to match the class suffix ( I removed the section number) and also added the template no-padding suffix
However, I have noticed that the extra spacing may not be coming from the module itself. it seems to be coming from
<div class=”section inview” id=”section-657″><div class=”section-inner”><div class=”section-ct”>
please see screen shot attached
thx
December 2, 2014 at 10:47 pm #557444Solved. Basically the News Spotlight module was still published even though it had no content so hence the big space
I have dialled and now its gone!
🙂
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 2, 2014 at 10:51 pm #557446CONGRATS !!! . . . More often than not, a little trial-and-error (and patience) can go a long way.
All the best with your continued site development. 🙂
1 user says Thank You to TomC for this useful post
AuthorPostsViewing 11 posts - 1 through 11 (of 11 total)This topic contains 11 replies, has 2 voices, and was last updated by TomC 9 years, 12 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum