1

I was wondering if anyone could help me. I am trying to place an image in between two words in my header. e.g FirstName (Image) LastName. However, every time I try the image shifts the words so that everything is stacking and I want it horizontal. Can anyone help with this? What I have done so far:

<div class="horizontal">
  <h1>FN LN</h1>
  <!-- box-b -->
  <div class="box-b">
    <img src="Images/Triangle.png" alt="Logo mark">
  </div>
  <!-- /box-b -->
</div>

So I'd want the image to move up between the two words.

UkFLSUI
  • 5,509
  • 6
  • 32
  • 47

1 Answers1

0

Images are inline-block elements that should not 'break' your text onto multiple lines, if the issue is alignment, as discussed here you can use vertical-align in CSS to align your image inline with your text.

Like what @Psi mentioned:

<h1>FN <img src="..."> LN</h1>

Should work fine then tweak the CSS for alignment

csilk
  • 2,732
  • 3
  • 23
  • 40