-
AuthorPosts
-
timtecsa Friend
timtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
April 4, 2014 at 12:49 pm #196454The first 2 images in an article do not automatically get assigned suitable margins but the rest do. If class=”caption” is added to the first 2 images then margins are assigned. How can I get margins assigned automatically to all images in an article regardless of caption settings?
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
April 4, 2014 at 2:19 pm #529541you need to just add align=”right” or align=”left” in the first two image tag like below
First Image
<img width="450" height="300" align="right" style="float: right;" src="/tecsa.com/joomla2/images/stories/sgi14/sgi_l0019.jpg" alt="sgi l0019">
Second image:
<img align="left" style="float: left;" src="/tecsa.com/joomla2/images/stories/sgi14/sgi_l0002.jpg" alt="sgi1">
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
April 4, 2014 at 3:08 pm #529547Hi Chavan,
In JCE editor the Align right is set per below. How can one get it to give the html code you suggest? Our Editors can’t even spell html let alone know what it stands for so WYSIWYG is only way to go 🙂
BTW the image URL should start with “images/stories etc. Otherwise the image doesn’t appear in this view: http://217.199.187.59/tecsa.com/joomla2/index.php/en/editorial/large-format nor in the JA News Pro module.
I have now added the align=”right” manually in order to get the margins on the first 2 images but cannot get JCE to do same.
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
April 6, 2014 at 6:48 pm #529673I just found out that the Image button below the backend editor window in my Joomla 1.5 site actually inserts an img align=left/right tag rather than a float tag. Where can I find the same or an equivalent button for my Joomla 3x site?
UPDATE: I solved this lack of a JCE align button problem by adding some custom CSS as follows.
.pull-right {
margin-top: 5px;
margin-bottom: 5px;
margin-left: 15px;
}
.pull-left {
margin-top: 5px;
margin-bottom: 5px;
margin-right: 15px;
}
This means that the J3 core Image button plugin which uses the pull class can be used to get margins on article images without having to manually insert the align code.
However, how can I make the caption stuff generated by this image button plugin behave as required? i.e. to make captions like this which I do with class=caption via JCE.
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 2 voices, and was last updated by timtecsa 10 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum