You can display an image on a side and some text on the other side, with the background color of your choice and an optionnal shadow inside the image. It's easy and there's 148 colors available for the background and the shadow.

The result is responsive. I recommend you to resize the window of your browser to look the different results.

You have 3 possibilities :

  • You want use all the width of your browser (if Wide layout) or all the width of your website (if Boxed layout). To obtain that, you must create a new module with the type Custom HTML. Choose the module position "image-text-top" or "image-text-bottom" and paste the HTML code inside.
  • You want use only the width of your website and display image and text inside a special area above or under your article. To obtain that, you must create a new module with the type Custom HTML. Choose the module position "top" or "bottom" and paste the HTML code inside.
  • You want display the image and the text in an article. To obtain that, edit your article and paste the HTML code inside.

Important : for these 3 possibilities, the HTML code is the same but the result is different.

In a module, the width of each part is 50% and there is a border above and under the title H2 (only for "image-text-top" and "image-text-bottom"). Under 980 pixels, the text is under the image and the border disappear. The min height is the same in an article (read below). In Template manager, you can adjust the font for this part.

If you display the code in an article, this is the result :

  • Under 980 pixels, the image and the text are inline.
  • Between 980 and 1100 pixels, image and text are on a side. And the width of each of them is 50% with a min heigth = 50% of the viewport.
  • Between 1100 and 1300 pixels. Same thing with a width = 58% for the image and a min-height = 450pixels
  • Above 1300 pixels. Same thing with a width = 66.66% for the image and a min-height = 400pixels

Procedure

Edit your module or your article and disable the wysiwyg editor. Then, paste the HTML code and change the text and the path of your image.

Important : In each example, I write the name of each image (mountain or bridge). This text is important because if there's nothing, the wysiwyg editor can't save this part. Of course, you can replace this text by the word of your choice.

Note : you can paste several times the code if you want display several images.

Note 2 : Shadow around the images : you can add an internal shadow with the code "shadow-image-COLOR" (replace color by the your choice). See examples below.

Image on the left side with a brown background

mountain

Responsive design

A single design for all devices : mobiles, laptop, desktop ... This design should automatically adjust with your screen resolution.

Make a test : Resize your browser !

Read More





<div class="image-text-left color-brown">
<a class="image-text-image" style="background-image:url(images/YOUR-IMAGE.jpg);"  href="URL OF THE LINK" >mountain</a>
<div class="image-text-column">

<div>
<h2>Your Title</h2>

<p>Your text here</p>

<p>
<a  href="URL OF THE LINK" >Read More</a>
</p>

</div>
</div>
</div>

Image on the left side with a brown background and black shadow inside the image

mountain

Responsive design

A single design for all devices : mobiles, laptop, desktop ... This design should automatically adjust with your screen resolution.

Make a test : Resize your browser !

Read More





<div class="image-text-left color-brown shadow-image-black">
<a class="image-text-image" style="background-image:url(images/YOUR-IMAGE.jpg);"  href="URL OF THE LINK" >mountain</a>
<div class="image-text-column">

<div>
<h2>Your Title</h2>

<p>Your text here</p>

<p>
<a  href="URL OF THE LINK" >Read More</a>
</p>

</div>
</div>
</div>

Image on the right side with a ligthtslategrey background

bridge

Typography

Large choice of typography and layout with Bootstrap, Font awesome, multi-columns, images effects, additionnal menu, list, testimonials, ....
the possibilities are impressive !

Read More





<div class="image-text-right color-lightslategrey">
<a class="image-text-image" style="background-image:url(images/YOUR-IMAGE.jpg);"  href="URL OF THE LINK" >bridge</a>
<div class="image-text-column">

<div>
<h2>Your Title</h2>

<p>Your text here</p>

<p>
<a  href="URL OF THE LINK" >Read More</a>
</p>

</div>
</div>
</div>

Image on the right side with a ligthtslategrey background and a ligthtslategrey shadow around the image

bridge

Typography

Large choice of typography and layout with Bootstrap, Font awesome, multi-columns, images effects, additionnal menu, list, testimonials, ....
the possibilities are impressive !

Read More





<div class="image-text-right color-lightslategrey shadow-image-lightslategrey">
<a class="image-text-image" style="background-image:url(images/YOUR-IMAGE.jpg);"  href="URL OF THE LINK" >bridge</a>
<div class="image-text-column">

<div>
<h2>Your Title</h2>

<p>Your text here</p>

<p>
<a  href="URL OF THE LINK" >Read More</a>
</p>

</div>
</div>
</div>

Image on the left side without link : replace "a" by "span"

mountain

Responsive design

A single design for all devices : mobiles, laptop, desktop ... This design should automatically adjust with your screen resolution.

Make a test : Resize your browser !





