Shape 5

Joomla Templates => User Choice - August 2007 - Club => : labra July 09, 2009, 03:51:26 AM



: padding images in articles
: labra July 09, 2009, 03:51:26 AM
Dear Mike -

I'd like to add padding to the images in the articles. The suggested solution -

img {padding:10px}

- is not acceptable, as it affects other images as well. How can I add padding ONLY to the images that are included in the articles, without changing the padding of, let's say, template images?

Thanx in advance -

Lev


: Re: padding images in articles
: mikek July 09, 2009, 08:01:43 AM
Hello, please post a url to where the images are located.


: Re: padding images in articles
: labra July 09, 2009, 08:02:59 AM
http://micro5.mscc.huji.ac.il/~occupther/new/index.php?option=com_content&view=article&id=10:introduction&catid=11:our-school&Itemid=15 for example


: Re: padding images in articles
: mikek July 10, 2009, 06:59:29 AM
Hello, if you add the following to the bottom of your template_css.css file it should work:

.contentpaneopen img {
margin-left:10px;
margin-right:10px;
margin-bottom:10px;
margin-top:10px;
}


: Re: padding images in articles
: labra July 10, 2009, 07:11:14 AM
Thanx Mike -

I'll try it out and report.

L


: Re: padding images in articles
: krispin July 22, 2009, 10:35:48 AM
I was allexcited about this solution and it worked like a hell damner. I had the perfect spacing around my images for my articles but it buggered up the rest of the website.

I was using CSS  style tags in my html originally and it worked for getting padding around my article images. then I got hacked and had to reinstall and it has not worked since.