View Single Post
Old 05-21-2015, 10:24 PM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
I've never needed to use display table. I simply put it in a div. Something along the lines of:

Code:
<div class="fig"><img alt="" src="../Images/Philippinedmg.jpg" />Damage from Typoon Haiyan in the Philippines</div>

css:
div.fig {
margin: 1em 0 1em 1em;
float: right;
page-break-inside: avoid;
text-align: center;
font-size: 0.75em;
font-family: Verdana, sans-serif;
width: 25%;   (or whatever)
max-width: 300px   (the actual width of your img to avoid blurring when stretched)
}

div.fig img {
display: block;
margin-bottom: 2px
}
I would also try and avoid spaces in your file names...some systems barf on those.
Turtle91 is offline   Reply With Quote