Levi
Ultimate Member
Looking for the best technique for a full screen image that is responsive and crops vertically/horizontally if too tall/wide. There is a caveat in that I want it to change to a 'normal' full width image when on mobiles so it has to be in it's own div rather than a 'body' background image.
Would I be right in thinking the simplest is the div with background inside another div with overflow hidden and offset if needed.
I'd guess there's javascript too but want to stay away from that if possible
Ta very
Also as a side note: is it ok, ie not outdated, to use css table and table cells to centre text vertically and horizontally?
Would I be right in thinking the simplest is the div with background inside another div with overflow hidden and offset if needed.
I'd guess there's javascript too but want to stay away from that if possible
Ta very
Also as a side note: is it ok, ie not outdated, to use css table and table cells to centre text vertically and horizontally?