responsive images - wd4e - web design for everybody · responsive images. making your images...

7
Responsive Images

Upload: others

Post on 19-Aug-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Responsive Images - WD4E - Web Design for Everybody · Responsive Images. Making Your Images Responsive • So many webpages are pictorial, it only makes sense to talk about responsive

Responsive Images

Page 2: Responsive Images - WD4E - Web Design for Everybody · Responsive Images. Making Your Images Responsive • So many webpages are pictorial, it only makes sense to talk about responsive

Making Your Images Responsive

•  So many webpages are pictorial, it only makes sense to talk about responsive images.

•  Two approaches:•  Write your own code•  Use Bootstrap

Page 3: Responsive Images - WD4E - Web Design for Everybody · Responsive Images. Making Your Images Responsive • So many webpages are pictorial, it only makes sense to talk about responsive

Your Own Code

•  In your own CSS you will want to use fluid measurements

•  width: 100%•  max-width:750px;•  min-width:200px;•  Set height to auto

Page 4: Responsive Images - WD4E - Web Design for Everybody · Responsive Images. Making Your Images Responsive • So many webpages are pictorial, it only makes sense to talk about responsive

Using Bootstrap

•  Bootstrap provides a number of image classes.•  img-responsive•  img-rounded•  img-circle•  img-thumbnail

Page 5: Responsive Images - WD4E - Web Design for Everybody · Responsive Images. Making Your Images Responsive • So many webpages are pictorial, it only makes sense to talk about responsive

img-responsive

RD: Responsive Images

Page 6: Responsive Images - WD4E - Web Design for Everybody · Responsive Images. Making Your Images Responsive • So many webpages are pictorial, it only makes sense to talk about responsive

Gallery

RD: Responsive Image Thumbnails

Page 7: Responsive Images - WD4E - Web Design for Everybody · Responsive Images. Making Your Images Responsive • So many webpages are pictorial, it only makes sense to talk about responsive

Acknowledgements/ContributionsThese slides are Copyright 2016- Colleen van Lent as part of http://www.intro-webdesign.com/ and made available under a Creative Commons Attribution NonCommercial 4.0 License. Please maintain this last slide in all copies of the document to comply with the attribution requirements of the license. If you make a change, feel free to add your name and organization to the list of contributors on this page as you republish the materials.

Initial Development: Colleen van Lent , University of Michigan School of Information