Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • damaskmedia Friend
    #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 Moderator
    #557382

    Where on your site is the module?

    damaskmedia Friend
    #557388

    It’s after the red bar with the donate now button

    TomC Moderator
    #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;
    }

    damaskmedia Friend
    #557396

    Because unfortunately this applies to other modules as well which I don’t want.

    TomC Moderator
    #557407

    <em>@damaskmedia 455929 wrote:</em><blockquote>Because unfortunately this applies to other modules as well which I don’t want.</blockquote>

    Did you follow all of the steps outlined – including within the module parameters itself?

    damaskmedia Friend
    #557417

    This 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.


    1. Screen-Shot-2014-12-02-at-17.48.03
    TomC Moderator
    #557423

    Doesn’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.

    damaskmedia Friend
    #557428

    ok 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


    1. Screen-Shot-2014-12-02-at-18.18.18
    damaskmedia Friend
    #557444

    Solved. 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 Moderator
    #557446

    CONGRATS !!! . . . More often than not, a little trial-and-error (and patience) can go a long way.

    All the best with your continued site development. 🙂

Viewing 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