Search
 
SCRIPT & CODE EXAMPLE
 

HTML

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>
Comment

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>
Comment

PREVIOUS NEXT
Code Example
Html :: picture element html 
Html :: website html css 
Html :: button in input tailwinds 
Html :: comment html 
Html :: table design in html 
Html :: how to use font awesome icons in html 
Html :: table bootstrap 
Html :: vertical line navigation bar 
Html :: html input get number 
Html :: vs code html formatter 
Html :: scroll to section href 
Html :: Using new line( ) in string and rendering the same in HTML 
Html :: input file img / input file image 
Html :: checkbox value 
Html :: insert html in html page 
Html :: insert text html 
Html :: html = sign 
Html :: how to link another page in form submit 
Html :: meta tag white theme 
Html :: vue pick 20 items from array 
Html :: object.keys not working in angular html 
Html :: bootstrap 4 flex 
Html :: vue icon 
Html :: TAKE PICTURES HTML 
Html :: google font library 
Html :: bulleted list html 
Html :: how to use bootstrap 
Html :: http code 206 
Html :: dynamic html table python 
Html :: carousel with javascript 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =