Difference between revisions of "Bootstrap responsive image"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (→See also) |
Karl Jones (Talk | contribs) (→See also) |
||
Line 12: | Line 12: | ||
* [[Bootstrap (framework)]] | * [[Bootstrap (framework)]] | ||
+ | * [[Class attribute (HTML)]] | ||
* [[Class selector (CSS)]] | * [[Class selector (CSS)]] | ||
* [[Responsive web design]] | * [[Responsive web design]] |
Revision as of 10:15, 16 February 2016
In Bootstrap, you make an image responsive by adding the img-responsive
class.
Example
<img src="image.jpg" alt="example" class="img-responsive" />
The image will expand to fit the available space, up to the full image size.