Insert inline image or graphics in text in Elementor and CSS

In this post, we will cover how to insert an inline image or graphics using Elementor and some simple CSS.

Check this video on how to create just that or continue reading below!

Download Elementor Pro here.

*This post may contain affiliate links. If you click on a link and make a purchase, I will receive a commission from the sale, with no extra cost to you. That way you are supporting my blog and allowing me to keep making videos and posts like this. I only promote products that I use, have experience with and support, such as Elementor Pro.

Let’s say that you want to add an emoji, logo or any other image inside your text or paragraph. Here are the steps on how to achieve that:

Insert your text using a text editor widget in Elementor

First, use a text editor widget and insert your text. Switch to the ‘Text’ tab of the widget and use the CSS to insert and specify the source of an image. This image can be hosted anywhere on your website or using any other online link. You now need to style this image and assign the correct size, position and properties.

Style your linked image in the ‘text’ tab

Type in ‘style’ where you can add all the properties: the width, ‘position: relative’ and specify this position using the ‘top’ property for example to align the image with the text properly. Then use some margins on the left and right side if needed. Play with these values to give it the correct parameters and make it pretty.

The final code could look something like this:

I want my image <img src="https://templio.net/wp-content/uploads/2021/10/contact-01.png" style="width: 20px; position: relative; top: 4px;"> to appear in this text.

Download Elementor Pro here.

*This post may contain affiliate links. If you click on a link and make a purchase, I will receive a commission from the sale, with no extra cost to you. That way you are supporting my blog and allowing me to keep making videos and posts like this. I only promote products that I use, have experience with and support, such as Elementor Pro.

*This post may contain affiliate links. If you click on a link and make a purchase, I will receive a commission from the sale, with no extra cost to you. That way you are supporting my blog and allowing me to keep making videos and posts like this. I only promote products that I use, have experience with and support, such as Elementor Pro.

Share this post:

Leave a Comment

Related posts:

General instructions:

  1. Open the exercise in your browser and read the task and the content on the left side of the screen. 
  2. You will be editing the content on the right side of the screen.
  3. In order to do that, right click on the exercise page that you opened and go to ‘Inspect’.
  4. Go to ‘Sources’ in the top bar and if you cannot see an empty CSS sheet where you can type the code, press Ctrl + P and start typing ‘styl’ in the search bar. Then press enter to open the CSS sheet.
  5. Follow the notes on the left and start typing your CSS code to see the changes online!
  6. Important! Do not refresh the page while you are editing the code, as these changes are in preview mode only and you can see them immediately, as soon as you write a line of functioning code.
  7. Use the custom classes in the notes on the left side of the screen, as well as ‘Elements’ on the top bar of the ‘Inspect’ to target and style the classes and elements. For example, you can enable the small icon on the top left of the ‘Inspect’ window (‘Select an element in the page to inspect it’) to find the default class name of the element you want to edit, while you are in the ‘Elements’ tab.

Tips:

  1. If the code is not showing any changes, try adding the !important tag at the end of the line before closing it (before the “;” symbol) and see if it works then.
  2. Don’t forget there are usually more ways to achieve the same result. Be creative!
  3. If you get stuck, write your email address in the form on the left side of the screen and you will get the solution (CSS code) in your email.

Sources:

  1. You can find a lot of tutorials on my youtube channel. 
  2. Watch the tutorial on how to solve these exercises here.

Please check your email and stay tuned for updates on the course.

We will notify you shortly when it’s available for presale.