0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

SOLVED Custom HTML Margins

  • SOLVED Custom HTML Margins

    Posted 13 years 6 months ago
    • I've found the CSS for RT-block but it's a global CSS on the margins of all "blocks" on a given template

      Can someone tell me how to put different margin conditions exclusively on Custom HTML modules?

      aka, they currently have a 15px padding/margin and if I set this to 0px it reduces the margins throughout the entire template, how can I set the margins on Custom HTML modules to 0?
      Thanks
      .rt-block {
      padding: 15px;
      margin-bottom: 10px;
      position: relative;}
       
    • Last Edit: 13 years 6 months ago by Adrian Averhoff.
    • David Goode's Avatar
    • David Goode
    • Preeminent Rocketeer
    • Posts: 17058
    • Thanks: 890
    • Web Designer and Host

    Re: SOLVED Custom HTML Margins

    Posted 13 years 6 months ago
    • Hi there,

      If you simply add a suffix to the modules where you want zero padding then you can control the .rt-block css.

      For example - in a module set the suffix as ]b]nopadding[/b]. Now at the bottom of template.css add the following code...
      .nopadding .rt-block {
           padding:0;
      }
      So all modules with a suffix of nopadding will have the rt-block padding set to zero.

      If this resolves your problem then please edit your first post in this thread by adding SOLVED at the start of the title and then select the green tick icon. This lets the moderators know that it can be moved to the solved section.

      Thanks for your cooperation :)

    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information
  • Re: SOLVED Custom HTML Margins

    Posted 13 years 6 months ago
    • Amazing, thank you so much!

Time to create page: 0.074 seconds