Maybe this:
body{
background-color: black;
}
.thumbnail {
display: inline-flex;
position: relative;
width: 8em;
height: auto;
margin: 0px;
padding: 0px;
border-width: 0px;
}
img {
flex: 1;
width: 100%;
height: auto;
max-width: 100%;
max-height: 100%;
margin: 0px;
padding: 0px;
border-width: 0px;
Maybe this is simpler:
https://tomliv.com/css-d/portraitlandscape/index2.html
On Thu, Aug 6, 2020 at 9:59 AM Michael Stevens wrote:
>
> But HOW do you know if it's P or L? Wade is pulling metadata and adding
> that info to his database so when the image is called for the
> orientation is also gi
Maybe this is simpler:
https://tomliv.com/css-d/portraitlandscape/index2.html
On Thu, Aug 6, 2020 at 9:59 AM Michael Stevens wrote:
>
> But HOW do you know if it's P or L? Wade is pulling metadata and adding
> that info to his database so when the image is called for the
> orientation is also gi
On Thu, 6 Aug 2020 at 14:59, Michael Stevens wrote:
>
> But HOW do you know if it's P or L? Wade is pulling metadata and adding
> that info to his database so when the image is called for the
> orientation is also given so it's easy to output
>
> class=""
>
> How are you determining the orientatio
On Fri, 7 Aug 2020 at 17:14, Tom Livingston wrote:
>
> Maybe this is simpler:
>
> https://tomliv.com/css-d/portraitlandscape/index2.html
Tom,
No, thanks though.
It is for a professional history of photography site and I need them
centered and portraits 100% height (variable width, fixed 1:1 asp
So based on your code sample, all thumbnails will be the same width and height:
.thumbnail {
display: inline-block;
position: relative;
width: 8em;
height: 10em;
margin: 0px;
padding: 0px;
border-width: 0px
Sorry if I am being dense as to what you're after, but your original
code works - I think - without the portrait and landscape classes:
https://tomliv.com/css-d/portraitlandscape/index3.html
On Tue, Aug 4, 2020 at 8:32 PM Aaron Gray wrote:
>
> I have some code that handles landscape and portrait
On Fri, 7 Aug 2020 at 18:14, Tom Livingston wrote:
>
> Sorry if I am being dense as to what you're after, but your original
> code works - I think - without the portrait and landscape classes:
>
> https://tomliv.com/css-d/portraitlandscape/index3.html
Tom, that looks brilliant, is it the width: a
On Fri, Aug 7, 2020 at 3:34 PM Aaron Gray wrote:
>
> On Fri, 7 Aug 2020 at 18:14, Tom Livingston wrote:
> >
> > Sorry if I am being dense as to what you're after, but your original
> > code works - I think - without the portrait and landscape classes:
> >
> > https://tomliv.com/css-d/portraitland