Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, I am trying to have an image in the left side block but because of the padding in style.css the image is not being fit perfectly in the block. I want to change the style of that particular block only. I have found out the delta id of that block, but just dont know how to change the style in local.css for that particular block. please find attached a snapshot of the block.Thanks
Comment | File | Size | Author |
---|---|---|---|
#2 | block-image.jpg | 20.25 KB | pathaksumit |
block-image.jpg | 20.75 KB | pathaksumit |
Comments
Comment #1
danpros CreditAttribution: danpros commentedHi,
Use Firebug to find the ids of your block or simply see the sources via right clicking, the code should like this
Dan
Comment #2
pathaksumit CreditAttribution: pathaksumit commentedThanks alot Dan, i implemented the code local.css and got rid of the right, left and top padding. but, I am still getting some padding at the bottom of the image. Please see the screenshot attached and below the code i implemented.
#block-block-5 .block-content-inner {
margin: 0;
padding: 0px 0px 0px 0px;
}
Thanks
Comment #3
danpros CreditAttribution: danpros commentedHi,
Please use Firebug to know what value is that.
Dan