Forum Support

Shape 5
April 14, 2021, 08:18:00 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: padding images in articles  (Read 658 times)
labra
Jr. Member
**
Offline Offline

Posts: 53



« on: 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
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: July 09, 2009, 08:01:43 AM »

Hello, please post a url to where the images are located.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
labra
Jr. Member
**
Offline Offline

Posts: 53



« Reply #2 on: 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
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #3 on: 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;
}
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
labra
Jr. Member
**
Offline Offline

Posts: 53



« Reply #4 on: July 10, 2009, 07:11:14 AM »

Thanx Mike -

I'll try it out and report.

L
Logged
krispin
Jr. Member
**
Offline Offline

Posts: 45



« Reply #5 on: 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.