http://www.socketstudios.com
- Started
- Last post
- 12 Responses
- JamesBoynton
Lovely work.
Now, can someone tell me how on this page they have the image get smaller height wise when the browser is shrunk in height?
http://www.socketstudios.com/#wo…
I know it is easy done with width:100% for width but no idea how to get this to work for height.
- JamesBoynton0
Ha. I had to hide my question.
Now, help of GTFO.
- spmitch0
img.work { height: 100%; max-height: 900px; max-width: 1350px; }
- JamesBoynton0
Gah. Doesn't work for me and I guess it also won't scale when the browser is made thinner?
Thanks though
- spmitch0
inspect elememt -> ss.js -> down a the bottom // GET Window Size
- ukit20
You really don't need JS though.
- JamesBoynton0
Thanks jadrian_uk. I will give it a whirl!
- JamesBoynton0
I think the clagnut one is purely for width? Doesn't seem to do much when you made the shrink the browser height.
- JamesBoynton0
Thanks for all the help guys, still can't get it to work! Will just go with the width one. JS ties my head in knots :(
- plausible0
i wouldn't try and copy any of the code from that site. amateur at best.