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

3 answers to this question

Recommended Posts

  • 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  Armadillo - Free portfolio template

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