-
AuthorPosts
-
Walt Kennedy Friend
Walt Kennedy
- Join date:
- September 2014
- Posts:
- 63
- Downloads:
- 159
- Uploads:
- 11
- Thanks:
- 17
- Thanked:
- 12 times in 9 posts
September 21, 2017 at 5:10 pm #1063384Site: https://mlcproperties.com
Example page – https://mlcproperties.com/index.php/en/about-us/what-we-do/regular-inspections
For each article in the categories "About Us/Why Hire Us?" and "About Us/What We Do? I want to place image within the article and have text wrap with padding. The problem is that the text is too close to the image and I cannot change the padding.
I have tried to add a caption class and have installed JCE editor in hopes to achieve padding, and have attempted several edits to the template.css file as suggested in your forum – all to no avail. Text is still running right to the edge of the images.
Please tell me how to get some space between text and image in articles.
ThanksPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
September 22, 2017 at 1:39 am #1063415Hi
Add below code in custom.css file to add some padding for image in contentarticle-content img { padding-left: 10px; }
Regards
Walt Kennedy FriendWalt Kennedy
- Join date:
- September 2014
- Posts:
- 63
- Downloads:
- 159
- Uploads:
- 11
- Thanks:
- 17
- Thanked:
- 12 times in 9 posts
September 22, 2017 at 3:33 pm #1063580I could not find an existing custom.css file, so I assume you meant that I should create it. I created custom.css file in /templates/ja_builder/css/, cleared cache and still I have no padding.
Please have another look at the page at https://mlcproperties.com/index.php/en/about-us/what-we-do/regular-inspections – notice that the text almost touches the left edge of the image.
I appreciate your help, but do not understand why a custom.css file should be needed to correct a problem like this; reasonable padding for text wrap on images should be included out of the box!
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
September 25, 2017 at 1:57 am #1063736Hi
When you edit the page. Click on settings > custom code > custom css block.Add this code in this block.article-content img { padding-left: 10px; }
publish page and check,
Regards
Walt Kennedy FriendWalt Kennedy
- Join date:
- September 2014
- Posts:
- 63
- Downloads:
- 159
- Uploads:
- 11
- Thanks:
- 17
- Thanked:
- 12 times in 9 posts
September 25, 2017 at 4:34 pm #1063980I could not follow your instructions as there is no "settings > custom code > custom css block" link available when I am editing the page.
However, I have found a cleaner solution; I installed JCE editor and edited the image parameters using that editor.Thanks, Walt
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
September 26, 2017 at 2:26 am #1064058Yes, that’s another way.
By adding the code you have not need to align image for each article page.Regards
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by Pankaj Sharma 7 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum