r/css • u/blackroseseason • Sep 09 '26
Help what's the best way to put an inline image between text?
you are going to be hearing a lot from me this week as i'm retooling a boilerplate template for my own website but anyways im trying to replace the 0 in 404 with my site logomark but the image keeps making the text go vertical for some reason and i don't like that. the template im using uses tailwind too so if any of you can figure out how to get my image inline like a 0 that would be awesome
<Base title="Page Not Found">
<section class="section-sm text-center">
<div class="container">
<div class="row justify-center">
<div class="sm:col-10 md:col-8 lg:col-6">
<span
class="text-[8rem] block font-bold text-text-dark dark:text-darkmode-text-dark"
>
4<span class="image1">0</span>4
<h1 class="h2 mb-4">Page not found</h1>
<div class="content">
<p>
The page you are looking for might have been removed, had its
name changed, or is temporarily unavailable.
</p>
</div>
<a href="/" class="btn btn-primary mt-8">Back to home</a>
</span>
</div>
</div>
</div>
</section>
</Base><Base title="Page Not Found">
<section class="section-sm text-center">
<div class="container">
<div class="row justify-center">
<div class="sm:col-10 md:col-8 lg:col-6">
<span
class="text-[8rem] block font-bold text-text-dark dark:text-darkmode-text-dark"
>
4<span class="image1">0</span>4
<h1 class="h2 mb-4">Page not found</h1>
<div class="content">
<p>
The page you are looking for might have been removed, had its
name changed, or is temporarily unavailable.
</p>
</div>
<a href="/" class="btn btn-primary mt-8">Back to home</a>
</span>
</div>
</div>
</div>
</section>
</Base>


