test div

• left of this div is 60% from left of parent div (ignore border)

• bg of this div is calc()'d to match bg of parent div (desktop, mobile, resized, etc)

JBM-Computing

Changing background

Hover over or touch an image below to change the content background.

Background

Inspiration for this page came from a Shutterstock (no affiliation) advert I saw in early 2020 (below) which behaved like the boxes above and I thought I’d have a go at re-creating it using pure CSS - done ✔

 

JBM-Computing

part of J E Mynott Ltd

web: www.Mynott.uk

site map / contentswebsite privacy
glossarycontact me
©2000-2026 JBM-Computing
Facebook Twitter YouTube print