<div class="image-text-left color-brown">
<span class="image-text-image" style="background-image:url(images/YOUR-IMAGE.jpg);"  >mountain</span>
<div class="image-text-column">

<div>
<h2>Your Title</h2>

<p>Your text here</p>

</div>
</div>
</div>

148 colors available for the background and the shadow. Add the name of your color in the code.

maroon - #800000
brown - #a52a2a
rosybrown - #bc8f8f
sienna - #a0522d
saddlebrown - #8b4513
chocolate - #d2691e
sandybrown - #f4a460
peru - #cd853f
bisque - #ffe4c4
burlywood - #deb887
tan - #d2b48c
navajowhite - #ffdead
blanchedalmond - #ffebcd
wheat - #f5deb3
darkgoldenrod - #b8860b
goldenrod - #daa520
cornsilk - #fff8dc
whitesmoke - #f5f5f5
white - #ffffff
snow - #fffafa
mistyrose - #ffe4e1
seashell - #fff5ee
linen - #faf0e6
antiquewhite - #faebd7
oldlace - #fdf5e6
floralwhite - #fffaf0
beige - #f5f5dc
ivory - #fffff0
honeydew - #f0fff0
mintcream - #f5fffa
azure - #f0ffff
aliceblue - #f0f8ff
ghostwhite - #f8f8ff
lavenderblush - #fff0f5
lightgray - #f2f2f2
slategrey - #708090
lightslategrey - #778899
grey - #808080
dimgrey - #696969
darkslategrey - #2f4f4f
darkgrey - #444444
black - #000000
silver - #c0c0c0
lightgrey - #d3d3d3
gainsboro - #dcdcdc
tomato - #ff6347
orangered - #ff4500
coral - #ff7f50
lightsalmon - #ffa07a
darkorange - #ff8c00
orange - #ffa500
mediumvioletred - #c71585
deeppink - #ff1493
hotpink - #ff69b4
palevioletred - #db7093
pink - #ffc0cb
lightpink - #ffb6c1
rebeccapurple - #663399
magenta - #ff00ff
lavender - #e6e6fa
darkslateblue - #493d8b
slateblue - #6a5acd
mediumslateblue - #7b68ee
mediumpurple - #9370db
blueviolet - #8a2be2
indigo - #4b0082
darkorchid - #9932cc
darkviolet - #9400d3
mediumorchid - #ba55d3
purple - #800080
darkmagenta - #8b008b
fuchsia - #ff00ff
violet - #ee82ee
plum - #dda0dd
thistle - #d8bfd8
orchid - #da70d6
deepskyblue - #00bfff
blue - #0000ff
cyan - #00ffff
aquamarine - #7fffd4
turquoise - #40e0d0
mediumturquoise - #48d1cc
aqua - #00ffff
paleturquoise - #afeeee
lightcyan - #e0ffff
darkturquoise - #00ced1
cadetblue - #5f9ea0
powderblue - #b0e0e6
lightblue - #add8e6
skyblue - #87ceeb
lightskyblue - #87cefa
steelblue - #4682b4
dodgerblue - #1e90ff
lightsteelblue - #b0c4de
cornflowerblue - #6495ed
royalblue - #4169e1
midnightblue - #191970
navy - #000080
darkblue - #00008b
mediumblue - #0000cd
mediumslateblue - #7b68ee
darkred - #8b0000
firebrick - #b22222
red - #ff0000
indianred - #cd5c5c
lightcoral - #f08080
salmon - #fa8072
darksalmon - #e9967a
lightsalmon - #ffa07a
crimson - #dc143c
ocean - #39947f
olive - #808000
olivedrab - #6b8e23
yellowgreen - #9ACD32
darkolivegreen - #556b2f
greenyellow - #adff2f
chartreuse - #7fff00
lawngreen - #7cfc00
darkgreen - #006400
green - #008000
forestgreen - #228b22
lime - #00ff00
limegreen - #32cd32
lightgreen - #90ee90
palegreen - #98fb98
darkseagreen - #8fbc8f
seagreen - #2e8b57
mediumseagreen - #3cb371
springgreen - #00ff7f
mediumspringgreen - #00fa9a
mediumaquamarine - #66cdaa
lightseagreen - #20b2aa
teal - #008080
darkcyan - #008b8b
cyan - #00ffff
lightcyan - #e0ffff
peachpuff - #ffdab9
papayawhip - #ffefd5
moccasin - #ffe4b5
goldenrod - #daa520
gold - #ffd700
khaki - #f0e68c
lemonchiffon - #fffacd
palegoldenrod - #eee8aa
darkkhaki - #bdb76b
yellow - #ffff00
lightgoldenrodyellow - #fafad2
lightyellow - #ffffe0