- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Add a caption text inside a thumbnail class
To add a caption text in a thumbnail class, use the .caption class with the .thumbnail class in Bootstrap.
The .thumbnail class is used to add thumbnail to an image −
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div class = "container"> <div class = "row"> <div class = "col-md-4"> <div class = "thumbnail"> <a href = "https://www.tutorialspoint.com/python/images/python-data-science-mini-logo.jpg" target = "_blank"> <img src = "https://www.tutorialspoint.com/python/images/python-data-science-mini-logo.jpg" alt = "Lights" style = "width:100%"> <div class="caption"> <p>Data science is the process of deriving knowledge and insights from a huge and diverse set of data through organizing, processing and analysing the data. </p> </div> </a> </div> </div> </div> </div> </body> </html>
- Related Articles
- How to add text inside a Tkinter Canvas?
- Bootstrap thumbnail class
- Add space inside a form’s text field with CSS
- How to add text inside a plot in Matplotlib?
- img-thumbnail Bootstrap class
- How to add a caption in a ggplot2 graph in R?
- Place text inside a circle in Matplotlib
- How To Add Caption To Your YouTube Videos?
- Can we define a class inside a Java interface?
- Create a text inside circles in HTML5 Canvas
- How to create a thumbnail image CSS?
- Can we define an interface inside a Java class?
- Golang program to include a module inside the class
- Add line break inside a string conditionally in JavaScript
- Add a hover effect inside the Bootstrap 4 card

Advertisements