Answers for "how to add text on an image in bootsrap"

0

image on text in bootstrap

<div class="text-center">
  <img src="..." class="rounded" alt="...">
</div>
Posted by: Guest on October-08-2020
0

how to add text on an image in bootsrap

.maintxt {position: relative;}
.maintxt > img, .overlay-text {position: absolute;}

<div class="container">
    <div class="row">
        <div class="col-xs-12 col-sm-6 col-md-8 col-centered">
            <div class="maintxt">
                <img src="background.png" class="img-responsive">
                <span class="overlay-text">My super text.</span>
            </div>
        </div>
    </div>
</div>
Posted by: Guest on October-24-2021
0

how to add text on an image in bootsrap

.maintxt {
    background-image: url(images/background.png);
    background-size: cover;
}

<div class="container">
    <div class="row">
        <div class="col-xs-12 col-sm-6 col-md-8 col-centered">
            <div class="maintxt">
                My great text.
            </div>
        </div>
    </div>
</div>
Posted by: Guest on October-24-2021

Code answers related to "how to add text on an image in bootsrap"

Browse Popular Code Answers by Language