You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
  Wednesday, 12 May 2021
  4 Replies
  1.4K Visits
Hello
How can we place a small image in a text ?
For example :
Have a look to our partner site (and the logo just after "site" with a link to the site of this partner).

The image must stay exactly at this place in the sentence, even when the browser sizes are changed.
more than a month ago
·
#107802
The best way to do this might be with css and a backround-image style for the logo. Something like this could be added to your template stylesheet:


.partner_logo{}

.partner_logo::after {
background: url('../../../images/logo.png') no-repeat center;
margin-left: 0.5em;
content: "";
display: inline-block;
height: 30px;
width: 100px;
}


Then when you create the link, select the "partner_logo" class from the Classes list in the Advanced tab.

The image will still wrap if the screen size is smaller than the text + logo.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#107803
When I create the link on what ? The logo already placed in the editor ?
I put this css in the custom.css, but it's not in the list of the field /Advanced/Classes.
more than a month ago
·
#107805
I've found an easier way to do this using Columns.

In the editor create 2 Columns using the following settings:

Columns: 2
Stack Width : Small
Gap Size : None
Layout : 2-1

Then, type in the text in the left column, and insert the logo in the right, eg:

https://cdn.joomlacontenteditor.net/tmp/107799-placing-an-image-in-a-text.gif

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#107808
I tried this solution, but almost impossible to have the text aligned on the left of the article, and the image close to the end of text. But it's OK for the current case.

It would be an idea of small improvement for the next version, because we have sometimes to use the logo of a brand or an icon in a sentence.
  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!