SPECIAL OFFER: Only $59 for access to everything in OSTraining for 1 year! You save $85!  1
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

How to reduce space around image

3 years 3 months ago #126110 by iqsafe
How to reduce space around image was created by iqsafe
I have this block
<a href="http://anwarbaghdadmed.com/sites/default/files/images/anwarprofile.pdf"><img alt="anwar baghdad profile" src="http://anwarbaghdadmed.com/sites/default/files/images/ourprofile.jpg" style="width: 97%; height: 80%; margin-top: 12px;  margin-left: 7px; border-radius: 8px"/>

on the this site

I tried to reduce the spacing around the image but I could not.... I tried many specific CSS and could not find the proper one. Can you please give me a hand. the image is here



Thanks a lot for your help

This message has an attachment image.
Please log in or register to see it.

Please Log in to join the conversation.

3 years 3 months ago #126113 by Nick
Replied by Nick on topic How to reduce space around image
Hi iqsafe,

Is there a paragraph tag around the image too? If so, removing that should take care of some of the spacing. You can also use the following spacing to reduce it more:
#block-block-6, #block-block-6 .content {
padding: 0px;
margin-top: 0px;
}

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
The following user(s) said Thank You: iqsafe

Please Log in to join the conversation.

3 years 3 months ago #126116 by Daniel Pickering
Replied by Daniel Pickering on topic How to reduce space around image
Hi iqsafe,

You need to reduce the margin properties :
margin-top: 12px;
margin-left: 7px;

you can use 0px or even a minus if you need to get really close. I'd also define the other margins just to make sure it doesn't adjust to the change automatically.

Thanks
Daniel
The following user(s) said Thank You: iqsafe

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!