Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
BrookeP

Remove padding inside code block

Question

Is there a way to remove padding inside of a code block?

I've inserted an image using a Code block and want the block to fit snug around the image itself, but I'm getting an extra padding on all sides.

Here is a link to the site for reference
Password: weddings

This is the code I currently tried to use:


.sqs-block-code .sqs-block-content {
padding-top: 0px;
margin: 0px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;
}  

Any help would be much appreciated!

Edited by bpurnell
Initial Revision

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0

@bpurnell Have you resolved yet? If not, please share site url to check.


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0

I'm having a similar problem - code block adds way too much padding below the content. Is there a CSS workaround? I tried the above and no luck

Share this post


Link to post
  • 0
7 hours ago, Mum-Folk said:

I'm having a similar problem - code block adds way too much padding below the content. Is there a CSS workaround? I tried the above and no luck

Try this CSS, it it doesn't work, please share link to your site to check

.code-block {
	padding: 0 !important;
}

 


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0
On 9/15/2020 at 3:48 PM, Nankas said:

Does anyone have the answer to this?? Please

I sent above code. If it doesn't work, can you share link to page where  you use Code Block? We can check easier.


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...