-
AuthorPosts
-
September 29, 2015 at 11:08 am #510668
Hi,
Is there a way to reduce the top and bottom padding on a text block please?
Example is here:
http://www.mammothdb.com/cloud/The text block of “What about Spark and other “big data” tools? Run them directly on MammothDB, or integrate them together!” has a lot of padding above and below, and I’d like to reduce it by about 1/2.
Is there some CSS code i can enter to change the px padding above and below?Thanks!
SteveSeptember 29, 2015 at 3:44 pm #510800Hey sgkeil!
Add this to a codeblock element in the page.
<style type = "text/css"> #after_submenu p { margin: 0px !important; } </style>Cheers!
ElliottSeptember 29, 2015 at 4:02 pm #510813Hmm, I tried – i pasted it into the codeblock element already on the page, flushed browser cache and tried a new browser as well, and no change?
September 29, 2015 at 4:06 pm #510819Hi!
It’s working fine. If your wanting to reduce it further then add this as well.
#after_submenu .template-page { padding: 20px !important; }Best regards,
ElliottSeptember 29, 2015 at 4:41 pm #510842Ah! Thanks Elliott – that did make a change :)
One more question if you don’t mind – right above that text block is a grid-row, and i’ve set it to have “no borders”, yet it always displays a bottom 1px grey line border. I’ve noticed that throughout my pages, and have searched the forums, but don’t see a) why it shows up when i choose no borders, and b) how to get rid of it!
Thanks again,
SteveSeptember 29, 2015 at 5:26 pm #510870Hi!
It’s from the next section. Add this to your custom CSS.
#after_submenu { border-top: 0 none !important; }Regards,
ElliottSeptember 29, 2015 at 6:07 pm #510901That worked a charm, thanks so much!
September 30, 2015 at 6:48 am #511131 -
AuthorPosts
- The topic ‘Text block padding’ is closed to new replies.
