Tagged: x
-
AuthorPosts
-
August 1, 2016 at 2:53 pm #1112557
Steve CParticipantI am building a test page and would like to remove the top and bottom spacing of a content band.
I would like to insert an image into the content band without having any top and bottom padding, margin shown. This would mean that the image (or other content) would be flush with the top and bottom of the content band with no space shown.
Another thing I was trying to figure out is how to centre an image within the content band when using the insert image feature, there only seems to be an option for wrapping left or right.
I am using visual composer to build the page.
I have created a draft page which you can preview here: http://eyetooth-art.co.uk/?page_id=7221
I will send logins in a separate reply so you can see the setup if necessary.
Please let me know if you need anything more from me.
August 1, 2016 at 2:54 pm #1112559
Steve CParticipantThis reply has been marked as private.August 1, 2016 at 3:50 pm #1112653
Nabeel AModeratorHi Steve,
Thanks for writing in! Please add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
.x-content-band { padding: 0 !important; margin: 0 !important; }To center an image, you can give the following inline styling to the content band:
text-align: center;This will center all elements within the content band.
Hope this helps!
August 2, 2016 at 8:16 am #1113723
Steve CParticipantThanks, I had to edit some css for the x-img style, to remove the bottom border, but that seems to have worked.
August 2, 2016 at 8:47 am #1113771
JoaoModeratorGlad to hear it,
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1112557 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
