How to position image relative to text?
I'm trying to create an effect where I have centered text, but an image on either side of the text, to look like this
| |
| text[image] |
| [image]text |
| |
I want the text to be centered relative to the div, but I want to image to sit on either side of the text. How can I achieve this? Here is my html and css now:
<div class="text-container">
<h1 class="text">text1</h1><span class="image"><img src="image.svg"></span>
</div>
text-container {
text-align: center;
}
text {
display: inline;
}
The issue with this is that the image
also gets treated as an inline element, so the whole structure, instead of just the text, is centered. How can I fix this?
html css position
add a comment |
I'm trying to create an effect where I have centered text, but an image on either side of the text, to look like this
| |
| text[image] |
| [image]text |
| |
I want the text to be centered relative to the div, but I want to image to sit on either side of the text. How can I achieve this? Here is my html and css now:
<div class="text-container">
<h1 class="text">text1</h1><span class="image"><img src="image.svg"></span>
</div>
text-container {
text-align: center;
}
text {
display: inline;
}
The issue with this is that the image
also gets treated as an inline element, so the whole structure, instead of just the text, is centered. How can I fix this?
html css position
Have you considered floating the image left or right?
– Robby Cornelissen
Nov 12 at 5:52
I've tried, but then my text is no longer aligned center for some reason.
– hoolakoola
Nov 12 at 5:56
add a comment |
I'm trying to create an effect where I have centered text, but an image on either side of the text, to look like this
| |
| text[image] |
| [image]text |
| |
I want the text to be centered relative to the div, but I want to image to sit on either side of the text. How can I achieve this? Here is my html and css now:
<div class="text-container">
<h1 class="text">text1</h1><span class="image"><img src="image.svg"></span>
</div>
text-container {
text-align: center;
}
text {
display: inline;
}
The issue with this is that the image
also gets treated as an inline element, so the whole structure, instead of just the text, is centered. How can I fix this?
html css position
I'm trying to create an effect where I have centered text, but an image on either side of the text, to look like this
| |
| text[image] |
| [image]text |
| |
I want the text to be centered relative to the div, but I want to image to sit on either side of the text. How can I achieve this? Here is my html and css now:
<div class="text-container">
<h1 class="text">text1</h1><span class="image"><img src="image.svg"></span>
</div>
text-container {
text-align: center;
}
text {
display: inline;
}
The issue with this is that the image
also gets treated as an inline element, so the whole structure, instead of just the text, is centered. How can I fix this?
html css position
html css position
asked Nov 12 at 5:50
hoolakoola
187113
187113
Have you considered floating the image left or right?
– Robby Cornelissen
Nov 12 at 5:52
I've tried, but then my text is no longer aligned center for some reason.
– hoolakoola
Nov 12 at 5:56
add a comment |
Have you considered floating the image left or right?
– Robby Cornelissen
Nov 12 at 5:52
I've tried, but then my text is no longer aligned center for some reason.
– hoolakoola
Nov 12 at 5:56
Have you considered floating the image left or right?
– Robby Cornelissen
Nov 12 at 5:52
Have you considered floating the image left or right?
– Robby Cornelissen
Nov 12 at 5:52
I've tried, but then my text is no longer aligned center for some reason.
– hoolakoola
Nov 12 at 5:56
I've tried, but then my text is no longer aligned center for some reason.
– hoolakoola
Nov 12 at 5:56
add a comment |
2 Answers
2
active
oldest
votes
Use display:flex
and set padding-right
if the img
is before text
.text-container {
display: flex;
align-items: center;
justify-content: center;
}
img{
width:50px;
height:50px;
}
.p-right{
padding-right: 110px;
}
<div class="text-container">
<div>
<h1 >text1</h1>
</div>
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
</div>
<div class="text-container p-right">
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
<div>
<h1 >text1</h1>
</div>
</div>
<div class="text-container">
<div>
<h1 >text1</h1>
</div>
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
</div>
<div class="text-container p-right">
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
<div>
<h1 >text1</h1>
</div>
</div>
that what you mean?
– לבני מלכה
Nov 12 at 6:04
add a comment |
hi here is the code for your image next to text:
HTML:
<link
href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css"
rel="stylesheet" id="bootstrap-css">
<script
src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js">
</script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h2>Some Title</h2>
</div>
<div class="block">
<div class="row">
<div class="span4">
<img class="img-left" src="http://assets.barcroftmedia.com.s3-website-eu-west-1.amazonaws.com/assets/images/recent-images-11.jpg"/>
<div class="content-heading"><h3>Experience   </h3></div>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem
malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
</div>
</div>
<br/>
<div class="row">
<div class="span4">
<img class="img-right" src="http://www.prelovac.com/vladimir/wp-
content/uploads/2008/03/example.jpg"/>
<div class="content-heading"><h3>Experience   </h3></div>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
</div>
</div>
</div>
</div>
CSS:
.span4 img {
margin-right: 10px;
}
.span4 .img-left {
float: left;
}
.span4 .img-right {
float: right;
}
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53256522%2fhow-to-position-image-relative-to-text%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Use display:flex
and set padding-right
if the img
is before text
.text-container {
display: flex;
align-items: center;
justify-content: center;
}
img{
width:50px;
height:50px;
}
.p-right{
padding-right: 110px;
}
<div class="text-container">
<div>
<h1 >text1</h1>
</div>
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
</div>
<div class="text-container p-right">
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
<div>
<h1 >text1</h1>
</div>
</div>
<div class="text-container">
<div>
<h1 >text1</h1>
</div>
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
</div>
<div class="text-container p-right">
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
<div>
<h1 >text1</h1>
</div>
</div>
that what you mean?
– לבני מלכה
Nov 12 at 6:04
add a comment |
Use display:flex
and set padding-right
if the img
is before text
.text-container {
display: flex;
align-items: center;
justify-content: center;
}
img{
width:50px;
height:50px;
}
.p-right{
padding-right: 110px;
}
<div class="text-container">
<div>
<h1 >text1</h1>
</div>
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
</div>
<div class="text-container p-right">
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
<div>
<h1 >text1</h1>
</div>
</div>
<div class="text-container">
<div>
<h1 >text1</h1>
</div>
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
</div>
<div class="text-container p-right">
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
<div>
<h1 >text1</h1>
</div>
</div>
that what you mean?
– לבני מלכה
Nov 12 at 6:04
add a comment |
Use display:flex
and set padding-right
if the img
is before text
.text-container {
display: flex;
align-items: center;
justify-content: center;
}
img{
width:50px;
height:50px;
}
.p-right{
padding-right: 110px;
}
<div class="text-container">
<div>
<h1 >text1</h1>
</div>
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
</div>
<div class="text-container p-right">
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
<div>
<h1 >text1</h1>
</div>
</div>
<div class="text-container">
<div>
<h1 >text1</h1>
</div>
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
</div>
<div class="text-container p-right">
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
<div>
<h1 >text1</h1>
</div>
</div>
Use display:flex
and set padding-right
if the img
is before text
.text-container {
display: flex;
align-items: center;
justify-content: center;
}
img{
width:50px;
height:50px;
}
.p-right{
padding-right: 110px;
}
<div class="text-container">
<div>
<h1 >text1</h1>
</div>
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
</div>
<div class="text-container p-right">
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
<div>
<h1 >text1</h1>
</div>
</div>
<div class="text-container">
<div>
<h1 >text1</h1>
</div>
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
</div>
<div class="text-container p-right">
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
<div>
<h1 >text1</h1>
</div>
</div>
.text-container {
display: flex;
align-items: center;
justify-content: center;
}
img{
width:50px;
height:50px;
}
.p-right{
padding-right: 110px;
}
<div class="text-container">
<div>
<h1 >text1</h1>
</div>
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
</div>
<div class="text-container p-right">
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
<div>
<h1 >text1</h1>
</div>
</div>
<div class="text-container">
<div>
<h1 >text1</h1>
</div>
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
</div>
<div class="text-container p-right">
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
<div>
<h1 >text1</h1>
</div>
</div>
.text-container {
display: flex;
align-items: center;
justify-content: center;
}
img{
width:50px;
height:50px;
}
.p-right{
padding-right: 110px;
}
<div class="text-container">
<div>
<h1 >text1</h1>
</div>
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
</div>
<div class="text-container p-right">
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
<div>
<h1 >text1</h1>
</div>
</div>
<div class="text-container">
<div>
<h1 >text1</h1>
</div>
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
</div>
<div class="text-container p-right">
<div>
<img src="https://i.stack.imgur.com/3mG2d.jpg" />
</div>
<div>
<h1 >text1</h1>
</div>
</div>
answered Nov 12 at 6:04
לבני מלכה
9,2061626
9,2061626
that what you mean?
– לבני מלכה
Nov 12 at 6:04
add a comment |
that what you mean?
– לבני מלכה
Nov 12 at 6:04
that what you mean?
– לבני מלכה
Nov 12 at 6:04
that what you mean?
– לבני מלכה
Nov 12 at 6:04
add a comment |
hi here is the code for your image next to text:
HTML:
<link
href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css"
rel="stylesheet" id="bootstrap-css">
<script
src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js">
</script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h2>Some Title</h2>
</div>
<div class="block">
<div class="row">
<div class="span4">
<img class="img-left" src="http://assets.barcroftmedia.com.s3-website-eu-west-1.amazonaws.com/assets/images/recent-images-11.jpg"/>
<div class="content-heading"><h3>Experience   </h3></div>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem
malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
</div>
</div>
<br/>
<div class="row">
<div class="span4">
<img class="img-right" src="http://www.prelovac.com/vladimir/wp-
content/uploads/2008/03/example.jpg"/>
<div class="content-heading"><h3>Experience   </h3></div>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
</div>
</div>
</div>
</div>
CSS:
.span4 img {
margin-right: 10px;
}
.span4 .img-left {
float: left;
}
.span4 .img-right {
float: right;
}
add a comment |
hi here is the code for your image next to text:
HTML:
<link
href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css"
rel="stylesheet" id="bootstrap-css">
<script
src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js">
</script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h2>Some Title</h2>
</div>
<div class="block">
<div class="row">
<div class="span4">
<img class="img-left" src="http://assets.barcroftmedia.com.s3-website-eu-west-1.amazonaws.com/assets/images/recent-images-11.jpg"/>
<div class="content-heading"><h3>Experience   </h3></div>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem
malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
</div>
</div>
<br/>
<div class="row">
<div class="span4">
<img class="img-right" src="http://www.prelovac.com/vladimir/wp-
content/uploads/2008/03/example.jpg"/>
<div class="content-heading"><h3>Experience   </h3></div>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
</div>
</div>
</div>
</div>
CSS:
.span4 img {
margin-right: 10px;
}
.span4 .img-left {
float: left;
}
.span4 .img-right {
float: right;
}
add a comment |
hi here is the code for your image next to text:
HTML:
<link
href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css"
rel="stylesheet" id="bootstrap-css">
<script
src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js">
</script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h2>Some Title</h2>
</div>
<div class="block">
<div class="row">
<div class="span4">
<img class="img-left" src="http://assets.barcroftmedia.com.s3-website-eu-west-1.amazonaws.com/assets/images/recent-images-11.jpg"/>
<div class="content-heading"><h3>Experience   </h3></div>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem
malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
</div>
</div>
<br/>
<div class="row">
<div class="span4">
<img class="img-right" src="http://www.prelovac.com/vladimir/wp-
content/uploads/2008/03/example.jpg"/>
<div class="content-heading"><h3>Experience   </h3></div>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
</div>
</div>
</div>
</div>
CSS:
.span4 img {
margin-right: 10px;
}
.span4 .img-left {
float: left;
}
.span4 .img-right {
float: right;
}
hi here is the code for your image next to text:
HTML:
<link
href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css"
rel="stylesheet" id="bootstrap-css">
<script
src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js">
</script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h2>Some Title</h2>
</div>
<div class="block">
<div class="row">
<div class="span4">
<img class="img-left" src="http://assets.barcroftmedia.com.s3-website-eu-west-1.amazonaws.com/assets/images/recent-images-11.jpg"/>
<div class="content-heading"><h3>Experience   </h3></div>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem
malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
</div>
</div>
<br/>
<div class="row">
<div class="span4">
<img class="img-right" src="http://www.prelovac.com/vladimir/wp-
content/uploads/2008/03/example.jpg"/>
<div class="content-heading"><h3>Experience   </h3></div>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
</div>
</div>
</div>
</div>
CSS:
.span4 img {
margin-right: 10px;
}
.span4 .img-left {
float: left;
}
.span4 .img-right {
float: right;
}
edited Nov 12 at 6:18
answered Nov 12 at 6:02
Iswarya Swaminadhan
8511
8511
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53256522%2fhow-to-position-image-relative-to-text%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you considered floating the image left or right?
– Robby Cornelissen
Nov 12 at 5:52
I've tried, but then my text is no longer aligned center for some reason.
– hoolakoola
Nov 12 at 5:56